Interface CappedProcessor
- All Superinterfaces:
StructureProcessor, Wrapper
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 Summary
Modifier and TypeMethodDescriptiondelegate()The processor that is applied.limit()How many blocks the processor is applied to.static CappedProcessorof(StructureProcessor delegate, IntProvider limit) Creates a new processor.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
delegate
The processor that is applied.- Returns:
- the processor that is applied
- Since:
- 3.4.0
-
limit
How many blocks the processor is applied to.- Returns:
- how many blocks the processor is applied to
- Since:
- 3.4.0
-
of
Creates a new processor.- Parameters:
delegate- the processor that is appliedlimit- how many blocks the processor is applied to- Returns:
- a new processor
- Since:
- 3.4.0
-