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 SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionRenderState(Display.GenericInterpolator<Transformation> transformation, Display.BillboardConstraints billboardConstraints, int brightnessOverride, Display.FloatInterpolator shadowRadius, Display.FloatInterpolator shadowStrength, int glowColorOverride) Creates an instance of aRenderStaterecord class.
- 
Method SummaryModifier 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- 
transformationThe field for thetransformationrecord component.
- 
billboardConstraintsThe field for thebillboardConstraintsrecord component.
- 
brightnessOverrideprivate final int brightnessOverrideThe field for thebrightnessOverriderecord component.
- 
shadowRadiusThe field for theshadowRadiusrecord component.
- 
shadowStrengthThe field for theshadowStrengthrecord component.
- 
glowColorOverrideprivate final int glowColorOverrideThe field for theglowColorOverriderecord component.
 
- 
- 
Constructor Details- 
RenderStatepublic 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 the- transformationrecord component
- billboardConstraints- the value for the- billboardConstraintsrecord component
- brightnessOverride- the value for the- brightnessOverriderecord component
- shadowRadius- the value for the- shadowRadiusrecord component
- shadowStrength- the value for the- shadowStrengthrecord component
- glowColorOverride- the value for the- glowColorOverriderecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
transformationReturns the value of thetransformationrecord component.- Returns:
- the value of the transformationrecord component
 
- 
billboardConstraintsReturns the value of thebillboardConstraintsrecord component.- Returns:
- the value of the billboardConstraintsrecord component
 
- 
brightnessOverridepublic int brightnessOverride()Returns the value of thebrightnessOverriderecord component.- Returns:
- the value of the brightnessOverriderecord component
 
- 
shadowRadiusReturns the value of theshadowRadiusrecord component.- Returns:
- the value of the shadowRadiusrecord component
 
- 
shadowStrengthReturns the value of theshadowStrengthrecord component.- Returns:
- the value of the shadowStrengthrecord component
 
- 
glowColorOverridepublic int glowColorOverride()Returns the value of theglowColorOverriderecord component.- Returns:
- the value of the glowColorOverriderecord component
 
 
-