Record Class HitboxesRenderState
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.entity.state.HitboxesRenderState
public record HitboxesRenderState(double viewX, double viewY, double viewZ, ImmutableList<HitboxRenderState> hitboxes)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ImmutableList<HitboxRenderState> The field for thehitboxesrecord component.private final doubleThe field for theviewXrecord component.private final doubleThe field for theviewYrecord component.private final doubleThe field for theviewZrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionHitboxesRenderState(double viewX, double viewY, double viewZ, ImmutableList<HitboxRenderState> hitboxes) Creates an instance of aHitboxesRenderStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.hitboxes()Returns the value of thehitboxesrecord component.final StringtoString()Returns a string representation of this record class.doubleviewX()Returns the value of theviewXrecord component.doubleviewY()Returns the value of theviewYrecord component.doubleviewZ()Returns the value of theviewZrecord component.
-
Field Details
-
viewX
private final double viewXThe field for theviewXrecord component. -
viewY
private final double viewYThe field for theviewYrecord component. -
viewZ
private final double viewZThe field for theviewZrecord component. -
hitboxes
The field for thehitboxesrecord component.
-
-
Constructor Details
-
HitboxesRenderState
public HitboxesRenderState(double viewX, double viewY, double viewZ, ImmutableList<HitboxRenderState> hitboxes) Creates an instance of aHitboxesRenderStaterecord class.- Parameters:
viewX- the value for theviewXrecord componentviewY- the value for theviewYrecord componentviewZ- the value for theviewZrecord 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 '=='. -
viewX
public double viewX()Returns the value of theviewXrecord component.- Returns:
- the value of the
viewXrecord component
-
viewY
public double viewY()Returns the value of theviewYrecord component.- Returns:
- the value of the
viewYrecord component
-
viewZ
public double viewZ()Returns the value of theviewZrecord component.- Returns:
- the value of the
viewZrecord component
-
hitboxes
Returns the value of thehitboxesrecord component.- Returns:
- the value of the
hitboxesrecord component
-