Class BlockJukebox


public class BlockJukebox extends BlockType
  • Constructor Details

    • BlockJukebox

      public BlockJukebox()
  • Method Details

    • createBlockEntity

      public BlockEntity createBlockEntity(GlowChunk chunk, int cx, int cy, int cz)
      Description copied from class: BlockType
      Create a new block entity at the given location.
      Overrides:
      createBlockEntity in class BlockType
      Parameters:
      chunk - The chunk to create the block entity at.
      cx - The x coordinate in the chunk.
      cy - The y coordinate in the chunk.
      cz - The z coordinate in the chunk.
      Returns:
      The new BlockEntity, or null if no block entity is used.
    • 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.
    • blockDestroy

      public void blockDestroy(GlowPlayer player, GlowBlock block, org.bukkit.block.BlockFace face)
      Description copied from class: BlockType
      Called when a player attempts to destroy a block.
      Overrides:
      blockDestroy in class BlockType
      Parameters:
      player - The player interacting
      block - The block the player destroyed
      face - The block face
    • getDrops

      @NotNull public @NotNull Collection<org.bukkit.inventory.ItemStack> getDrops(GlowBlock block, org.bukkit.inventory.ItemStack tool)
      Description copied from class: BlockType
      Get the items that will be dropped by digging the block.
      Overrides:
      getDrops in class BlockType
      Parameters:
      block - The block being dug.
      tool - The tool used or null if fists or no tool was used.
      Returns:
      The drops that should be returned.