Record Class StandingSignSpecialRenderer.Unbaked
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.special.StandingSignSpecialRenderer.Unbaked
- All Implemented Interfaces:
SpecialModelRenderer.Unbaked
- Enclosing class:
StandingSignSpecialRenderer
public static record StandingSignSpecialRenderer.Unbaked(WoodType woodType, Optional<ResourceLocation> texture)
extends Record
implements SpecialModelRenderer.Unbaked
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<StandingSignSpecialRenderer.Unbaked> private final Optional
<ResourceLocation> The field for thetexture
record component.private final WoodType
The field for thewoodType
record component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbake
(EntityModelSet p_389399_) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.texture()
Returns the value of thetexture
record component.final String
toString()
Returns a string representation of this record class.com.mojang.serialization.MapCodec
<StandingSignSpecialRenderer.Unbaked> type()
woodType()
Returns the value of thewoodType
record component.
-
Field Details
-
woodType
The field for thewoodType
record component. -
texture
The field for thetexture
record component. -
MAP_CODEC
public static final com.mojang.serialization.MapCodec<StandingSignSpecialRenderer.Unbaked> MAP_CODEC
-
-
Constructor Details
-
Unbaked
-
Unbaked
Creates an instance of aUnbaked
record class.- Parameters:
woodType
- the value for thewoodType
record componenttexture
- the value for thetexture
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
woodType
Returns the value of thewoodType
record component.- Returns:
- the value of the
woodType
record component
-
texture
Returns the value of thetexture
record component.- Returns:
- the value of the
texture
record component
-