Record Class ChestSpecialRenderer.Unbaked
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.special.ChestSpecialRenderer.Unbaked
- All Implemented Interfaces:
SpecialModelRenderer.Unbaked
- Enclosing class:
ChestSpecialRenderer
public static record ChestSpecialRenderer.Unbaked(ResourceLocation texture, float openness)
extends Record
implements SpecialModelRenderer.Unbaked
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<ChestSpecialRenderer.Unbaked> private final floatThe field for theopennessrecord component.private final ResourceLocationThe field for thetexturerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionUnbaked(ResourceLocation p_387139_) Unbaked(ResourceLocation texture, float openness) Creates an instance of aUnbakedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbake(EntityModelSet pModelSet) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatopenness()Returns the value of theopennessrecord component.texture()Returns the value of thetexturerecord component.final StringtoString()Returns a string representation of this record class.com.mojang.serialization.MapCodec<ChestSpecialRenderer.Unbaked> type()
-
Field Details
-
texture
The field for thetexturerecord component. -
openness
private final float opennessThe field for theopennessrecord component. -
MAP_CODEC
-
-
Constructor Details
-
Unbaked
-
Unbaked
Creates an instance of aUnbakedrecord class.- Parameters:
texture- the value for thetexturerecord componentopenness- the value for theopennessrecord component
-
-
Method Details
-
type
- Specified by:
typein interfaceSpecialModelRenderer.Unbaked
-
bake
- Specified by:
bakein 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 thetexturerecord component.- Returns:
- the value of the
texturerecord component
-
openness
public float openness()Returns the value of theopennessrecord component.- Returns:
- the value of the
opennessrecord component
-