Record Class ModelTransform

java.lang.Object
java.lang.Record
net.minecraft.client.model.ModelTransform
Record Components:
pivotX -
pivotY -
pivotZ -
pitch -
yaw -
roll -
xScale -
yScale -
zScale -

@Environment(CLIENT) public record ModelTransform(float pivotX, float pivotY, float pivotZ, float pitch, float yaw, float roll, float xScale, float yScale, float zScale) extends Record
Mappings:
Namespace Name
named net/minecraft/client/model/ModelTransform
intermediary net/minecraft/class_5603
official gep
named pivotX
intermediary comp_2997
official b
named pivotY
intermediary comp_2998
official c
named pivotZ
intermediary comp_2999
official d
named pitch
intermediary comp_3000
official e
named yaw
intermediary comp_3001
official f
named roll
intermediary comp_3002
official g
named xScale
intermediary comp_3003
official h
named yScale
intermediary comp_3004
official i
named zScale
intermediary comp_3005
official j
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ModelTransform
     
    private final float
    The field for the pitch record component.
    private final float
    The field for the pivotX record component.
    private final float
    The field for the pivotY record component.
    private final float
    The field for the pivotZ record component.
    private final float
    The field for the roll record component.
    private final float
    The field for the xScale record component.
    private final float
    The field for the yaw record component.
    private final float
    The field for the yScale record component.
    private final float
    The field for the zScale record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ModelTransform(float pivotX, float pivotY, float pivotZ, float pitch, float float2, float float3, float float4, float float5, float float6)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    addPivot(float pivotX, float pivotY, float pivotZ)
     
    final boolean
    equals(Object object)
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    of(float pivotX, float pivotY, float pivotZ, float pitch, float yaw, float roll)
     
    float
    Returns the value of the pitch record component.
    pivot(float pivotX, float pivotY, float pivotZ)
     
    float
    Returns the value of the pivotX record component.
    float
    Returns the value of the pivotY record component.
    float
    Returns the value of the pivotZ record component.
    float
    Returns the value of the roll record component.
    rotation(float pitch, float yaw, float roll)
     
    scaled(float scale)
     
    scaled(float xScale, float yScale, float zScale)
     
    final String
    Returns a string representation of this record class.
    withScale(float scale)
     
    float
    Returns the value of the xScale record component.
    float
    yaw()
    Returns the value of the yaw record component.
    float
    Returns the value of the yScale record component.
    float
    Returns the value of the zScale record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • pivotX

      private final float pivotX
      The field for the pivotX record component.
    • pivotY

      private final float pivotY
      The field for the pivotY record component.
    • pivotZ

      private final float pivotZ
      The field for the pivotZ record component.
    • pitch

      private final float pitch
      The field for the pitch record component.
    • yaw

      private final float yaw
      The field for the yaw record component.
    • roll

      private final float roll
      The field for the roll record component.
    • xScale

      private final float xScale
      The field for the xScale record component.
    • yScale

      private final float yScale
      The field for the yScale record component.
    • zScale

      private final float zScale
      The field for the zScale record component.
    • NONE

      public static final ModelTransform NONE
      Mappings:
      Namespace Name Mixin selector
      named NONE Lnet/minecraft/client/model/ModelTransform;NONE:Lnet/minecraft/client/model/ModelTransform;
      intermediary field_27701 Lnet/minecraft/class_5603;field_27701:Lnet/minecraft/class_5603;
      official a Lgep;a:Lgep;
  • Constructor Details

    • ModelTransform

      public ModelTransform(float pivotX, float pivotY, float pivotZ, float pitch, float float2, float float3, float float4, float float5, float float6)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/model/ModelTransform;<init>(FFFFFFFFF)V
      intermediary <init> Lnet/minecraft/class_5603;<init>(FFFFFFFFF)V
      official <init> Lgep;<init>(FFFFFFFFF)V
  • Method Details

    • pivot

      public static ModelTransform pivot(float pivotX, float pivotY, float pivotZ)
      Mappings:
      Namespace Name Mixin selector
      named pivot Lnet/minecraft/client/model/ModelTransform;pivot(FFF)Lnet/minecraft/client/model/ModelTransform;
      intermediary method_32090 Lnet/minecraft/class_5603;method_32090(FFF)Lnet/minecraft/class_5603;
      official a Lgep;a(FFF)Lgep;
    • rotation

      public static ModelTransform rotation(float pitch, float yaw, float roll)
      Mappings:
      Namespace Name Mixin selector
      named rotation Lnet/minecraft/client/model/ModelTransform;rotation(FFF)Lnet/minecraft/client/model/ModelTransform;
      intermediary method_32092 Lnet/minecraft/class_5603;method_32092(FFF)Lnet/minecraft/class_5603;
      official b Lgep;b(FFF)Lgep;
    • of

      public static ModelTransform of(float pivotX, float pivotY, float pivotZ, float pitch, float yaw, float roll)
      Mappings:
      Namespace Name Mixin selector
      named of Lnet/minecraft/client/model/ModelTransform;of(FFFFFF)Lnet/minecraft/client/model/ModelTransform;
      intermediary method_32091 Lnet/minecraft/class_5603;method_32091(FFFFFF)Lnet/minecraft/class_5603;
      official a Lgep;a(FFFFFF)Lgep;
    • addPivot

      public ModelTransform addPivot(float pivotX, float pivotY, float pivotZ)
      Mappings:
      Namespace Name Mixin selector
      named addPivot Lnet/minecraft/client/model/ModelTransform;addPivot(FFF)Lnet/minecraft/client/model/ModelTransform;
      intermediary method_62135 Lnet/minecraft/class_5603;method_62135(FFF)Lnet/minecraft/class_5603;
      official c Lgep;c(FFF)Lgep;
    • withScale

      public ModelTransform withScale(float scale)
      Mappings:
      Namespace Name Mixin selector
      named withScale Lnet/minecraft/client/model/ModelTransform;withScale(F)Lnet/minecraft/client/model/ModelTransform;
      intermediary method_62133 Lnet/minecraft/class_5603;method_62133(F)Lnet/minecraft/class_5603;
      official a Lgep;a(F)Lgep;
    • scaled

      public ModelTransform scaled(float scale)
      Mappings:
      Namespace Name Mixin selector
      named scaled Lnet/minecraft/client/model/ModelTransform;scaled(F)Lnet/minecraft/client/model/ModelTransform;
      intermediary method_62134 Lnet/minecraft/class_5603;method_62134(F)Lnet/minecraft/class_5603;
      official b Lgep;b(F)Lgep;
    • scaled

      public ModelTransform scaled(float xScale, float yScale, float zScale)
      Mappings:
      Namespace Name Mixin selector
      named scaled Lnet/minecraft/client/model/ModelTransform;scaled(FFF)Lnet/minecraft/client/model/ModelTransform;
      intermediary method_62136 Lnet/minecraft/class_5603;method_62136(FFF)Lnet/minecraft/class_5603;
      official d Lgep;d(FFF)Lgep;
    • 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. All components in this record class 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.
    • pivotX

      public float pivotX()
      Returns the value of the pivotX record component.
      Returns:
      the value of the pivotX record component
    • pivotY

      public float pivotY()
      Returns the value of the pivotY record component.
      Returns:
      the value of the pivotY record component
    • pivotZ

      public float pivotZ()
      Returns the value of the pivotZ record component.
      Returns:
      the value of the pivotZ record component
    • pitch

      public float pitch()
      Returns the value of the pitch record component.
      Returns:
      the value of the pitch record component
    • yaw

      public float yaw()
      Returns the value of the yaw record component.
      Returns:
      the value of the yaw record component
    • roll

      public float roll()
      Returns the value of the roll record component.
      Returns:
      the value of the roll record component
    • xScale

      public float xScale()
      Returns the value of the xScale record component.
      Returns:
      the value of the xScale record component
    • yScale

      public float yScale()
      Returns the value of the yScale record component.
      Returns:
      the value of the yScale record component
    • zScale

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