Record Class CopperGolemStatueSpecialRenderer.Unbaked
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.special.CopperGolemStatueSpecialRenderer.Unbaked
- All Implemented Interfaces:
SpecialModelRenderer.Unbaked
- Enclosing class:
CopperGolemStatueSpecialRenderer
public static record CopperGolemStatueSpecialRenderer.Unbaked(ResourceLocation texture, CopperGolemStatueBlock.Pose pose)
extends Record
implements SpecialModelRenderer.Unbaked
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<CopperGolemStatueSpecialRenderer.Unbaked> private final CopperGolemStatueBlock.PoseThe field for theposerecord component.private final ResourceLocationThe field for thetexturerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionUnbaked(ResourceLocation texture, CopperGolemStatueBlock.Pose pose) Creates an instance of aUnbakedrecord class.Unbaked(WeatheringCopper.WeatherState p_447117_, CopperGolemStatueBlock.Pose p_445375_) -
Method Summary
Modifier and TypeMethodDescriptionbake(SpecialModelRenderer.BakingContext p_435794_) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.pose()Returns the value of theposerecord component.texture()Returns the value of thetexturerecord component.final StringtoString()Returns a string representation of this record class.com.mojang.serialization.MapCodec<CopperGolemStatueSpecialRenderer.Unbaked> type()
-
Field Details
-
texture
The field for thetexturerecord component. -
pose
The field for theposerecord component. -
MAP_CODEC
public static final com.mojang.serialization.MapCodec<CopperGolemStatueSpecialRenderer.Unbaked> MAP_CODEC
-
-
Constructor Details
-
Unbaked
-
Unbaked
Creates an instance of aUnbakedrecord class.- Parameters:
texture- the value for thetexturerecord componentpose- the value for theposerecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
texture
Returns the value of thetexturerecord component.- Returns:
- the value of the
texturerecord component
-
pose
Returns the value of theposerecord component.- Returns:
- the value of the
poserecord component
-