Package net.minecraft.client.renderer
Record Class SubmitNodeStorage.TextSubmit
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.SubmitNodeStorage.TextSubmit
- Enclosing class:
SubmitNodeStorage
public static record SubmitNodeStorage.TextSubmit(Matrix4f pose, float x, float y, FormattedCharSequence string, boolean dropShadow, Font.DisplayMode displayMode, int lightCoords, int color, int backgroundColor, int outlineColor)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thebackgroundColorrecord component.private final intThe field for thecolorrecord component.private final Font.DisplayModeThe field for thedisplayModerecord component.private final booleanThe field for thedropShadowrecord component.private final intThe field for thelightCoordsrecord component.private final intThe field for theoutlineColorrecord component.private final Matrix4fThe field for theposerecord component.private final FormattedCharSequenceThe field for thestringrecord component.private final floatThe field for thexrecord component.private final floatThe field for theyrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTextSubmit(Matrix4f pose, float x, float y, FormattedCharSequence string, boolean dropShadow, Font.DisplayMode displayMode, int lightCoords, int color, int backgroundColor, int outlineColor) Creates an instance of aTextSubmitrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebackgroundColorrecord component.intcolor()Returns the value of thecolorrecord component.Returns the value of thedisplayModerecord component.booleanReturns the value of thedropShadowrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thelightCoordsrecord component.intReturns the value of theoutlineColorrecord component.pose()Returns the value of theposerecord component.string()Returns the value of thestringrecord component.final StringtoString()Returns a string representation of this record class.floatx()Returns the value of thexrecord component.floaty()Returns the value of theyrecord component.
-
Field Details
-
pose
The field for theposerecord component. -
x
private final float xThe field for thexrecord component. -
y
private final float yThe field for theyrecord component. -
string
The field for thestringrecord component. -
dropShadow
private final boolean dropShadowThe field for thedropShadowrecord component. -
displayMode
The field for thedisplayModerecord component. -
lightCoords
private final int lightCoordsThe field for thelightCoordsrecord component. -
color
private final int colorThe field for thecolorrecord component. -
backgroundColor
private final int backgroundColorThe field for thebackgroundColorrecord component. -
outlineColor
private final int outlineColorThe field for theoutlineColorrecord component.
-
-
Constructor Details
-
TextSubmit
public TextSubmit(Matrix4f pose, float x, float y, FormattedCharSequence string, boolean dropShadow, Font.DisplayMode displayMode, int lightCoords, int color, int backgroundColor, int outlineColor) Creates an instance of aTextSubmitrecord class.- Parameters:
pose- the value for theposerecord componentx- the value for thexrecord componenty- the value for theyrecord componentstring- the value for thestringrecord componentdropShadow- the value for thedropShadowrecord componentdisplayMode- the value for thedisplayModerecord componentlightCoords- the value for thelightCoordsrecord componentcolor- the value for thecolorrecord componentbackgroundColor- the value for thebackgroundColorrecord componentoutlineColor- the value for theoutlineColorrecord component
-
-
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 '=='. -
pose
Returns the value of theposerecord component.- Returns:
- the value of the
poserecord component
-
x
public float x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public float y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
string
Returns the value of thestringrecord component.- Returns:
- the value of the
stringrecord component
-
dropShadow
public boolean dropShadow()Returns the value of thedropShadowrecord component.- Returns:
- the value of the
dropShadowrecord component
-
displayMode
Returns the value of thedisplayModerecord component.- Returns:
- the value of the
displayModerecord component
-
lightCoords
public int lightCoords()Returns the value of thelightCoordsrecord component.- Returns:
- the value of the
lightCoordsrecord component
-
color
public int color()Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
backgroundColor
public int backgroundColor()Returns the value of thebackgroundColorrecord component.- Returns:
- the value of the
backgroundColorrecord component
-
outlineColor
public int outlineColor()Returns the value of theoutlineColorrecord component.- Returns:
- the value of the
outlineColorrecord component
-