Record Class BlockStateModelWrapper.Unbaked
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.block.model.BlockStateModelWrapper.Unbaked
- All Implemented Interfaces:
BlockModel.Unbaked
- Enclosing class:
BlockStateModelWrapper
public static record BlockStateModelWrapper.Unbaked(BlockState model, List<BlockTintSource> tints, Optional<Transformation> transformation)
extends Record
implements BlockModel.Unbaked
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockStateThe field for themodelrecord component.private final List<BlockTintSource> The field for thetintsrecord component.private final Optional<Transformation> The field for thetransformationrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionUnbaked(BlockState model, List<BlockTintSource> tints, 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.tints()Returns the value of thetintsrecord 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. -
tints
The field for thetintsrecord component. -
transformation
The field for thetransformationrecord component.
-
-
Constructor Details
-
Unbaked
public Unbaked(BlockState model, List<BlockTintSource> tints, Optional<Transformation> transformation) Creates an instance of aUnbakedrecord class.- Parameters:
model- the value for themodelrecord componenttints- the value for thetintsrecord 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
-
tints
Returns the value of thetintsrecord component.- Returns:
- the value of the
tintsrecord component
-
transformation
Returns the value of thetransformationrecord component.- Returns:
- the value of the
transformationrecord component
-