Record Class TextGuiElementRenderState
java.lang.Object
java.lang.Record
net.minecraft.client.gui.render.state.TextGuiElementRenderState
- Record Components:
textRenderState-pose-x-y-scissorArea-bounds-
- All Implemented Interfaces:
ElementRenderState
@Environment(CLIENT)
public record TextGuiElementRenderState(TextRenderState textRenderState, Matrix3x2f pose, int x, int y, @Nullable ScreenRect scissorArea, @Nullable ScreenRect bounds)
extends Record
implements ElementRenderState
- Mappings:
Namespace Name named net/minecraft/client/gui/render/state/TextGuiElementRenderStateintermediary net/minecraft/class_11247official gatnamed textRenderStateintermediary comp_4098official anamed poseintermediary comp_4099official bnamed xintermediary comp_4100official cnamed yintermediary comp_4101official dnamed scissorAreaintermediary comp_4108official enamed boundsintermediary comp_4274official f
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable ScreenRectThe field for theboundsrecord component.private final Matrix3x2fThe field for theposerecord component.private final @Nullable ScreenRectThe field for thescissorArearecord component.private final TextRenderStateThe field for thetextRenderStaterecord component.private final intThe field for thexrecord component.private final intThe field for theyrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTextGuiElementRenderState(TextRenderState textRenderState, Matrix3x2f pose, int x, int y, @Nullable ScreenRect scissorArea) TextGuiElementRenderState(TextRenderState textRenderState, Matrix3x2f matrix3x2f, int int2, int int3, @Nullable ScreenRect screenRect, @Nullable ScreenRect screenRect2) -
Method Summary
Modifier and TypeMethodDescriptionbounds()Returns the value of theboundsrecord component.static @Nullable ScreenRectcreateBounds(int x, int y, TextRenderState textRenderState, Matrix3x2f pose, @Nullable ScreenRect scissorArea) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.pose()Returns the value of theposerecord component.Returns the value of thescissorArearecord component.Returns the value of thetextRenderStaterecord component.final StringtoString()Returns a string representation of this record class.intx()Returns the value of thexrecord component.inty()Returns the value of theyrecord component.
-
Field Details
-
textRenderState
The field for thetextRenderStaterecord component. -
pose
The field for theposerecord component. -
x
private final int xThe field for thexrecord component. -
y
private final int yThe field for theyrecord component. -
scissorArea
The field for thescissorArearecord component. -
bounds
The field for theboundsrecord component.
-
-
Constructor Details
-
TextGuiElementRenderState
public TextGuiElementRenderState(TextRenderState textRenderState, Matrix3x2f pose, int x, int y, @Nullable @Nullable ScreenRect scissorArea) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/gui/render/state/TextGuiElementRenderState;<init>(Lnet/minecraft/client/gui/render/state/TextRenderState;Lorg/joml/Matrix3x2f;IILnet/minecraft/client/gui/ScreenRect;)Vintermediary <init>Lnet/minecraft/class_11247;<init>(Lnet/minecraft/class_11248;Lorg/joml/Matrix3x2f;IILnet/minecraft/class_8030;)Vofficial <init>Lgat;<init>(Lgav;Lorg/joml/Matrix3x2f;IILfzz;)V
-
TextGuiElementRenderState
public TextGuiElementRenderState(TextRenderState textRenderState, Matrix3x2f matrix3x2f, int int2, int int3, @Nullable @Nullable ScreenRect screenRect, @Nullable @Nullable ScreenRect screenRect2)
-
-
Method Details
-
createBounds
@Nullable public static @Nullable ScreenRect createBounds(int x, int y, TextRenderState textRenderState, Matrix3x2f pose, @Nullable @Nullable ScreenRect scissorArea) - Mappings:
Namespace Name Mixin selector named createBoundsLnet/minecraft/client/gui/render/state/TextGuiElementRenderState;createBounds(IILnet/minecraft/client/gui/render/state/TextRenderState;Lorg/joml/Matrix3x2f;Lnet/minecraft/client/gui/ScreenRect;)Lnet/minecraft/client/gui/ScreenRect;intermediary method_71534Lnet/minecraft/class_11247;method_71534(IILnet/minecraft/class_11248;Lorg/joml/Matrix3x2f;Lnet/minecraft/class_8030;)Lnet/minecraft/class_8030;official aLgat;a(IILgav;Lorg/joml/Matrix3x2f;Lfzz;)Lfzz;
-
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 '=='. -
textRenderState
Returns the value of thetextRenderStaterecord component.- Returns:
- the value of the
textRenderStaterecord component
-
pose
Returns the value of theposerecord component.- Returns:
- the value of the
poserecord component
-
x
public int x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public int y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
scissorArea
Returns the value of thescissorArearecord component.- Returns:
- the value of the
scissorArearecord component
-
bounds
Returns the value of theboundsrecord component.- Specified by:
boundsin interfaceElementRenderState- Returns:
- the value of the
boundsrecord component
-