Record Class ModelVariant

java.lang.Object
java.lang.Record
net.minecraft.client.render.model.json.ModelVariant
Record Components:
location -
rotation -
uvLock -
weight -
All Implemented Interfaces:
ModelBakeSettings

@Environment(CLIENT) public record ModelVariant(Identifier location, AffineTransformation rotation, boolean uvLock, int weight) extends Record implements ModelBakeSettings
Mappings:
Namespace Name
named net/minecraft/client/render/model/json/ModelVariant
intermediary net/minecraft/class_813
official gnu
named location
intermediary comp_3379
official a
named rotation
intermediary comp_3380
official b
named uvLock
intermediary comp_3381
official c
named weight
intermediary comp_3382
official d
  • Field Details Link icon

    • location Link icon

      private final Identifier location
      The field for the location record component.
    • rotation Link icon

      private final AffineTransformation rotation
      The field for the rotation record component.
    • uvLock Link icon

      private final boolean uvLock
      The field for the uvLock record component.
    • weight Link icon

      private final int weight
      The field for the weight record component.
  • Constructor Details Link icon

    • ModelVariant Link icon

      public ModelVariant(Identifier location, AffineTransformation rotation, boolean uvLock, int weight)
      Creates an instance of a ModelVariant record class.
      Parameters:
      location - the value for the location record component
      rotation - the value for the rotation record component
      uvLock - the value for the uvLock record component
      weight - the value for the weight record component
  • Method Details Link icon

    • getRotation Link icon

      public AffineTransformation getRotation()
      Specified by:
      getRotation in interface ModelBakeSettings
      Mappings:
      Namespace Name Mixin selector
      named getRotation Lnet/minecraft/client/render/model/ModelBakeSettings;getRotation()Lnet/minecraft/util/math/AffineTransformation;
      intermediary method_3509 Lnet/minecraft/class_3665;method_3509()Lnet/minecraft/class_4590;
      official a Lhhj;a()Lj;
    • isUvLocked Link icon

      public boolean isUvLocked()
      Specified by:
      isUvLocked in interface ModelBakeSettings
      Mappings:
      Namespace Name Mixin selector
      named isUvLocked Lnet/minecraft/client/render/model/ModelBakeSettings;isUvLocked()Z
      intermediary method_3512 Lnet/minecraft/class_3665;method_3512()Z
      official b Lhhj;b()Z
    • toString Link icon

      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 Link icon

      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 Link icon

      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.
    • location Link icon

      public Identifier location()
      Returns the value of the location record component.
      Returns:
      the value of the location record component
    • rotation Link icon

      public AffineTransformation rotation()
      Returns the value of the rotation record component.
      Returns:
      the value of the rotation record component
    • uvLock Link icon

      public boolean uvLock()
      Returns the value of the uvLock record component.
      Returns:
      the value of the uvLock record component
    • weight Link icon

      public int weight()
      Returns the value of the weight record component.
      Returns:
      the value of the weight record component