Interface Hitbox.Builder

Enclosing interface:
Hitbox

@Experimental public static interface Hitbox.Builder
The builder for the hitbox
Since:
2.11.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Builds this hitbox, defaulting to Vector3f.ZERO if any one vector was not provided.
    max(org.cloudburstmc.math.vector.Vector3f max)
    Sets the max corner of the hitbox
    min(org.cloudburstmc.math.vector.Vector3f min)
    Sets the min corner of the hitbox
    pivot(org.cloudburstmc.math.vector.Vector3f pivot)
    Sets the pivot of the hitbox
  • Method Details

    • min

      @Experimental Hitbox.Builder min(org.cloudburstmc.math.vector.Vector3f min)
      Sets the min corner of the hitbox
      Parameters:
      min - the vector of the corner
      Returns:
      this builder
      Since:
      2.11.0
    • max

      @Experimental Hitbox.Builder max(org.cloudburstmc.math.vector.Vector3f max)
      Sets the max corner of the hitbox
      Parameters:
      max - the vector of the corner
      Returns:
      this builder
      Since:
      2.11.0
    • pivot

      @Experimental Hitbox.Builder pivot(org.cloudburstmc.math.vector.Vector3f pivot)
      Sets the pivot of the hitbox
      Parameters:
      pivot - the pivot vector
      Returns:
      this builder
      Since:
      2.11.0
    • build

      @Experimental Hitbox build()
      Builds this hitbox, defaulting to Vector3f.ZERO if any one vector was not provided.
      Returns:
      a new hitbox
      Since:
      2.11.0