Package redempt.redlib.blockdata.custom
Class CustomBlock
java.lang.Object
redempt.redlib.blockdata.custom.CustomBlock
Represents an instance of a CustomBlockType. Effectively a wrapper for DataBlock.
-
Constructor Details
-
CustomBlock
-
-
Method Details
-
getDataBlock
- Returns:
- The DataBlock this CustomBlock wraps
-
getBlock
public org.bukkit.block.Block getBlock()- Returns:
- The Block this CustomBlock is at
-
getType
- Returns:
- The CustomBlockType which created this CustomBlock
-
click
public void click(org.bukkit.event.player.PlayerInteractEvent e) Called when this CustomBlock is clicked. Does nothing by default, override to define custom behavior.- Parameters:
e
- The event
-