Record Class StandingSignSpecialRenderer.Unbaked
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.special.StandingSignSpecialRenderer.Unbaked
- All Implemented Interfaces:
NoDataSpecialModelRenderer.Unbaked, SpecialModelRenderer.Unbaked<Void>
- Enclosing class:
StandingSignSpecialRenderer
public static record StandingSignSpecialRenderer.Unbaked(WoodType woodType, PlainSignBlock.Attachment attachment, Optional<Identifier> texture)
extends Record
implements NoDataSpecialModelRenderer.Unbaked
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PlainSignBlock.AttachmentThe field for theattachmentrecord component.static final MapCodec<StandingSignSpecialRenderer.Unbaked> private final Optional<Identifier> The field for thetexturerecord component.private final WoodTypeThe field for thewoodTyperecord component. -
Constructor Summary
ConstructorsConstructorDescriptionUnbaked(WoodType woodType, PlainSignBlock.Attachment attachment) Unbaked(WoodType woodType, PlainSignBlock.Attachment attachment, Optional<Identifier> texture) Creates an instance of aUnbakedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattachmentrecord component.bake(SpecialModelRenderer.BakingContext context) 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.type()woodType()Returns the value of thewoodTyperecord component.
-
Field Details
-
woodType
The field for thewoodTyperecord component. -
attachment
The field for theattachmentrecord component. -
texture
The field for thetexturerecord component. -
MAP_CODEC
-
-
Constructor Details
-
Unbaked
-
Unbaked
public Unbaked(WoodType woodType, PlainSignBlock.Attachment attachment, Optional<Identifier> texture) Creates an instance of aUnbakedrecord class.- Parameters:
woodType- the value for thewoodTyperecord componentattachment- the value for theattachmentrecord componenttexture- the value for thetexturerecord component
-
-
Method Details
-
type
- Specified by:
typein interfaceNoDataSpecialModelRenderer.Unbaked- Specified by:
typein interfaceSpecialModelRenderer.Unbaked<Void>
-
bake
- Specified by:
bakein interfaceSpecialModelRenderer.Unbaked<Void>
-
toString
-
hashCode
-
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
-
attachment
Returns the value of theattachmentrecord component.- Returns:
- the value of the
attachmentrecord component
-
texture
Returns the value of thetexturerecord component.- Returns:
- the value of the
texturerecord component
-