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

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.MapCodec<ArmatureItemRenderer.Unbaked>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Unbaked(net.minecraft.resources.Identifier armature, Optional<String> animation, Optional<net.minecraft.resources.Identifier> texture)
    Creates an instance of a Unbaked record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the animation record component.
    net.minecraft.resources.Identifier
    Returns the value of the armature record component.
    net.minecraft.client.renderer.special.SpecialModelRenderer<ArmatureFrame>
    bake(net.minecraft.client.renderer.special.SpecialModelRenderer.BakingContext context)
     
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Optional<net.minecraft.resources.Identifier>
    Returns the value of the texture record component.
    final String
    Returns a string representation of this record class.
    com.mojang.serialization.MapCodec<ArmatureItemRenderer.Unbaked>
     

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • Unbaked

      public Unbaked(net.minecraft.resources.Identifier armature, Optional<String> animation, Optional<net.minecraft.resources.Identifier> texture)
      Creates an instance of a Unbaked record class.
      Parameters:
      armature - the value for the armature record component
      animation - the value for the animation record component
      texture - the value for the texture record component
  • Method Details

    • bake

      public net.minecraft.client.renderer.special.SpecialModelRenderer<ArmatureFrame> bake(net.minecraft.client.renderer.special.SpecialModelRenderer.BakingContext context)
      Specified by:
      bake in interface net.minecraft.client.renderer.special.SpecialModelRenderer.Unbaked<ArmatureFrame>
    • type

      public com.mojang.serialization.MapCodec<ArmatureItemRenderer.Unbaked> type()
      Specified by:
      type in interface net.minecraft.client.renderer.special.SpecialModelRenderer.Unbaked<ArmatureFrame>
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • armature

      public net.minecraft.resources.Identifier armature()
      Returns the value of the armature record component.
      Returns:
      the value of the armature record component
    • animation

      public Optional<String> animation()
      Returns the value of the animation record component.
      Returns:
      the value of the animation record component
    • texture

      public Optional<net.minecraft.resources.Identifier> texture()
      Returns the value of the texture record component.
      Returns:
      the value of the texture record component