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