Interface JavaAttackRange.Builder

All Superinterfaces:
GenericBuilder<JavaAttackRange>
Enclosing interface:
JavaAttackRange

public static interface JavaAttackRange.Builder extends GenericBuilder<JavaAttackRange>
Builder for the attack range component.
Since:
2.9.3
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates the attack range component.
    hitboxMargin(@org.checkerframework.common.value.qual.IntRange(from=0L, to=1L) float hitboxMargin)
    Sets the margin applied to the target hitbox when attacking.
    maxCreativeReach(@org.checkerframework.common.value.qual.IntRange(from=0L, to=64L) float maxCreativeReach)
    Sets the maximum distance for attacks made in creative mode, in blocks.
    maxReach(@org.checkerframework.common.value.qual.IntRange(from=0L, to=64L) float maxReach)
    Sets the maximum distance for attacks, in blocks.
    minCreativeReach(@org.checkerframework.common.value.qual.IntRange(from=0L, to=64L) float minCreativeReach)
    Sets the minimum distance for attacks made in creative mode, in blocks.
    minReach(@org.checkerframework.common.value.qual.IntRange(from=0L, to=64L) float minReach)
    Sets the minimum distance for attacks, in blocks.
  • Method Details

    • minReach

      JavaAttackRange.Builder minReach(@org.checkerframework.common.value.qual.IntRange(from=0L, to=64L) float minReach)
      Sets the minimum distance for attacks, in blocks.
      Parameters:
      minReach - the minimum distance for attacks, in blocks
      Returns:
      this builder
      Since:
      2.9.3
      See Also:
    • maxReach

      JavaAttackRange.Builder maxReach(@org.checkerframework.common.value.qual.IntRange(from=0L, to=64L) float maxReach)
      Sets the maximum distance for attacks, in blocks.
      Parameters:
      maxReach - the maximum distance for attacks, in blocks
      Returns:
      this builder
      Since:
      2.9.3
      See Also:
    • minCreativeReach

      JavaAttackRange.Builder minCreativeReach(@org.checkerframework.common.value.qual.IntRange(from=0L, to=64L) float minCreativeReach)
      Sets the minimum distance for attacks made in creative mode, in blocks.
      Parameters:
      minCreativeReach - the minimum distance for attacks made in creative mode, in blocks
      Returns:
      this builder
      Since:
      2.9.3
      See Also:
    • maxCreativeReach

      JavaAttackRange.Builder maxCreativeReach(@org.checkerframework.common.value.qual.IntRange(from=0L, to=64L) float maxCreativeReach)
      Sets the maximum distance for attacks made in creative mode, in blocks.
      Parameters:
      maxCreativeReach - the maximum distance for attacks made in creative mode, in blocks
      Returns:
      this builder
      Since:
      2.9.3
      See Also:
    • hitboxMargin

      JavaAttackRange.Builder hitboxMargin(@org.checkerframework.common.value.qual.IntRange(from=0L, to=1L) float hitboxMargin)
      Sets the margin applied to the target hitbox when attacking.
      Parameters:
      hitboxMargin - the margin applied to the target hitbox when attacking
      Returns:
      this builder
      Since:
      2.9.3
      See Also:
    • build

      Creates the attack range component.
      Specified by:
      build in interface GenericBuilder<JavaAttackRange>
      Returns:
      the new component
      Since:
      2.9.3