Package net.minecraft.entity.decoration
Record Class DisplayEntity.RenderState
java.lang.Object
java.lang.Record
net.minecraft.entity.decoration.DisplayEntity.RenderState
- Record Components:
transformation
-billboardConstraints
-brightnessOverride
-shadowRadius
-shadowStrength
-glowColorOverride
-
- Enclosing class:
DisplayEntity
public static record DisplayEntity.RenderState(DisplayEntity.AbstractInterpolator<AffineTransformation> transformation, DisplayEntity.BillboardMode billboardConstraints, int brightnessOverride, DisplayEntity.FloatLerper shadowRadius, DisplayEntity.FloatLerper shadowStrength, int glowColorOverride)
extends Record
- Mappings:
Namespace Name named net/minecraft/entity/decoration/DisplayEntity$RenderState
intermediary net/minecraft/class_8113$class_8229
official bvh$k
named transformation
intermediary comp_1328
official a
named billboardConstraints
intermediary comp_1329
official b
named brightnessOverride
intermediary comp_1330
official c
named shadowRadius
intermediary comp_1331
official d
named shadowStrength
intermediary comp_1332
official e
named glowColorOverride
intermediary comp_1333
official f
-
Field Summary
Modifier and TypeFieldDescriptionprivate final DisplayEntity.BillboardMode
The field for thebillboardConstraints
record component.private final int
The field for thebrightnessOverride
record component.private final int
The field for theglowColorOverride
record component.private final DisplayEntity.FloatLerper
The field for theshadowRadius
record component.private final DisplayEntity.FloatLerper
The field for theshadowStrength
record component.private final DisplayEntity.AbstractInterpolator
<AffineTransformation> The field for thetransformation
record component. -
Constructor Summary
ConstructorDescriptionRenderState
(DisplayEntity.AbstractInterpolator<AffineTransformation> abstractInterpolator, DisplayEntity.BillboardMode billboardMode, int int2, DisplayEntity.FloatLerper floatLerper, DisplayEntity.FloatLerper floatLerper2, int int3) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebillboardConstraints
record component.int
Returns the value of thebrightnessOverride
record component.final boolean
Indicates whether some other object is "equal to" this one.int
Returns the value of theglowColorOverride
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of theshadowRadius
record component.Returns the value of theshadowStrength
record component.final String
toString()
Returns a string representation of this record class.Returns the value of thetransformation
record component.
-
Field Details
-
transformation
The field for thetransformation
record component. -
billboardConstraints
The field for thebillboardConstraints
record component. -
brightnessOverride
private final int brightnessOverrideThe field for thebrightnessOverride
record component. -
shadowRadius
The field for theshadowRadius
record component. -
shadowStrength
The field for theshadowStrength
record component. -
glowColorOverride
private final int glowColorOverrideThe field for theglowColorOverride
record component.
-
-
Constructor Details
-
RenderState
public RenderState(DisplayEntity.AbstractInterpolator<AffineTransformation> abstractInterpolator, DisplayEntity.BillboardMode billboardMode, int int2, DisplayEntity.FloatLerper floatLerper, DisplayEntity.FloatLerper floatLerper2, int int3)
-
-
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 '=='. -
transformation
Returns the value of thetransformation
record component.- Returns:
- the value of the
transformation
record component
-
billboardConstraints
Returns the value of thebillboardConstraints
record component.- Returns:
- the value of the
billboardConstraints
record component
-
brightnessOverride
public int brightnessOverride()Returns the value of thebrightnessOverride
record component.- Returns:
- the value of the
brightnessOverride
record component
-
shadowRadius
Returns the value of theshadowRadius
record component.- Returns:
- the value of the
shadowRadius
record component
-
shadowStrength
Returns the value of theshadowStrength
record component.- Returns:
- the value of the
shadowStrength
record component
-
glowColorOverride
public int glowColorOverride()Returns the value of theglowColorOverride
record component.- Returns:
- the value of the
glowColorOverride
record component
-