Interface CountPlacement

All Superinterfaces:
PlacementModifier, Wrapper

@NullMarked @AsOf("3.0.0") public interface CountPlacement extends PlacementModifier
Returns multiple copies of the current block position. A single count is limited to 4096, but multiple count modifiers can be stacked to multiply that limit.
Since:
3.0.0
See Also:
  • Method Details

    • count

      @AsOf("3.0.0") IntProvider count()
      The number of placements to attempt, between 0 and 4096 (inclusive).
      Returns:
      the count provider
      Since:
      3.0.0
    • of

      @AsOf("3.0.0") static CountPlacement of(IntProvider count)
      Creates a new count placement.
      Parameters:
      count - the number of placements to attempt, between 0 and 4096 (inclusive)
      Returns:
      a new count placement
      Since:
      3.0.0