Interface BlockRotProcessor

All Superinterfaces:
StructureProcessor, Wrapper

@NullMarked @AsOf("3.4.0") public interface BlockRotProcessor extends StructureProcessor
Drops template blocks at random, leaving the structure worn. Only the rottable blocks are affected when they are given.
Since:
3.4.0
See Also:
  • Method Details

    • rottableBlocks

      @AsOf("3.4.0") Optional<TagSet<Material>> rottableBlocks()
      The blocks that may be dropped, every block when absent.
      Returns:
      the blocks that may be dropped, every block when absent
      Since:
      3.4.0
    • integrity

      @AsOf("3.4.0") float integrity()
      The chance, from 0 to 1, that a block is kept.
      Returns:
      the chance, from 0 to 1, that a block is kept
      Since:
      3.4.0
    • of

      @AsOf("3.4.0") static BlockRotProcessor of(@Nullable TagSet<Material> rottableBlocks, float integrity)
      Creates a new processor.
      Parameters:
      rottableBlocks - the blocks that may be dropped, every block when absent
      integrity - the chance, from 0 to 1, that a block is kept
      Returns:
      a new processor
      Since:
      3.4.0
    • of

      @AsOf("3.4.0") static BlockRotProcessor of(float integrity)
      Creates a new processor that may drop any block.
      Parameters:
      integrity - the chance, from 0 to 1, that a block is kept
      Returns:
      a new processor
      Since:
      3.4.0