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 theoperatorrecord component.The field for thesupportedClassrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateHandler(Class<T> supportedClass, UnaryOperator<T> operator) Creates an instance of aHandlerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionapply(BlockStateModel.Unbaked unbaked) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.operator()Returns the value of theoperatorrecord component.Returns the value of thesupportedClassrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
supportedClass
The field for thesupportedClassrecord component. -
operator
The field for theoperatorrecord component.
-
-
Constructor Details
-
Handler
Creates an instance of aHandlerrecord class.- Parameters:
supportedClass- the value for thesupportedClassrecord componentoperator- the value for theoperatorrecord 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 thesupportedClassrecord component.- Returns:
- the value of the
supportedClassrecord component
-
operator
Returns the value of theoperatorrecord component.- Returns:
- the value of the
operatorrecord component
-