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 thetexturerecord component.private final WoodTypeThe field for thewoodTyperecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbake(SpecialModelRenderer.BakingContext p_436063_) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.texture()Returns the value of thetexturerecord component.final StringtoString()Returns a string representation of this record class.com.mojang.serialization.MapCodec<StandingSignSpecialRenderer.Unbaked> type()woodType()Returns the value of thewoodTyperecord component.
-
Field Details
-
woodType
The field for thewoodTyperecord component. -
texture
The field for thetexturerecord component. -
MAP_CODEC
public static final com.mojang.serialization.MapCodec<StandingSignSpecialRenderer.Unbaked> MAP_CODEC
-
-
Constructor Details
-
Unbaked
-
Unbaked
Creates an instance of aUnbakedrecord class.- Parameters:
woodType- the value for thewoodTyperecord componenttexture- the value for thetexturerecord 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). -
woodType
Returns the value of thewoodTyperecord component.- Returns:
- the value of the
woodTyperecord component
-
texture
Returns the value of thetexturerecord component.- Returns:
- the value of the
texturerecord component
-