Class SimpleRecipeComponent<T>
java.lang.Object
dev.latvian.mods.kubejs.recipe.component.SimpleRecipeComponent<T>
- All Implemented Interfaces:
RecipeComponent<T>
- Direct Known Subclasses:
CharacterComponent
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal com.mojang.serialization.Codec<T> final RecipeComponentType<?> final dev.latvian.mods.rhino.type.TypeInfo -
Constructor Summary
ConstructorsConstructorDescriptionSimpleRecipeComponent(RecipeComponentType<?> type, com.mojang.serialization.Codec<T> codec, dev.latvian.mods.rhino.type.TypeInfo typeInfo) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface dev.latvian.mods.kubejs.recipe.component.RecipeComponent
allowEmpty, asConditionalList, asConditionalListOrSelf, asList, asListOrSelf, asMap, asPatternKey, buildUniqueId, createBuilder, hasPriority, inputKey, isEmpty, isIgnored, key, matches, or, orSelf, otherKey, outputKey, readFromJson, replace, spread, toString, validate, withCodec, wrap, writeToJson
-
Field Details
-
type
-
codec
-
typeInfo
public final dev.latvian.mods.rhino.type.TypeInfo typeInfo
-
-
Constructor Details
-
SimpleRecipeComponent
public SimpleRecipeComponent(RecipeComponentType<?> type, com.mojang.serialization.Codec<T> codec, dev.latvian.mods.rhino.type.TypeInfo typeInfo)
-
-
Method Details
-
type
- Specified by:
typein interfaceRecipeComponent<T>
-
codec
- Specified by:
codecin interfaceRecipeComponent<T>
-
typeInfo
public dev.latvian.mods.rhino.type.TypeInfo typeInfo()Description copied from interface:RecipeComponentDefines a description for how this component may be constructed. Type descriptions may be comprised of a primitive type such as a string, number or Java class (which may be useful if that that class has an appropriate type wrapper for it already), an array of fixed or dynamic length, a map / object, or a union of multiple types.Type descriptions are used by addons like ProbeJS to provide typing hints.
- Specified by:
typeInfoin interfaceRecipeComponent<T>- Returns:
- A description of how this component may be constructed
-
toString
-