Record Class SetFunction.Resolved<T>
java.lang.Object
java.lang.Record
dev.latvian.mods.kubejs.recipe.schema.function.SetFunction.Resolved<T>
- All Implemented Interfaces:
ResolvedRecipeSchemaFunction
- Enclosing class:
SetFunction
public static record SetFunction.Resolved<T>(RecipeKey<T> key, T to)
extends Record
implements ResolvedRecipeSchemaFunction
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.voidexecute(RecipeScriptContext cx, List<Object> args) final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.to()Returns the value of thetorecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface dev.latvian.mods.kubejs.recipe.schema.function.ResolvedRecipeSchemaFunction
arguments
-
Constructor Details
-
Resolved
Creates an instance of aResolvedrecord class.- Parameters:
key- the value for thekeyrecord componentto- the value for thetorecord component
-
-
Method Details
-
execute
- Specified by:
executein interfaceResolvedRecipeSchemaFunction
-
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). -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
to
Returns the value of thetorecord component.- Returns:
- the value of the
torecord component
-