addTemporaryBlock
Places a temporary block that reverts after the given number of ticks.
Parameters
block
the block to replace
ticks
duration in ticks before reverting; if <= 0 the block is placed permanently
replacementMaterial
the material to set
public static void addTemporaryBlock(Block block, int ticks, Material replacementMaterial, boolean requireAir)
Places a temporary block, optionally only if the target block is air.
Parameters
block
the block to replace
ticks
duration in ticks before reverting
replacementMaterial
the material to set
requireAir
if true, only place if the block is currently air