Interface BlockRotProcessor
- All Superinterfaces:
StructureProcessor, Wrapper
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 Summary
Modifier and TypeMethodDescriptionfloatThe chance, from 0 to 1, that a block is kept.static BlockRotProcessorof(float integrity) Creates a new processor that may drop any block.static BlockRotProcessorCreates a new processor.The blocks that may be dropped, every block when absent.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
rottableBlocks
-
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 absentintegrity- the chance, from 0 to 1, that a block is kept- Returns:
- a new processor
- Since:
- 3.4.0
-
of
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
-