Record Class ArmatureItemRenderer.Unbaked
java.lang.Object
java.lang.Record
net.ixdarklord.coolcatcanvas.internal.client.armature.render.ArmatureItemRenderer.Unbaked
- All Implemented Interfaces:
net.minecraft.client.renderer.special.SpecialModelRenderer.Unbaked<ArmatureFrame>
- Enclosing class:
ArmatureItemRenderer
public static record ArmatureItemRenderer.Unbaked(net.minecraft.resources.Identifier armature, Optional<String> animation, Optional<net.minecraft.resources.Identifier> texture)
extends Record
implements net.minecraft.client.renderer.special.SpecialModelRenderer.Unbaked<ArmatureFrame>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<ArmatureItemRenderer.Unbaked> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theanimationrecord component.net.minecraft.resources.Identifierarmature()Returns the value of thearmaturerecord component.net.minecraft.client.renderer.special.SpecialModelRenderer<ArmatureFrame> bake(net.minecraft.client.renderer.special.SpecialModelRenderer.BakingContext context) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Optional<net.minecraft.resources.Identifier> texture()Returns the value of thetexturerecord component.final StringtoString()Returns a string representation of this record class.com.mojang.serialization.MapCodec<ArmatureItemRenderer.Unbaked> type()
-
Field Details
-
MAP_CODEC
-
-
Constructor Details
-
Unbaked
public Unbaked(net.minecraft.resources.Identifier armature, Optional<String> animation, Optional<net.minecraft.resources.Identifier> texture) Creates an instance of aUnbakedrecord class.- Parameters:
armature- the value for thearmaturerecord componentanimation- the value for theanimationrecord componenttexture- the value for thetexturerecord component
-
-
Method Details
-
bake
public net.minecraft.client.renderer.special.SpecialModelRenderer<ArmatureFrame> bake(net.minecraft.client.renderer.special.SpecialModelRenderer.BakingContext context) - Specified by:
bakein interfacenet.minecraft.client.renderer.special.SpecialModelRenderer.Unbaked<ArmatureFrame>
-
type
- Specified by:
typein interfacenet.minecraft.client.renderer.special.SpecialModelRenderer.Unbaked<ArmatureFrame>
-
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). -
armature
public net.minecraft.resources.Identifier armature()Returns the value of thearmaturerecord component.- Returns:
- the value of the
armaturerecord component
-
animation
-
texture
Returns the value of thetexturerecord component.- Returns:
- the value of the
texturerecord component
-