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, com.google.common.collect.ImmutableList<HitboxRenderState> hitboxes)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.google.common.collect.ImmutableList
<HitboxRenderState> The field for thehitboxes
record component.private final double
The field for theviewX
record component.private final double
The field for theviewY
record component.private final double
The field for theviewZ
record component. -
Constructor Summary
ConstructorsConstructorDescriptionHitboxesRenderState
(double viewX, double viewY, double viewZ, com.google.common.collect.ImmutableList<HitboxRenderState> hitboxes) Creates an instance of aHitboxesRenderState
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.com.google.common.collect.ImmutableList
<HitboxRenderState> hitboxes()
Returns the value of thehitboxes
record component.final String
toString()
Returns a string representation of this record class.double
viewX()
Returns the value of theviewX
record component.double
viewY()
Returns the value of theviewY
record component.double
viewZ()
Returns the value of theviewZ
record component.
-
Field Details
-
viewX
private final double viewXThe field for theviewX
record component. -
viewY
private final double viewYThe field for theviewY
record component. -
viewZ
private final double viewZThe field for theviewZ
record component. -
hitboxes
The field for thehitboxes
record component.
-
-
Constructor Details
-
HitboxesRenderState
public HitboxesRenderState(double viewX, double viewY, double viewZ, com.google.common.collect.ImmutableList<HitboxRenderState> hitboxes) Creates an instance of aHitboxesRenderState
record class.- Parameters:
viewX
- the value for theviewX
record componentviewY
- the value for theviewY
record componentviewZ
- the value for theviewZ
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 '=='. -
viewX
public double viewX()Returns the value of theviewX
record component.- Returns:
- the value of the
viewX
record component
-
viewY
public double viewY()Returns the value of theviewY
record component.- Returns:
- the value of the
viewY
record component
-
viewZ
public double viewZ()Returns the value of theviewZ
record component.- Returns:
- the value of the
viewZ
record component
-
hitboxes
Returns the value of thehitboxes
record component.- Returns:
- the value of the
hitboxes
record component
-