Record Class SpecialBlockModelWrapper.Unbaked<T>
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.block.model.SpecialBlockModelWrapper.Unbaked<T>
- All Implemented Interfaces:
BlockModel.Unbaked
- Enclosing class:
SpecialBlockModelWrapper<T>
public static record SpecialBlockModelWrapper.Unbaked<T>(SpecialModelRenderer.Unbaked<T> model, Optional<Transformation> transformation)
extends Record
implements BlockModel.Unbaked
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SpecialModelRenderer.Unbaked<T> The field for themodelrecord component.private final Optional<Transformation> The field for thetransformationrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionUnbaked(SpecialModelRenderer.Unbaked<T> model, Optional<Transformation> transformation) Creates an instance of aUnbakedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbake(BlockModel.BakingContext context, org.joml.Matrix4fc transformation) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.model()Returns the value of themodelrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransformationrecord component.
-
Field Details
-
model
The field for themodelrecord component. -
transformation
The field for thetransformationrecord component.
-
-
Constructor Details
-
Unbaked
Creates an instance of aUnbakedrecord class.- Parameters:
model- the value for themodelrecord componenttransformation- the value for thetransformationrecord component
-
-
Method Details
-
bake
- Specified by:
bakein interfaceBlockModel.Unbaked
-
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). -
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
transformation
Returns the value of thetransformationrecord component.- Returns:
- the value of the
transformationrecord component
-