Record Class UnbakedMutator.Handler<T>
java.lang.Object
java.lang.Record
net.neoforged.neoforge.client.model.generators.blockstate.UnbakedMutator.Handler<T>
- Enclosing class:
UnbakedMutator
private static record UnbakedMutator.Handler<T>(Class<T> supportedClass, UnaryOperator<T> operator)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final UnaryOperator
<T> The field for theoperator
record component.The field for thesupportedClass
record component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Handler
(Class<T> supportedClass, UnaryOperator<T> operator) Creates an instance of aHandler
record class. -
Method Summary
Modifier and TypeMethodDescriptionapply
(net.minecraft.client.renderer.block.model.BlockStateModel.Unbaked unbaked) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.operator()
Returns the value of theoperator
record component.Returns the value of thesupportedClass
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
supportedClass
The field for thesupportedClass
record component. -
operator
The field for theoperator
record component.
-
-
Constructor Details
-
Handler
Creates an instance of aHandler
record class.- Parameters:
supportedClass
- the value for thesupportedClass
record componentoperator
- the value for theoperator
record component
-
-
Method Details
-
apply
-
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)
. -
supportedClass
Returns the value of thesupportedClass
record component.- Returns:
- the value of the
supportedClass
record component
-
operator
Returns the value of theoperator
record component.- Returns:
- the value of the
operator
record component
-