Record Class BundleFunction
java.lang.Object
java.lang.Record
dev.latvian.mods.kubejs.recipe.schema.function.BundleFunction
- All Implemented Interfaces:
RecipeSchemaFunction
public record BundleFunction(List<RecipeSchemaFunction> functions)
extends Record
implements RecipeSchemaFunction
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from interface dev.latvian.mods.kubejs.recipe.schema.function.RecipeSchemaFunction
CODEC, DIRECT_CODEC, LIST_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionBundleFunction(List<RecipeSchemaFunction> functions) Creates an instance of aBundleFunctionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefunctionsrecord component.final inthashCode()Returns a hash code value for this object.com.mojang.serialization.DataResult<ResolvedRecipeSchemaFunction> resolve(com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> jsonOps, RecipeSchema schema) final StringtoString()Returns a string representation of this record class.type()
-
Field Details
-
TYPE
-
-
Constructor Details
-
BundleFunction
Creates an instance of aBundleFunctionrecord class.- Parameters:
functions- the value for thefunctionsrecord component
-
-
Method Details
-
type
- Specified by:
typein interfaceRecipeSchemaFunction
-
resolve
public com.mojang.serialization.DataResult<ResolvedRecipeSchemaFunction> resolve(com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> jsonOps, RecipeSchema schema) - Specified by:
resolvein interfaceRecipeSchemaFunction
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
functions
Returns the value of thefunctionsrecord component.- Returns:
- the value of the
functionsrecord component
-