Class BlockCauldron


public class BlockCauldron extends BlockNeedsTool
  • Constructor Details

    • BlockCauldron

      public BlockCauldron()
  • Method Details

    • blockInteract

      public boolean blockInteract(GlowPlayer player, GlowBlock block, org.bukkit.block.BlockFace face, org.bukkit.util.Vector clickedLoc)
      Description copied from class: BlockType
      Called when a player attempts to interact with (right-click) a block of this type already in the world.
      Overrides:
      blockInteract in class BlockType
      Parameters:
      player - the player interacting
      block - the block interacted with
      face - the clicked face
      clickedLoc - where in the block the click occurred
      Returns:
      Whether the interaction occurred.
    • getMinedDrops

      @NotNull public @NotNull Collection<org.bukkit.inventory.ItemStack> getMinedDrops(GlowBlock block)
      Description copied from class: BlockType
      Get the items that would be dropped if the block was successfully mined. This is used f.e. to calculate TNT drops.
      Overrides:
      getMinedDrops in class BlockType
      Parameters:
      block - The block.
      Returns:
      The drops from that block.
    • getNeededMiningTool

      public MaterialMatcher getNeededMiningTool(GlowBlock block)
      Specified by:
      getNeededMiningTool in class BlockNeedsTool