Record Class TextGuiElementRenderState
java.lang.Object
java.lang.Record
net.minecraft.client.gui.render.state.TextGuiElementRenderState
- Record Components:
textRenderState-pose-x-y-scissorArea-
@Environment(CLIENT)
public record TextGuiElementRenderState(TextRenderState textRenderState, Matrix3x2f pose, int x, int y, @Nullable ScreenRect scissorArea)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/gui/render/state/TextGuiElementRenderStateintermediary net/minecraft/class_11247official fzunamed textRenderStateintermediary comp_4098official anamed poseintermediary comp_4099official bnamed xintermediary comp_4100official cnamed yintermediary comp_4101official dnamed scissorAreaintermediary comp_4108official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate 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 matrix3x2f, int int2, int int3, @Nullable ScreenRect screenRect) -
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.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.
-
-
Constructor Details
-
TextGuiElementRenderState
public TextGuiElementRenderState(TextRenderState textRenderState, Matrix3x2f matrix3x2f, int int2, int int3, @Nullable @Nullable ScreenRect screenRect)
-
-
Method Details
-
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
-