Interface Hitbox


public interface Hitbox
Represents an entity hitbox.
Since:
2.11.0
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    The builder for the hitbox
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Hitbox
    Represents an empty / disabled hitbox.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates a new builder for a hitbox
    org.cloudburstmc.math.vector.Vector3f
    max()
    The max "corner" of the hitbox
    org.cloudburstmc.math.vector.Vector3f
    min()
    The min "corner" of the hitbox
    org.cloudburstmc.math.vector.Vector3f
    The pivot of the hitbox
  • Field Details

    • EMPTY

      static final Hitbox EMPTY
      Represents an empty / disabled hitbox.
      Since:
      2.11.0
  • Method Details

    • min

      org.cloudburstmc.math.vector.Vector3f min()
      The min "corner" of the hitbox
      Returns:
      the vector of the corner
      Since:
      2.11.0
    • max

      org.cloudburstmc.math.vector.Vector3f max()
      The max "corner" of the hitbox
      Returns:
      the vector of the corner
      Since:
      2.11.0
    • pivot

      org.cloudburstmc.math.vector.Vector3f pivot()
      The pivot of the hitbox
      Returns:
      the pivot
      Since:
      2.11.0
    • builder

      static Hitbox.Builder builder()
      Creates a new builder for a hitbox
      Returns:
      a new builder
      Since:
      2.11.0