Record Class SkullSpecialRenderer.Unbaked

java.lang.Object
java.lang.Record
net.minecraft.client.renderer.special.SkullSpecialRenderer.Unbaked
All Implemented Interfaces:
SpecialModelRenderer.Unbaked
Enclosing class:
SkullSpecialRenderer

public static record SkullSpecialRenderer.Unbaked(SkullBlock.Type kind, Optional<ResourceLocation> textureOverride, float animation) extends Record implements SpecialModelRenderer.Unbaked
  • Field Details

    • kind

      private final SkullBlock.Type kind
      The field for the kind record component.
    • textureOverride

      private final Optional<ResourceLocation> textureOverride
      The field for the textureOverride record component.
    • animation

      private final float animation
      The field for the animation record component.
    • MAP_CODEC

      public static final com.mojang.serialization.MapCodec<SkullSpecialRenderer.Unbaked> MAP_CODEC
  • Constructor Details

    • Unbaked

      public Unbaked(SkullBlock.Type p_387200_)
    • Unbaked

      public Unbaked(SkullBlock.Type kind, Optional<ResourceLocation> textureOverride, float animation)
      Creates an instance of a Unbaked record class.
      Parameters:
      kind - the value for the kind record component
      textureOverride - the value for the textureOverride record component
      animation - the value for the animation record component
  • Method Details

    • type

      public com.mojang.serialization.MapCodec<SkullSpecialRenderer.Unbaked> type()
      Specified by:
      type in interface SpecialModelRenderer.Unbaked
    • bake

      @Nullable public SpecialModelRenderer<?> bake(EntityModelSet p_388555_)
      Specified by:
      bake in interface SpecialModelRenderer.Unbaked
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • kind

      public SkullBlock.Type kind()
      Returns the value of the kind record component.
      Returns:
      the value of the kind record component
    • textureOverride

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

      public float animation()
      Returns the value of the animation record component.
      Returns:
      the value of the animation record component