Record Class SelectBlockModel.Unbaked
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.block.SelectBlockModel.Unbaked
- All Implemented Interfaces:
BlockModel.Unbaked
- Enclosing class:
SelectBlockModel<T>
public static record SelectBlockModel.Unbaked(Optional<Transformation> transformation, SelectBlockModel.UnbakedSwitch<?,?> unbakedSwitch, Optional<BlockModel.Unbaked> fallback)
extends Record
implements BlockModel.Unbaked
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Optional<BlockModel.Unbaked> The field for thefallbackrecord component.private final Optional<Transformation> The field for thetransformationrecord component.private final SelectBlockModel.UnbakedSwitch<?, ?> The field for theunbakedSwitchrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionUnbaked(Optional<Transformation> transformation, SelectBlockModel.UnbakedSwitch<?, ?> unbakedSwitch, Optional<BlockModel.Unbaked> fallback) 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.fallback()Returns the value of thefallbackrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Returns the value of thetransformationrecord component.Returns the value of theunbakedSwitchrecord component.
-
Field Details
-
transformation
The field for thetransformationrecord component. -
unbakedSwitch
The field for theunbakedSwitchrecord component. -
fallback
The field for thefallbackrecord component.
-
-
Constructor Details
-
Unbaked
public Unbaked(Optional<Transformation> transformation, SelectBlockModel.UnbakedSwitch<?, ?> unbakedSwitch, Optional<BlockModel.Unbaked> fallback) Creates an instance of aUnbakedrecord class.- Parameters:
transformation- the value for thetransformationrecord componentunbakedSwitch- the value for theunbakedSwitchrecord componentfallback- the value for thefallbackrecord 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). -
transformation
Returns the value of thetransformationrecord component.- Returns:
- the value of the
transformationrecord component
-
unbakedSwitch
Returns the value of theunbakedSwitchrecord component.- Returns:
- the value of the
unbakedSwitchrecord component
-
fallback
Returns the value of thefallbackrecord component.- Returns:
- the value of the
fallbackrecord component
-