Class CustomBlock

java.lang.Object
redempt.redlib.blockdata.custom.CustomBlock

public class CustomBlock extends Object
Represents an instance of a CustomBlockType. Effectively a wrapper for DataBlock.
  • Constructor Details

  • Method Details

    • getDataBlock

      public DataBlock getDataBlock()
      Returns:
      The DataBlock this CustomBlock wraps
    • getBlock

      public org.bukkit.block.Block getBlock()
      Returns:
      The Block this CustomBlock is at
    • getType

      public CustomBlockType<?> 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