Record Class ShulkerBoxSpecialRenderer.Unbaked

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

public static record ShulkerBoxSpecialRenderer.Unbaked(ResourceLocation texture, float openness, Direction orientation) extends Record implements SpecialModelRenderer.Unbaked
  • Field Details

    • texture

      private final ResourceLocation texture
      The field for the texture record component.
    • openness

      private final float openness
      The field for the openness record component.
    • orientation

      private final Direction orientation
      The field for the orientation record component.
    • MAP_CODEC

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

    • Unbaked

      public Unbaked()
    • Unbaked

      public Unbaked(DyeColor p_388305_)
    • Unbaked

      public Unbaked(ResourceLocation texture, float openness, Direction orientation)
      Creates an instance of a Unbaked record class.
      Parameters:
      texture - the value for the texture record component
      openness - the value for the openness record component
      orientation - the value for the orientation record component
  • Method Details

    • type

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

      public SpecialModelRenderer<?> bake(EntityModelSet p_388396_)
      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.
    • texture

      public ResourceLocation texture()
      Returns the value of the texture record component.
      Returns:
      the value of the texture record component
    • openness

      public float openness()
      Returns the value of the openness record component.
      Returns:
      the value of the openness record component
    • orientation

      public Direction orientation()
      Returns the value of the orientation record component.
      Returns:
      the value of the orientation record component