Enum Class IgnoreComponent
- All Implemented Interfaces:
RecipeComponent<Object>,Serializable,Comparable<IgnoreComponent>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<Object> static final RecipeComponentType<Object> -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidbuildUniqueId(UniqueIdBuilder builder, Object value) com.mojang.serialization.Codec<Object> codec()booleanShallow empty check functionbooleantoString()type()dev.latvian.mods.rhino.type.TypeInfotypeInfo()Defines a description for how this component may be constructed.voidvalidate(RecipeValidationContext ctx, Object value) static IgnoreComponentReturns the enum constant of this class with the specified name.static IgnoreComponent[]values()Returns an array containing the constants of this enum class, in the order they are declared.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 java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOfMethods inherited from interface dev.latvian.mods.kubejs.recipe.component.RecipeComponent
asConditionalList, asConditionalListOrSelf, asList, asListOrSelf, asMap, asPatternKey, createBuilder, hasPriority, inputKey, key, matches, or, orSelf, otherKey, outputKey, readFromJson, replace, spread, toString, withCodec, writeToJson
-
Enum Constant Details
-
INSTANCE
-
-
Field Details
-
CODEC
-
TYPE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
type
- Specified by:
typein interfaceRecipeComponent<Object>
-
codec
- Specified by:
codecin interfaceRecipeComponent<Object>
-
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<Object>- Returns:
- A description of how this component may be constructed
-
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()- Specified by:
wrapin interfaceRecipeComponent<Object>- Parameters:
cx- Script contextfrom- An object to be converted to a value for this component- Returns:
- The value read from the input
-
validate
- Specified by:
validatein interfaceRecipeComponent<Object>
-
allowEmpty
public boolean allowEmpty()- Specified by:
allowEmptyin interfaceRecipeComponent<Object>
-
isEmpty
Description copied from interface:RecipeComponentShallow empty check function- Specified by:
isEmptyin interfaceRecipeComponent<Object>
-
toString
- Overrides:
toStringin classEnum<IgnoreComponent>
-
buildUniqueId
- Specified by:
buildUniqueIdin interfaceRecipeComponent<Object>
-
isIgnored
public boolean isIgnored()- Specified by:
isIgnoredin interfaceRecipeComponent<Object>
-