Record Class BedSpecialRenderer.Unbaked
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.special.BedSpecialRenderer.Unbaked
- All Implemented Interfaces:
SpecialModelRenderer.Unbaked
- Enclosing class:
BedSpecialRenderer
public static record BedSpecialRenderer.Unbaked(Identifier texture)
extends Record
implements SpecialModelRenderer.Unbaked
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<BedSpecialRenderer.Unbaked> 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.texture()Returns the value of thetexturerecord component.final StringtoString()Returns a string representation of this record class.com.mojang.serialization.MapCodec<BedSpecialRenderer.Unbaked> type()
-
Field Details
-
texture
The field for thetexturerecord component. -
MAP_CODEC
-
-
Constructor Details
-
Unbaked
-
Unbaked
Creates an instance of aUnbakedrecord class.- Parameters:
texture- the value for thetexturerecord component
-
-
Method Details
-
type
- Specified by:
typein interfaceSpecialModelRenderer.Unbaked
-
bake
- Specified by:
bakein interfaceSpecialModelRenderer.Unbaked
-
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
-