Record Class EntityHitboxAndView
java.lang.Object
java.lang.Record
net.minecraft.client.render.entity.state.EntityHitboxAndView
- Record Components:
viewX
-viewY
-viewZ
-hitboxes
-
@Environment(CLIENT)
public record EntityHitboxAndView(double viewX, double viewY, double viewZ, ImmutableList<EntityHitbox> hitboxes)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/entity/state/EntityHitboxAndView
intermediary net/minecraft/class_10933
official her
named viewX
intermediary comp_3861
official a
named viewY
intermediary comp_3862
official b
named viewZ
intermediary comp_3863
official c
named hitboxes
intermediary comp_3864
official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ImmutableList
<EntityHitbox> 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
ConstructorsConstructorDescriptionEntityHitboxAndView
(double double2, double double3, double double4, ImmutableList<EntityHitbox> immutableList) -
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.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
-
Constructor Details
-
EntityHitboxAndView
public EntityHitboxAndView(double double2, double double3, double double4, ImmutableList<EntityHitbox> immutableList)
-
-
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
-