Class CharacterComponent
java.lang.Object
dev.latvian.mods.kubejs.recipe.component.SimpleRecipeComponent<Character>
dev.latvian.mods.kubejs.recipe.component.CharacterComponent
- All Implemented Interfaces:
RecipeComponent<Character>
-
Field Summary
FieldsFields inherited from class dev.latvian.mods.kubejs.recipe.component.SimpleRecipeComponent
codec, type, typeInfo -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasPriority(RecipeMatchContext cx, Object from) Declares whether this component should take priority when being considered by e.g.booleanShallow empty check functiontoString(OpsContainer ops, Character value) wrap(RecipeScriptContext cx, Object from) Method to read the value contained within this component from an input object; this may be some arbitrary value passed into aschema'sconstructor(s) or automatically generated builder methods.Methods inherited from class dev.latvian.mods.kubejs.recipe.component.SimpleRecipeComponent
codec, toString, type, typeInfoMethods 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, inputKey, isIgnored, key, matches, or, orSelf, otherKey, outputKey, readFromJson, replace, spread, validate, withCodec, writeToJson
-
Field Details
-
CHARACTER
-
-
Constructor Details
-
CharacterComponent
-
-
Method Details
-
hasPriority
Description copied from interface:RecipeComponentDeclares whether this component should take priority when being considered by e.g. anEitherRecipeComponentduring deserialization.- Parameters:
cx- Script contextfrom- The object to be deserialized from- Returns:
- Whether this component should take priority
-
wrap
Description copied from interface:RecipeComponentMethod to read the value contained within this component from an input object; this may be some arbitrary value passed into aschema'sconstructor(s) or automatically generated builder methods. By default, it will attempt to type wrap based onRecipeComponent.typeInfo()- Parameters:
cx- Script contextfrom- An object to be converted to a value for this component- Returns:
- The value read from the input
-
isEmpty
Description copied from interface:RecipeComponentShallow empty check function -
toString
-