Package net.minecraft.world.entity
Record Class Display.RenderState
java.lang.Object
java.lang.Record
net.minecraft.world.entity.Display.RenderState
- Enclosing class:
Display
public static record Display.RenderState(Display.GenericInterpolator<Transformation> transformation, Display.BillboardConstraints billboardConstraints, int brightnessOverride, Display.FloatInterpolator shadowRadius, Display.FloatInterpolator shadowStrength, int glowColorOverride)
extends Record
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Display.BillboardConstraints
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 Display.FloatInterpolator
The field for theshadowRadius
record component.private final Display.FloatInterpolator
The field for theshadowStrength
record component.private final Display.GenericInterpolator
<Transformation> The field for thetransformation
record component. -
Constructor Summary
ConstructorDescriptionRenderState
(Display.GenericInterpolator<Transformation> transformation, Display.BillboardConstraints billboardConstraints, int brightnessOverride, Display.FloatInterpolator shadowRadius, Display.FloatInterpolator shadowStrength, int glowColorOverride) Creates an instance of aRenderState
record class. -
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(Display.GenericInterpolator<Transformation> transformation, Display.BillboardConstraints billboardConstraints, int brightnessOverride, Display.FloatInterpolator shadowRadius, Display.FloatInterpolator shadowStrength, int glowColorOverride) Creates an instance of aRenderState
record class.- Parameters:
transformation
- the value for thetransformation
record componentbillboardConstraints
- the value for thebillboardConstraints
record componentbrightnessOverride
- the value for thebrightnessOverride
record componentshadowRadius
- the value for theshadowRadius
record componentshadowStrength
- the value for theshadowStrength
record componentglowColorOverride
- the value for theglowColorOverride
record 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 '=='. -
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
-