Interface Hitbox.Builder

Enclosing interface:
Hitbox

public static interface Hitbox.Builder
The builder for the hitbox
  • Method Summary

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

    • min

      Hitbox.Builder min(@NonNull 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(@NonNull 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(@NonNull org.cloudburstmc.math.vector.Vector3f pivot)
      Sets the pivot of the hitbox
      Parameters:
      pivot - the pivot vector
      Returns:
      this builder
    • build

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