Record Class TextConsumer.Transformation

java.lang.Object
java.lang.Record
net.minecraft.client.font.TextConsumer.Transformation
Record Components:
pose -
opacity -
scissor -
Enclosing interface:
TextConsumer

@Environment(CLIENT) public static record TextConsumer.Transformation(Matrix3x2fc pose, float opacity, @Nullable ScreenRect scissor) extends Record
Mappings:
Namespace Name
named net/minecraft/client/font/TextConsumer$Transformation
intermediary net/minecraft/class_12225$class_12227
official gfx$b
named pose
intermediary comp_5151
official a
named opacity
intermediary comp_5152
official b
named scissor
intermediary comp_5153
official c
  • Field Details

  • Constructor Details

    • Transformation

      public Transformation(Matrix3x2fc pose)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/font/TextConsumer$Transformation;<init>(Lorg/joml/Matrix3x2fc;)V
      intermediary <init> Lnet/minecraft/class_12225$class_12227;<init>(Lorg/joml/Matrix3x2fc;)V
      official <init> Lgfx$b;<init>(Lorg/joml/Matrix3x2fc;)V
    • Transformation

      public Transformation(Matrix3x2fc pose, float opacity, @Nullable @Nullable ScreenRect scissor)
      Creates an instance of a Transformation record class.
      Parameters:
      pose - the value for the pose record component
      opacity - the value for the opacity record component
      scissor - the value for the scissor record component
  • Method Details

    • withPose

      public TextConsumer.Transformation withPose(Matrix3x2fc pose)
      Mappings:
      Namespace Name Mixin selector
      named withPose Lnet/minecraft/client/font/TextConsumer$Transformation;withPose(Lorg/joml/Matrix3x2fc;)Lnet/minecraft/client/font/TextConsumer$Transformation;
      intermediary method_75781 Lnet/minecraft/class_12225$class_12227;method_75781(Lorg/joml/Matrix3x2fc;)Lnet/minecraft/class_12225$class_12227;
      official a Lgfx$b;a(Lorg/joml/Matrix3x2fc;)Lgfx$b;
    • scaled

      public TextConsumer.Transformation scaled(float scale)
      Mappings:
      Namespace Name Mixin selector
      named scaled Lnet/minecraft/client/font/TextConsumer$Transformation;scaled(F)Lnet/minecraft/client/font/TextConsumer$Transformation;
      intermediary method_75778 Lnet/minecraft/class_12225$class_12227;method_75778(F)Lnet/minecraft/class_12225$class_12227;
      official a Lgfx$b;a(F)Lgfx$b;
    • withOpacity

      public TextConsumer.Transformation withOpacity(float opacity)
      Mappings:
      Namespace Name Mixin selector
      named withOpacity Lnet/minecraft/client/font/TextConsumer$Transformation;withOpacity(F)Lnet/minecraft/client/font/TextConsumer$Transformation;
      intermediary method_75782 Lnet/minecraft/class_12225$class_12227;method_75782(F)Lnet/minecraft/class_12225$class_12227;
      official b Lgfx$b;b(F)Lgfx$b;
    • withScissor

      public TextConsumer.Transformation withScissor(ScreenRect scissor)
      Mappings:
      Namespace Name Mixin selector
      named withScissor Lnet/minecraft/client/font/TextConsumer$Transformation;withScissor(Lnet/minecraft/client/gui/ScreenRect;)Lnet/minecraft/client/font/TextConsumer$Transformation;
      intermediary method_75780 Lnet/minecraft/class_12225$class_12227;method_75780(Lnet/minecraft/class_8030;)Lnet/minecraft/class_12225$class_12227;
      official a Lgfx$b;a(Lgmy;)Lgfx$b;
    • withScissor

      public TextConsumer.Transformation withScissor(int left, int right, int top, int bottom)
      Mappings:
      Namespace Name Mixin selector
      named withScissor Lnet/minecraft/client/font/TextConsumer$Transformation;withScissor(IIII)Lnet/minecraft/client/font/TextConsumer$Transformation;
      intermediary method_75779 Lnet/minecraft/class_12225$class_12227;method_75779(IIII)Lnet/minecraft/class_12225$class_12227;
      official a Lgfx$b;a(IIII)Lgfx$b;
    • 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.
    • pose

      public Matrix3x2fc pose()
      Returns the value of the pose record component.
      Returns:
      the value of the pose record component
    • opacity

      public float opacity()
      Returns the value of the opacity record component.
      Returns:
      the value of the opacity record component
    • scissor

      @Nullable public @Nullable ScreenRect scissor()
      Returns the value of the scissor record component.
      Returns:
      the value of the scissor record component