Record Class BannerSpecialRenderer.Unbaked
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.special.BannerSpecialRenderer.Unbaked
- All Implemented Interfaces:
SpecialModelRenderer.Unbaked
- Enclosing class:
BannerSpecialRenderer
public static record BannerSpecialRenderer.Unbaked(DyeColor baseColor)
extends Record
implements SpecialModelRenderer.Unbaked
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DyeColorThe field for thebaseColorrecord component.static final com.mojang.serialization.MapCodec<BannerSpecialRenderer.Unbaked> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbake(SpecialModelRenderer.BakingContext p_434507_) 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.com.mojang.serialization.MapCodec<BannerSpecialRenderer.Unbaked> type()
-
Field Details
-
baseColor
The field for thebaseColorrecord component. -
MAP_CODEC
-
-
Constructor Details
-
Unbaked
Creates an instance of aUnbakedrecord class.- Parameters:
baseColor- the value for thebaseColorrecord 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). -
baseColor
Returns the value of thebaseColorrecord component.- Returns:
- the value of the
baseColorrecord component
-