Record Class BedSpecialRenderer.Unbaked
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.special.BedSpecialRenderer.Unbaked
- All Implemented Interfaces:
NoDataSpecialModelRenderer.Unbaked, SpecialModelRenderer.Unbaked<Void>
- Enclosing class:
BedSpecialRenderer
public static record BedSpecialRenderer.Unbaked(Identifier texture, BedPart part)
extends Record
implements NoDataSpecialModelRenderer.Unbaked
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MapCodec<BedSpecialRenderer.Unbaked> private final BedPartThe field for thepartrecord component.private final IdentifierThe field for thetexturerecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbake(SpecialModelRenderer.BakingContext context) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.part()Returns the value of thepartrecord component.texture()Returns the value of thetexturerecord component.final StringtoString()Returns a string representation of this record class.type()
-
Field Details
-
texture
The field for thetexturerecord component. -
part
The field for thepartrecord component. -
MAP_CODEC
-
-
Constructor Details
-
Unbaked
-
Unbaked
Creates an instance of aUnbakedrecord class.- Parameters:
texture- the value for thetexturerecord componentpart- the value for thepartrecord 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). -
texture
Returns the value of thetexturerecord component.- Returns:
- the value of the
texturerecord component
-
part
Returns the value of thepartrecord component.- Returns:
- the value of the
partrecord component
-