Class BlockStairs


public class BlockStairs extends BlockType
  • Constructor Details

    • BlockStairs

      public BlockStairs()
  • Method Details

    • placeBlock

      public void placeBlock(GlowPlayer player, GlowBlockState state, org.bukkit.block.BlockFace face, org.bukkit.inventory.ItemStack holding, org.bukkit.util.Vector clickedLoc)
      Description copied from class: BlockType
      Called when a block is placed to calculate what the block will become.
      Overrides:
      placeBlock in class BlockType
      Parameters:
      player - the player who placed the block
      state - the BlockState to edit
      face - the face off which the block is being placed
      holding - the ItemStack that was being held
      clickedLoc - where in the block the click occurred
    • 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.
    • 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.