Interface Hitbox.Builder

Enclosing interface:
Hitbox

public static interface Hitbox.Builder
The builder for the hitbox
  • 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

      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
    • max

      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
    • pivot

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

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