Interface CappedProcessor

All Superinterfaces:
StructureProcessor, Wrapper

@NullMarked @AsOf("3.4.0") public interface CappedProcessor extends StructureProcessor
Applies another processor to at most a limited number of blocks, chosen at random. Trail ruins use it to bury a handful of suspicious gravel blocks.
Since:
3.4.0
See Also:
  • Method Details

    • delegate

      @AsOf("3.4.0") StructureProcessor delegate()
      The processor that is applied.
      Returns:
      the processor that is applied
      Since:
      3.4.0
    • limit

      @AsOf("3.4.0") IntProvider limit()
      How many blocks the processor is applied to.
      Returns:
      how many blocks the processor is applied to
      Since:
      3.4.0
    • of

      @AsOf("3.4.0") static CappedProcessor of(StructureProcessor delegate, IntProvider limit)
      Creates a new processor.
      Parameters:
      delegate - the processor that is applied
      limit - how many blocks the processor is applied to
      Returns:
      a new processor
      Since:
      3.4.0