Package net.minecraft.client.font
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$Transformationintermediary net/minecraft/class_12225$class_12227official gfx$bnamed poseintermediary comp_5151official anamed opacityintermediary comp_5152official bnamed scissorintermediary comp_5153official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final floatThe field for theopacityrecord component.private final Matrix3x2fcThe field for theposerecord component.private final @Nullable ScreenRectThe field for thescissorrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTransformation(Matrix3x2fc pose) Transformation(Matrix3x2fc pose, float opacity, @Nullable ScreenRect scissor) Creates an instance of aTransformationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatopacity()Returns the value of theopacityrecord component.pose()Returns the value of theposerecord component.scaled(float scale) scissor()Returns the value of thescissorrecord component.final StringtoString()Returns a string representation of this record class.withOpacity(float opacity) withPose(Matrix3x2fc pose) withScissor(int left, int right, int top, int bottom) withScissor(ScreenRect scissor)
-
Field Details
-
Constructor Details
-
Transformation
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/font/TextConsumer$Transformation;<init>(Lorg/joml/Matrix3x2fc;)Vintermediary <init>Lnet/minecraft/class_12225$class_12227;<init>(Lorg/joml/Matrix3x2fc;)Vofficial <init>Lgfx$b;<init>(Lorg/joml/Matrix3x2fc;)V
-
Transformation
Creates an instance of aTransformationrecord class.
-
-
Method Details
-
withPose
- Mappings:
Namespace Name Mixin selector named withPoseLnet/minecraft/client/font/TextConsumer$Transformation;withPose(Lorg/joml/Matrix3x2fc;)Lnet/minecraft/client/font/TextConsumer$Transformation;intermediary method_75781Lnet/minecraft/class_12225$class_12227;method_75781(Lorg/joml/Matrix3x2fc;)Lnet/minecraft/class_12225$class_12227;official aLgfx$b;a(Lorg/joml/Matrix3x2fc;)Lgfx$b;
-
scaled
- Mappings:
Namespace Name Mixin selector named scaledLnet/minecraft/client/font/TextConsumer$Transformation;scaled(F)Lnet/minecraft/client/font/TextConsumer$Transformation;intermediary method_75778Lnet/minecraft/class_12225$class_12227;method_75778(F)Lnet/minecraft/class_12225$class_12227;official aLgfx$b;a(F)Lgfx$b;
-
withOpacity
- Mappings:
Namespace Name Mixin selector named withOpacityLnet/minecraft/client/font/TextConsumer$Transformation;withOpacity(F)Lnet/minecraft/client/font/TextConsumer$Transformation;intermediary method_75782Lnet/minecraft/class_12225$class_12227;method_75782(F)Lnet/minecraft/class_12225$class_12227;official bLgfx$b;b(F)Lgfx$b;
-
withScissor
- Mappings:
Namespace Name Mixin selector named withScissorLnet/minecraft/client/font/TextConsumer$Transformation;withScissor(Lnet/minecraft/client/gui/ScreenRect;)Lnet/minecraft/client/font/TextConsumer$Transformation;intermediary method_75780Lnet/minecraft/class_12225$class_12227;method_75780(Lnet/minecraft/class_8030;)Lnet/minecraft/class_12225$class_12227;official aLgfx$b;a(Lgmy;)Lgfx$b;
-
withScissor
- Mappings:
Namespace Name Mixin selector named withScissorLnet/minecraft/client/font/TextConsumer$Transformation;withScissor(IIII)Lnet/minecraft/client/font/TextConsumer$Transformation;intermediary method_75779Lnet/minecraft/class_12225$class_12227;method_75779(IIII)Lnet/minecraft/class_12225$class_12227;official aLgfx$b;a(IIII)Lgfx$b;
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
pose
Returns the value of theposerecord component.- Returns:
- the value of the
poserecord component
-
opacity
public float opacity()Returns the value of theopacityrecord component.- Returns:
- the value of the
opacityrecord component
-
scissor
Returns the value of thescissorrecord component.- Returns:
- the value of the
scissorrecord component
-