Record Class BannerSpecialRenderer.Unbaked
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.special.BannerSpecialRenderer.Unbaked
- All Implemented Interfaces:
SpecialModelRenderer.Unbaked<BannerPatternLayers>
- Enclosing class:
BannerSpecialRenderer
public static record BannerSpecialRenderer.Unbaked(DyeColor baseColor, BannerBlock.AttachmentType attachment)
extends Record
implements SpecialModelRenderer.Unbaked<BannerPatternLayers>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BannerBlock.AttachmentTypeThe field for theattachmentrecord component.private final DyeColorThe field for thebaseColorrecord component.static final MapCodec<BannerSpecialRenderer.Unbaked> -
Constructor Summary
ConstructorsConstructorDescriptionUnbaked(DyeColor baseColor, BannerBlock.AttachmentType attachment) Creates an instance of aUnbakedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattachmentrecord component.bake(SpecialModelRenderer.BakingContext context) Returns the value of thebaseColorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.type()
-
Field Details
-
baseColor
The field for thebaseColorrecord component. -
attachment
The field for theattachmentrecord component. -
MAP_CODEC
-
-
Constructor Details
-
Unbaked
Creates an instance of aUnbakedrecord class.- Parameters:
baseColor- the value for thebaseColorrecord componentattachment- the value for theattachmentrecord component
-
-
Method Details
-
type
- Specified by:
typein interfaceSpecialModelRenderer.Unbaked<BannerPatternLayers>
-
bake
- Specified by:
bakein interfaceSpecialModelRenderer.Unbaked<BannerPatternLayers>
-
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). -
baseColor
Returns the value of thebaseColorrecord component.- Returns:
- the value of the
baseColorrecord component
-
attachment
Returns the value of theattachmentrecord component.- Returns:
- the value of the
attachmentrecord component
-