File Details
RegenBlock beta 5.4
- B
- Feb 18, 2013
- 89.46 KB
- 671
- CB 1.4.7-R1.0
File Name
RegenBlock.jar
Supported Versions
- CB 1.4.7-R1.0
Updated API a bit. Method to restore a block is available right at the RegenBlock main class level.
rb.regenBlock(location, material, data, player, true) - For BlockBreakEvent simulation rb.regenBlock(location, Material.AIR, (byte) 0, player, false) - For BlockPlaceEvent simulation (can pass anything for block type if needed) public void regenBlock(Location location, Material material, byte data, Player player, Boolean isBreakEvent) location - block's location material - what material block should be set to once restored data - data value for the restored block player - player that broke/placed the block isBreakEvent - test if this is a BlockBreak of BlockPlace event.

