Record Class ServerHitboxesRenderState
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.entity.state.ServerHitboxesRenderState
public record ServerHitboxesRenderState(boolean missing, double serverEntityX, double serverEntityY, double serverEntityZ, double deltaMovementX, double deltaMovementY, double deltaMovementZ, float eyeHeight, @Nullable HitboxesRenderState hitboxes)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final doubleThe field for thedeltaMovementXrecord component.private final doubleThe field for thedeltaMovementYrecord component.private final doubleThe field for thedeltaMovementZrecord component.private final floatThe field for theeyeHeightrecord component.private final HitboxesRenderStateThe field for thehitboxesrecord component.private final booleanThe field for themissingrecord component.private final doubleThe field for theserverEntityXrecord component.private final doubleThe field for theserverEntityYrecord component.private final doubleThe field for theserverEntityZrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionServerHitboxesRenderState(boolean p_412106_) ServerHitboxesRenderState(boolean missing, double serverEntityX, double serverEntityY, double serverEntityZ, double deltaMovementX, double deltaMovementY, double deltaMovementZ, float eyeHeight, HitboxesRenderState hitboxes) Creates an instance of aServerHitboxesRenderStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of thedeltaMovementXrecord component.doubleReturns the value of thedeltaMovementYrecord component.doubleReturns the value of thedeltaMovementZrecord component.final booleanIndicates whether some other object is "equal to" this one.floatReturns the value of theeyeHeightrecord component.final inthashCode()Returns a hash code value for this object.hitboxes()Returns the value of thehitboxesrecord component.booleanmissing()Returns the value of themissingrecord component.doubleReturns the value of theserverEntityXrecord component.doubleReturns the value of theserverEntityYrecord component.doubleReturns the value of theserverEntityZrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
missing
private final boolean missingThe field for themissingrecord component. -
serverEntityX
private final double serverEntityXThe field for theserverEntityXrecord component. -
serverEntityY
private final double serverEntityYThe field for theserverEntityYrecord component. -
serverEntityZ
private final double serverEntityZThe field for theserverEntityZrecord component. -
deltaMovementX
private final double deltaMovementXThe field for thedeltaMovementXrecord component. -
deltaMovementY
private final double deltaMovementYThe field for thedeltaMovementYrecord component. -
deltaMovementZ
private final double deltaMovementZThe field for thedeltaMovementZrecord component. -
eyeHeight
private final float eyeHeightThe field for theeyeHeightrecord component. -
hitboxes
The field for thehitboxesrecord component.
-
-
Constructor Details
-
ServerHitboxesRenderState
public ServerHitboxesRenderState(boolean p_412106_) -
ServerHitboxesRenderState
public ServerHitboxesRenderState(boolean missing, double serverEntityX, double serverEntityY, double serverEntityZ, double deltaMovementX, double deltaMovementY, double deltaMovementZ, float eyeHeight, @Nullable HitboxesRenderState hitboxes) Creates an instance of aServerHitboxesRenderStaterecord class.- Parameters:
missing- the value for themissingrecord componentserverEntityX- the value for theserverEntityXrecord componentserverEntityY- the value for theserverEntityYrecord componentserverEntityZ- the value for theserverEntityZrecord componentdeltaMovementX- the value for thedeltaMovementXrecord componentdeltaMovementY- the value for thedeltaMovementYrecord componentdeltaMovementZ- the value for thedeltaMovementZrecord componenteyeHeight- the value for theeyeHeightrecord componenthitboxes- the value for thehitboxesrecord 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 '=='. -
missing
public boolean missing()Returns the value of themissingrecord component.- Returns:
- the value of the
missingrecord component
-
serverEntityX
public double serverEntityX()Returns the value of theserverEntityXrecord component.- Returns:
- the value of the
serverEntityXrecord component
-
serverEntityY
public double serverEntityY()Returns the value of theserverEntityYrecord component.- Returns:
- the value of the
serverEntityYrecord component
-
serverEntityZ
public double serverEntityZ()Returns the value of theserverEntityZrecord component.- Returns:
- the value of the
serverEntityZrecord component
-
deltaMovementX
public double deltaMovementX()Returns the value of thedeltaMovementXrecord component.- Returns:
- the value of the
deltaMovementXrecord component
-
deltaMovementY
public double deltaMovementY()Returns the value of thedeltaMovementYrecord component.- Returns:
- the value of the
deltaMovementYrecord component
-
deltaMovementZ
public double deltaMovementZ()Returns the value of thedeltaMovementZrecord component.- Returns:
- the value of the
deltaMovementZrecord component
-
eyeHeight
public float eyeHeight()Returns the value of theeyeHeightrecord component.- Returns:
- the value of the
eyeHeightrecord component
-
hitboxes
Returns the value of thehitboxesrecord component.- Returns:
- the value of the
hitboxesrecord component
-