Record Class EntityHitbox

java.lang.Object
java.lang.Record
net.minecraft.client.render.entity.state.EntityHitbox
Record Components:
x0 -
y0 -
z0 -
x1 -
y1 -
z1 -
offsetX -
offsetY -
offsetZ -
red -
green -
blue -

@Environment(CLIENT) public record EntityHitbox(double x0, double y0, double z0, double x1, double y1, double z1, float offsetX, float offsetY, float offsetZ, float red, float green, float blue) extends Record
Mappings:
Namespace Name
named net/minecraft/client/render/entity/state/EntityHitbox
intermediary net/minecraft/class_10932
official hlb
named x0
intermediary comp_3849
official a
named y0
intermediary comp_3850
official b
named z0
intermediary comp_3851
official c
named x1
intermediary comp_3852
official d
named y1
intermediary comp_3853
official e
named z1
intermediary comp_3854
official f
named offsetX
intermediary comp_3855
official g
named offsetY
intermediary comp_3856
official h
named offsetZ
intermediary comp_3857
official i
named red
intermediary comp_3858
official j
named green
intermediary comp_3859
official k
named blue
intermediary comp_3860
official l
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final float
    The field for the blue record component.
    private final float
    The field for the green record component.
    private final float
    The field for the offsetX record component.
    private final float
    The field for the offsetY record component.
    private final float
    The field for the offsetZ record component.
    private final float
    The field for the red record component.
    private final double
    The field for the x0 record component.
    private final double
    The field for the x1 record component.
    private final double
    The field for the y0 record component.
    private final double
    The field for the y1 record component.
    private final double
    The field for the z0 record component.
    private final double
    The field for the z1 record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    EntityHitbox(double x0, double y0, double z0, double x1, double y1, double z1, float red, float green, float blue)
     
    EntityHitbox(double double2, double double3, double double4, double double5, double double6, double double7, float float2, float float3, float float4, float float5, float float6, float float7)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    Returns the value of the blue record component.
    final boolean
    equals(Object object)
    Indicates whether some other object is "equal to" this one.
    float
    Returns the value of the green record component.
    final int
    Returns a hash code value for this object.
    float
    Returns the value of the offsetX record component.
    float
    Returns the value of the offsetY record component.
    float
    Returns the value of the offsetZ record component.
    float
    red()
    Returns the value of the red record component.
    final String
    Returns a string representation of this record class.
    double
    x0()
    Returns the value of the x0 record component.
    double
    x1()
    Returns the value of the x1 record component.
    double
    y0()
    Returns the value of the y0 record component.
    double
    y1()
    Returns the value of the y1 record component.
    double
    z0()
    Returns the value of the z0 record component.
    double
    z1()
    Returns the value of the z1 record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • x0

      private final double x0
      The field for the x0 record component.
    • y0

      private final double y0
      The field for the y0 record component.
    • z0

      private final double z0
      The field for the z0 record component.
    • x1

      private final double x1
      The field for the x1 record component.
    • y1

      private final double y1
      The field for the y1 record component.
    • z1

      private final double z1
      The field for the z1 record component.
    • offsetX

      private final float offsetX
      The field for the offsetX record component.
    • offsetY

      private final float offsetY
      The field for the offsetY record component.
    • offsetZ

      private final float offsetZ
      The field for the offsetZ record component.
    • red

      private final float red
      The field for the red record component.
    • green

      private final float green
      The field for the green record component.
    • blue

      private final float blue
      The field for the blue record component.
  • Constructor Details

    • EntityHitbox

      public EntityHitbox(double x0, double y0, double z0, double x1, double y1, double z1, float red, float green, float blue)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/render/entity/state/EntityHitbox;<init>(DDDDDDFFF)V
      intermediary <init> Lnet/minecraft/class_10932;<init>(DDDDDDFFF)V
      official <init> Lhlb;<init>(DDDDDDFFF)V
    • EntityHitbox

      public EntityHitbox(double double2, double double3, double double4, double double5, double double6, double double7, float float2, float float3, float float4, float float5, float float6, float float7)
  • Method Details

    • toString

      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

      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

      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. All components in this record class 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.
    • x0

      public double x0()
      Returns the value of the x0 record component.
      Returns:
      the value of the x0 record component
    • y0

      public double y0()
      Returns the value of the y0 record component.
      Returns:
      the value of the y0 record component
    • z0

      public double z0()
      Returns the value of the z0 record component.
      Returns:
      the value of the z0 record component
    • x1

      public double x1()
      Returns the value of the x1 record component.
      Returns:
      the value of the x1 record component
    • y1

      public double y1()
      Returns the value of the y1 record component.
      Returns:
      the value of the y1 record component
    • z1

      public double z1()
      Returns the value of the z1 record component.
      Returns:
      the value of the z1 record component
    • offsetX

      public float offsetX()
      Returns the value of the offsetX record component.
      Returns:
      the value of the offsetX record component
    • offsetY

      public float offsetY()
      Returns the value of the offsetY record component.
      Returns:
      the value of the offsetY record component
    • offsetZ

      public float offsetZ()
      Returns the value of the offsetZ record component.
      Returns:
      the value of the offsetZ record component
    • red

      public float red()
      Returns the value of the red record component.
      Returns:
      the value of the red record component
    • green

      public float green()
      Returns the value of the green record component.
      Returns:
      the value of the green record component
    • blue

      public float blue()
      Returns the value of the blue record component.
      Returns:
      the value of the blue record component