Record Class EntityRenderState.ShadowPiece
java.lang.Object
java.lang.Record
net.minecraft.client.render.entity.state.EntityRenderState.ShadowPiece
- Record Components:
relativeX-relativeY-relativeZ-shapeBelow-alpha-
- Enclosing class:
EntityRenderState
@Environment(CLIENT)
public static record EntityRenderState.ShadowPiece(float relativeX, float relativeY, float relativeZ, VoxelShape shapeBelow, float alpha)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/entity/state/EntityRenderState$ShadowPieceintermediary net/minecraft/class_10017$class_11680official huk$bnamed relativeXintermediary comp_4546official anamed relativeYintermediary comp_4547official bnamed relativeZintermediary comp_4548official cnamed shapeBelowintermediary comp_4549official dnamed alphaintermediary comp_4550official e
-
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 float2, float float3, float float4, VoxelShape voxelShape, float float5) -
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
-
-
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
-