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 double
The field for thedeltaMovementX
record component.private final double
The field for thedeltaMovementY
record component.private final double
The field for thedeltaMovementZ
record component.private final float
The field for theeyeHeight
record component.private final HitboxesRenderState
The field for thehitboxes
record component.private final boolean
The field for themissing
record component.private final double
The field for theserverEntityX
record component.private final double
The field for theserverEntityY
record component.private final double
The field for theserverEntityZ
record 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 aServerHitboxesRenderState
record class. -
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the value of thedeltaMovementX
record component.double
Returns the value of thedeltaMovementY
record component.double
Returns the value of thedeltaMovementZ
record component.final boolean
Indicates whether some other object is "equal to" this one.float
Returns the value of theeyeHeight
record component.final int
hashCode()
Returns a hash code value for this object.hitboxes()
Returns the value of thehitboxes
record component.boolean
missing()
Returns the value of themissing
record component.double
Returns the value of theserverEntityX
record component.double
Returns the value of theserverEntityY
record component.double
Returns the value of theserverEntityZ
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
missing
private final boolean missingThe field for themissing
record component. -
serverEntityX
private final double serverEntityXThe field for theserverEntityX
record component. -
serverEntityY
private final double serverEntityYThe field for theserverEntityY
record component. -
serverEntityZ
private final double serverEntityZThe field for theserverEntityZ
record component. -
deltaMovementX
private final double deltaMovementXThe field for thedeltaMovementX
record component. -
deltaMovementY
private final double deltaMovementYThe field for thedeltaMovementY
record component. -
deltaMovementZ
private final double deltaMovementZThe field for thedeltaMovementZ
record component. -
eyeHeight
private final float eyeHeightThe field for theeyeHeight
record component. -
hitboxes
The field for thehitboxes
record 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 aServerHitboxesRenderState
record class.- Parameters:
missing
- the value for themissing
record componentserverEntityX
- the value for theserverEntityX
record componentserverEntityY
- the value for theserverEntityY
record componentserverEntityZ
- the value for theserverEntityZ
record componentdeltaMovementX
- the value for thedeltaMovementX
record componentdeltaMovementY
- the value for thedeltaMovementY
record componentdeltaMovementZ
- the value for thedeltaMovementZ
record componenteyeHeight
- the value for theeyeHeight
record componenthitboxes
- the value for thehitboxes
record 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 themissing
record component.- Returns:
- the value of the
missing
record component
-
serverEntityX
public double serverEntityX()Returns the value of theserverEntityX
record component.- Returns:
- the value of the
serverEntityX
record component
-
serverEntityY
public double serverEntityY()Returns the value of theserverEntityY
record component.- Returns:
- the value of the
serverEntityY
record component
-
serverEntityZ
public double serverEntityZ()Returns the value of theserverEntityZ
record component.- Returns:
- the value of the
serverEntityZ
record component
-
deltaMovementX
public double deltaMovementX()Returns the value of thedeltaMovementX
record component.- Returns:
- the value of the
deltaMovementX
record component
-
deltaMovementY
public double deltaMovementY()Returns the value of thedeltaMovementY
record component.- Returns:
- the value of the
deltaMovementY
record component
-
deltaMovementZ
public double deltaMovementZ()Returns the value of thedeltaMovementZ
record component.- Returns:
- the value of the
deltaMovementZ
record component
-
eyeHeight
public float eyeHeight()Returns the value of theeyeHeight
record component.- Returns:
- the value of the
eyeHeight
record component
-
hitboxes
Returns the value of thehitboxes
record component.- Returns:
- the value of the
hitboxes
record component
-