Record Class ModelElementFace

java.lang.Object
java.lang.Record
net.minecraft.client.render.model.json.ModelElementFace
Record Components:
cullFace -
tintIndex -
textureId -
textureData -

@Environment(CLIENT) public record ModelElementFace(@Nullable Direction cullFace, int tintIndex, String textureId, ModelElementTexture textureData) extends Record
Mappings:
Namespace Name
named net/minecraft/client/render/model/json/ModelElementFace
intermediary net/minecraft/class_783
official gmt
named cullFace
intermediary comp_2867
official b
named tintIndex
intermediary comp_2868
official c
named textureId
intermediary comp_2869
official d
named textureData
intermediary comp_2870
official e
  • Field Details

    • cullFace

      @Nullable private final @Nullable Direction cullFace
      The field for the cullFace record component.
    • tintIndex

      private final int tintIndex
      The field for the tintIndex record component.
    • textureId

      private final String textureId
      The field for the textureId record component.
    • textureData

      private final ModelElementTexture textureData
      The field for the textureData record component.
    • field_32789

      public static final int field_32789
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_32789 Lnet/minecraft/client/render/model/json/ModelElementFace;field_32789:I
      intermediary field_32789 Lnet/minecraft/class_783;field_32789:I
      official a Lgmt;a:I
  • Constructor Details

    • ModelElementFace

      public ModelElementFace(@Nullable @Nullable Direction cullFace, int tintIndex, String textureId, ModelElementTexture textureData)
      Creates an instance of a ModelElementFace record class.
      Parameters:
      cullFace - the value for the cullFace record component
      tintIndex - the value for the tintIndex record component
      textureId - the value for the textureId record component
      textureData - the value for the textureData record component
  • Method Details

    • 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 object)
      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:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • cullFace

      @Nullable public @Nullable Direction cullFace()
      Returns the value of the cullFace record component.
      Returns:
      the value of the cullFace record component
    • tintIndex

      public int tintIndex()
      Returns the value of the tintIndex record component.
      Returns:
      the value of the tintIndex record component
    • textureId

      public String textureId()
      Returns the value of the textureId record component.
      Returns:
      the value of the textureId record component
    • textureData

      public ModelElementTexture textureData()
      Returns the value of the textureData record component.
      Returns:
      the value of the textureData record component