Record Class ModelElementFace

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

@Environment(CLIENT) public record ModelElementFace(@Nullable Direction cullFace, int tintIndex, String textureId, ModelElementFace.UV uvs, AxisRotation rotation) extends Record
Mappings:
Namespace Name
named net/minecraft/client/render/model/json/ModelElementFace
intermediary net/minecraft/class_783
official gyw
named cullFace
intermediary comp_2867
official b
named tintIndex
intermediary comp_2868
official c
named textureId
intermediary comp_2869
official d
named uvs
intermediary comp_3733
official e
named rotation
intermediary comp_3734
official f
  • 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.
    • uvs

      @Nullable private final ModelElementFace.UV uvs
      The field for the uvs record component.
    • rotation

      private final AxisRotation rotation
      The field for the rotation 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 Lgyw;a:I
  • Constructor Details

    • ModelElementFace

      public ModelElementFace(@Nullable @Nullable Direction cullFace, int tintIndex, String textureId, @Nullable @Nullable ModelElementFace.UV textureData, AxisRotation axisRotation)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/render/model/json/ModelElementFace;<init>(Lnet/minecraft/util/math/Direction;ILjava/lang/String;Lnet/minecraft/client/render/model/json/ModelElementFace$UV;Lnet/minecraft/util/math/AxisRotation;)V
      intermediary <init> Lnet/minecraft/class_783;<init>(Lnet/minecraft/class_2350;ILjava/lang/String;Lnet/minecraft/class_783$class_10800;Lnet/minecraft/class_10821;)V
      official <init> Lgyw;<init>(Ljh;ILjava/lang/String;Lgyw$b;Li;)V
  • Method Details

    • getUValue

      public static float getUValue(ModelElementFace.UV uV, AxisRotation axisRotation, int int2)
      Mappings:
      Namespace Name Mixin selector
      named getUValue Lnet/minecraft/client/render/model/json/ModelElementFace;getUValue(Lnet/minecraft/client/render/model/json/ModelElementFace$UV;Lnet/minecraft/util/math/AxisRotation;I)F
      intermediary method_67909 Lnet/minecraft/class_783;method_67909(Lnet/minecraft/class_783$class_10800;Lnet/minecraft/class_10821;I)F
      official a Lgyw;a(Lgyw$b;Li;I)F
    • getVValue

      public static float getVValue(ModelElementFace.UV uV, AxisRotation axisRotation, int int2)
      Mappings:
      Namespace Name Mixin selector
      named getVValue Lnet/minecraft/client/render/model/json/ModelElementFace;getVValue(Lnet/minecraft/client/render/model/json/ModelElementFace$UV;Lnet/minecraft/util/math/AxisRotation;I)F
      intermediary method_67910 Lnet/minecraft/class_783;method_67910(Lnet/minecraft/class_783$class_10800;Lnet/minecraft/class_10821;I)F
      official b Lgyw;b(Lgyw$b;Li;I)F
    • 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
    • uvs

      Returns the value of the uvs record component.
      Returns:
      the value of the uvs record component
    • rotation

      public AxisRotation rotation()
      Returns the value of the rotation record component.
      Returns:
      the value of the rotation record component