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 Details Link icon

    • viewX Link icon

      private final double viewX
      The field for the viewX record component.
    • viewY Link icon

      private final double viewY
      The field for the viewY record component.
    • viewZ Link icon

      private final double viewZ
      The field for the viewZ record component.
    • hitboxes Link icon

      private final ImmutableList<EntityHitbox> hitboxes
      The field for the hitboxes record component.
  • Constructor Details Link icon

    • EntityHitboxAndView Link icon

      public EntityHitboxAndView(double double2, double double3, double double4, ImmutableList<EntityHitbox> immutableList)
  • Method Details Link icon

    • toString Link icon

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode Link icon

      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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals Link icon

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • viewX Link icon

      public double viewX()
      Returns the value of the viewX record component.
      Returns:
      the value of the viewX record component
    • viewY Link icon

      public double viewY()
      Returns the value of the viewY record component.
      Returns:
      the value of the viewY record component
    • viewZ Link icon

      public double viewZ()
      Returns the value of the viewZ record component.
      Returns:
      the value of the viewZ record component
    • hitboxes Link icon

      public ImmutableList<EntityHitbox> hitboxes()
      Returns the value of the hitboxes record component.
      Returns:
      the value of the hitboxes record component