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/EntityHitboxAndViewintermediary net/minecraft/class_10933official hernamed viewXintermediary comp_3861official anamed viewYintermediary comp_3862official bnamed viewZintermediary comp_3863official cnamed hitboxesintermediary comp_3864official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ImmutableList<EntityHitbox> 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
ConstructorsConstructorDescriptionEntityHitboxAndView(double double2, double double3, double double4, ImmutableList<EntityHitbox> immutableList) -
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
-
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 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
-