Record Class ShulkerBoxSpecialRenderer.Unbaked
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.special.ShulkerBoxSpecialRenderer.Unbaked
- All Implemented Interfaces:
SpecialModelRenderer.Unbaked
- Enclosing class:
ShulkerBoxSpecialRenderer
public static record ShulkerBoxSpecialRenderer.Unbaked(ResourceLocation texture, float openness, Direction orientation)
extends Record
implements SpecialModelRenderer.Unbaked
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<ShulkerBoxSpecialRenderer.Unbaked> private final float
The field for theopenness
record component.private final Direction
The field for theorientation
record component.private final ResourceLocation
The field for thetexture
record component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbake
(EntityModelSet p_388396_) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.float
openness()
Returns the value of theopenness
record component.Returns the value of theorientation
record component.texture()
Returns the value of thetexture
record component.final String
toString()
Returns a string representation of this record class.com.mojang.serialization.MapCodec
<ShulkerBoxSpecialRenderer.Unbaked> type()
-
Field Details
-
texture
The field for thetexture
record component. -
openness
private final float opennessThe field for theopenness
record component. -
orientation
The field for theorientation
record component. -
MAP_CODEC
-
-
Constructor Details
-
Unbaked
public Unbaked() -
Unbaked
-
Unbaked
Creates an instance of aUnbaked
record class.- Parameters:
texture
- the value for thetexture
record componentopenness
- the value for theopenness
record componentorientation
- the value for theorientation
record component
-
-
Method Details
-
type
- Specified by:
type
in interfaceSpecialModelRenderer.Unbaked
-
bake
- Specified by:
bake
in interfaceSpecialModelRenderer.Unbaked
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
texture
Returns the value of thetexture
record component.- Returns:
- the value of the
texture
record component
-
openness
public float openness()Returns the value of theopenness
record component.- Returns:
- the value of the
openness
record component
-
orientation
Returns the value of theorientation
record component.- Returns:
- the value of the
orientation
record component
-