Record Class EntityRenderState.ShadowPiece
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.entity.state.EntityRenderState.ShadowPiece
- Enclosing class:
EntityRenderState
public static record EntityRenderState.ShadowPiece(float relativeX, float relativeY, float relativeZ, VoxelShape shapeBelow, float alpha)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final floatThe field for thealpharecord component.private final floatThe field for therelativeXrecord component.private final floatThe field for therelativeYrecord component.private final floatThe field for therelativeZrecord component.private final VoxelShapeThe field for theshapeBelowrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionShadowPiece(float relativeX, float relativeY, float relativeZ, VoxelShape shapeBelow, float alpha) Creates an instance of aShadowPiecerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatalpha()Returns the value of thealpharecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatReturns the value of therelativeXrecord component.floatReturns the value of therelativeYrecord component.floatReturns the value of therelativeZrecord component.Returns the value of theshapeBelowrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
relativeX
private final float relativeXThe field for therelativeXrecord component. -
relativeY
private final float relativeYThe field for therelativeYrecord component. -
relativeZ
private final float relativeZThe field for therelativeZrecord component. -
shapeBelow
The field for theshapeBelowrecord component. -
alpha
private final float alphaThe field for thealpharecord component.
-
-
Constructor Details
-
ShadowPiece
public ShadowPiece(float relativeX, float relativeY, float relativeZ, VoxelShape shapeBelow, float alpha) Creates an instance of aShadowPiecerecord class.- Parameters:
relativeX- the value for therelativeXrecord componentrelativeY- the value for therelativeYrecord componentrelativeZ- the value for therelativeZrecord componentshapeBelow- the value for theshapeBelowrecord componentalpha- the value for thealpharecord 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 '=='. -
relativeX
public float relativeX()Returns the value of therelativeXrecord component.- Returns:
- the value of the
relativeXrecord component
-
relativeY
public float relativeY()Returns the value of therelativeYrecord component.- Returns:
- the value of the
relativeYrecord component
-
relativeZ
public float relativeZ()Returns the value of therelativeZrecord component.- Returns:
- the value of the
relativeZrecord component
-
shapeBelow
Returns the value of theshapeBelowrecord component.- Returns:
- the value of the
shapeBelowrecord component
-
alpha
public float alpha()Returns the value of thealpharecord component.- Returns:
- the value of the
alpharecord component
-