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
-
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
-
hashCode
-
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
-
operator
Returns the value of theoperatorrecord component.- Returns:
- the value of the
operatorrecord component
-