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
FieldsModifier and TypeFieldDescriptionprivate final Display.BillboardConstraintsThe field for thebillboardConstraintsrecord component.private final intThe field for thebrightnessOverriderecord component.private final intThe field for theglowColorOverriderecord component.private final Display.FloatInterpolatorThe field for theshadowRadiusrecord component.private final Display.FloatInterpolatorThe field for theshadowStrengthrecord component.private final Display.GenericInterpolator<Transformation> The field for thetransformationrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionRenderState(Display.GenericInterpolator<Transformation> transformation, Display.BillboardConstraints billboardConstraints, int brightnessOverride, Display.FloatInterpolator shadowRadius, Display.FloatInterpolator shadowStrength, int glowColorOverride) Creates an instance of aRenderStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebillboardConstraintsrecord component.intReturns the value of thebrightnessOverriderecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of theglowColorOverriderecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theshadowRadiusrecord component.Returns the value of theshadowStrengthrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransformationrecord component.
-
Field Details
-
transformation
The field for thetransformationrecord component. -
billboardConstraints
The field for thebillboardConstraintsrecord component. -
brightnessOverride
private final int brightnessOverrideThe field for thebrightnessOverriderecord component. -
shadowRadius
The field for theshadowRadiusrecord component. -
shadowStrength
The field for theshadowStrengthrecord component. -
glowColorOverride
private final int glowColorOverrideThe field for theglowColorOverriderecord 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 aRenderStaterecord class.- Parameters:
transformation- the value for thetransformationrecord componentbillboardConstraints- the value for thebillboardConstraintsrecord componentbrightnessOverride- the value for thebrightnessOverriderecord componentshadowRadius- the value for theshadowRadiusrecord componentshadowStrength- the value for theshadowStrengthrecord componentglowColorOverride- the value for theglowColorOverriderecord 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 thetransformationrecord component.- Returns:
- the value of the
transformationrecord component
-
billboardConstraints
Returns the value of thebillboardConstraintsrecord component.- Returns:
- the value of the
billboardConstraintsrecord component
-
brightnessOverride
public int brightnessOverride()Returns the value of thebrightnessOverriderecord component.- Returns:
- the value of the
brightnessOverriderecord component
-
shadowRadius
Returns the value of theshadowRadiusrecord component.- Returns:
- the value of the
shadowRadiusrecord component
-
shadowStrength
Returns the value of theshadowStrengthrecord component.- Returns:
- the value of the
shadowStrengthrecord component
-
glowColorOverride
public int glowColorOverride()Returns the value of theglowColorOverriderecord component.- Returns:
- the value of the
glowColorOverriderecord component
-