Record Class OrderedRenderCommandQueueImpl.LabelCommand
java.lang.Object
java.lang.Record
net.minecraft.client.render.command.OrderedRenderCommandQueueImpl.LabelCommand
- Record Components:
matricesEntry-x-y-text-lightCoords-color-backgroundColor-distanceToCameraSq-
- Enclosing class:
OrderedRenderCommandQueueImpl
@Environment(CLIENT)
public static record OrderedRenderCommandQueueImpl.LabelCommand(Matrix4f matricesEntry, float x, float y, Text text, int lightCoords, int color, int backgroundColor, double distanceToCameraSq)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/command/OrderedRenderCommandQueueImpl$LabelCommandintermediary net/minecraft/class_11661$class_11672official hgz$knamed matricesEntryintermediary comp_4514official anamed xintermediary comp_4515official bnamed yintermediary comp_4516official cnamed textintermediary comp_4517official dnamed lightCoordsintermediary comp_4518official enamed colorintermediary comp_4519official fnamed backgroundColorintermediary comp_4520official gnamed distanceToCameraSqintermediary comp_4521official h
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thebackgroundColorrecord component.private final intThe field for thecolorrecord component.private final doubleThe field for thedistanceToCameraSqrecord component.private final intThe field for thelightCoordsrecord component.private final Matrix4fThe field for thematricesEntryrecord component.private final TextThe field for thetextrecord component.private final floatThe field for thexrecord component.private final floatThe field for theyrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionLabelCommand(Matrix4f matrix4f, float float2, float float3, Text text, int int2, int int3, int int4, double double2) -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebackgroundColorrecord component.intcolor()Returns the value of thecolorrecord component.doubleReturns the value of thedistanceToCameraSqrecord 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.Returns the value of thematricesEntryrecord component.text()Returns the value of thetextrecord 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
-
matricesEntry
The field for thematricesEntryrecord component. -
x
private final float xThe field for thexrecord component. -
y
private final float yThe field for theyrecord component. -
text
The field for thetextrecord 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. -
distanceToCameraSq
private final double distanceToCameraSqThe field for thedistanceToCameraSqrecord component.
-
-
Constructor Details
-
LabelCommand
-
-
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 '=='. -
matricesEntry
Returns the value of thematricesEntryrecord component.- Returns:
- the value of the
matricesEntryrecord 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
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord 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
-
distanceToCameraSq
public double distanceToCameraSq()Returns the value of thedistanceToCameraSqrecord component.- Returns:
- the value of the
distanceToCameraSqrecord component
-