Record Class ServerHitboxesRenderState

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

public record ServerHitboxesRenderState(boolean missing, double serverEntityX, double serverEntityY, double serverEntityZ, double deltaMovementX, double deltaMovementY, double deltaMovementZ, float eyeHeight, @Nullable HitboxesRenderState hitboxes) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final double
    The field for the deltaMovementX record component.
    private final double
    The field for the deltaMovementY record component.
    private final double
    The field for the deltaMovementZ record component.
    private final float
    The field for the eyeHeight record component.
    private final HitboxesRenderState
    The field for the hitboxes record component.
    private final boolean
    The field for the missing record component.
    private final double
    The field for the serverEntityX record component.
    private final double
    The field for the serverEntityY record component.
    private final double
    The field for the serverEntityZ record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ServerHitboxesRenderState(boolean p_412106_)
     
    ServerHitboxesRenderState(boolean missing, double serverEntityX, double serverEntityY, double serverEntityZ, double deltaMovementX, double deltaMovementY, double deltaMovementZ, float eyeHeight, HitboxesRenderState hitboxes)
    Creates an instance of a ServerHitboxesRenderState record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Returns the value of the deltaMovementX record component.
    double
    Returns the value of the deltaMovementY record component.
    double
    Returns the value of the deltaMovementZ record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    float
    Returns the value of the eyeHeight record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the hitboxes record component.
    boolean
    Returns the value of the missing record component.
    double
    Returns the value of the serverEntityX record component.
    double
    Returns the value of the serverEntityY record component.
    double
    Returns the value of the serverEntityZ record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

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

    • missing

      private final boolean missing
      The field for the missing record component.
    • serverEntityX

      private final double serverEntityX
      The field for the serverEntityX record component.
    • serverEntityY

      private final double serverEntityY
      The field for the serverEntityY record component.
    • serverEntityZ

      private final double serverEntityZ
      The field for the serverEntityZ record component.
    • deltaMovementX

      private final double deltaMovementX
      The field for the deltaMovementX record component.
    • deltaMovementY

      private final double deltaMovementY
      The field for the deltaMovementY record component.
    • deltaMovementZ

      private final double deltaMovementZ
      The field for the deltaMovementZ record component.
    • eyeHeight

      private final float eyeHeight
      The field for the eyeHeight record component.
    • hitboxes

      @Nullable private final HitboxesRenderState hitboxes
      The field for the hitboxes record component.
  • Constructor Details

    • ServerHitboxesRenderState

      public ServerHitboxesRenderState(boolean p_412106_)
    • ServerHitboxesRenderState

      public ServerHitboxesRenderState(boolean missing, double serverEntityX, double serverEntityY, double serverEntityZ, double deltaMovementX, double deltaMovementY, double deltaMovementZ, float eyeHeight, @Nullable HitboxesRenderState hitboxes)
      Creates an instance of a ServerHitboxesRenderState record class.
      Parameters:
      missing - the value for the missing record component
      serverEntityX - the value for the serverEntityX record component
      serverEntityY - the value for the serverEntityY record component
      serverEntityZ - the value for the serverEntityZ record component
      deltaMovementX - the value for the deltaMovementX record component
      deltaMovementY - the value for the deltaMovementY record component
      deltaMovementZ - the value for the deltaMovementZ record component
      eyeHeight - the value for the eyeHeight record component
      hitboxes - the value for the hitboxes 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. Reference components are compared with Objects::equals(Object,Object); primitive components 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.
    • missing

      public boolean missing()
      Returns the value of the missing record component.
      Returns:
      the value of the missing record component
    • serverEntityX

      public double serverEntityX()
      Returns the value of the serverEntityX record component.
      Returns:
      the value of the serverEntityX record component
    • serverEntityY

      public double serverEntityY()
      Returns the value of the serverEntityY record component.
      Returns:
      the value of the serverEntityY record component
    • serverEntityZ

      public double serverEntityZ()
      Returns the value of the serverEntityZ record component.
      Returns:
      the value of the serverEntityZ record component
    • deltaMovementX

      public double deltaMovementX()
      Returns the value of the deltaMovementX record component.
      Returns:
      the value of the deltaMovementX record component
    • deltaMovementY

      public double deltaMovementY()
      Returns the value of the deltaMovementY record component.
      Returns:
      the value of the deltaMovementY record component
    • deltaMovementZ

      public double deltaMovementZ()
      Returns the value of the deltaMovementZ record component.
      Returns:
      the value of the deltaMovementZ record component
    • eyeHeight

      public float eyeHeight()
      Returns the value of the eyeHeight record component.
      Returns:
      the value of the eyeHeight record component
    • hitboxes

      @Nullable public HitboxesRenderState hitboxes()
      Returns the value of the hitboxes record component.
      Returns:
      the value of the hitboxes record component