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$RenderStateintermediary net/minecraft/class_8113$class_8229official bsq$knamed transformationintermediary comp_1328official anamed billboardConstraintsintermediary comp_1329official bnamed brightnessOverrideintermediary comp_1330official cnamed shadowRadiusintermediary comp_1331official dnamed shadowStrengthintermediary comp_1332official enamed glowColorOverrideintermediary comp_1333official f
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DisplayEntity.BillboardModeThe field for thebillboardConstraintsrecord component.private final intThe field for thebrightnessOverriderecord component.private final intThe field for theglowColorOverriderecord component.private final DisplayEntity.FloatLerperThe field for theshadowRadiusrecord component.private final DisplayEntity.FloatLerperThe field for theshadowStrengthrecord component.private final DisplayEntity.AbstractInterpolator<AffineTransformation> The field for thetransformationrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionRenderState(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 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(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 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
-