TemporaryBlockManager
Manages temporary block placements that automatically revert after a set duration. Blocks placed through this manager are tracked to prevent item drops on break and are restored to their original state when the timer expires.
Types
Functions
Link copied to clipboard
Places a temporary block that reverts after the given number of ticks.
public static void addTemporaryBlock(Block block, int ticks, Material replacementMaterial, boolean requireAir)
Places a temporary block, optionally only if the target block is air.
Link copied to clipboard
Registers the block break and world unload listeners.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public static TemporaryBlockManager.OwnedBlock replaceOwned(Block block, BlockData replacement, Plugin owner)