Record Class HitboxRenderState

java.lang.Object
java.lang.Record
net.minecraft.client.renderer.entity.state.HitboxRenderState

public record HitboxRenderState(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
  • 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
    HitboxRenderState(double p_412445_, double p_412417_, double p_412502_, double p_412113_, double p_412754_, double p_412099_, float p_412628_, float p_412369_, float p_412175_)
     
    HitboxRenderState(double x0, double y0, double z0, double x1, double y1, double z1, float offsetX, float offsetY, float offsetZ, float red, float green, float blue)
    Creates an instance of a HitboxRenderState record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    Returns the value of the blue record component.
    final boolean
    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

    • HitboxRenderState

      public HitboxRenderState(double p_412445_, double p_412417_, double p_412502_, double p_412113_, double p_412754_, double p_412099_, float p_412628_, float p_412369_, float p_412175_)
    • HitboxRenderState

      public HitboxRenderState(double x0, double y0, double z0, double x1, double y1, double z1, float offsetX, float offsetY, float offsetZ, float red, float green, float blue)
      Creates an instance of a HitboxRenderState record class.
      Parameters:
      x0 - the value for the x0 record component
      y0 - the value for the y0 record component
      z0 - the value for the z0 record component
      x1 - the value for the x1 record component
      y1 - the value for the y1 record component
      z1 - the value for the z1 record component
      offsetX - the value for the offsetX record component
      offsetY - the value for the offsetY record component
      offsetZ - the value for the offsetZ record component
      red - the value for the red record component
      green - the value for the green record component
      blue - the value for the blue record component
  • 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 o)
      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:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o 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