Class BukkitPlayerBlockBag

java.lang.Object
com.sk89q.worldedit.extent.inventory.BlockBag
com.sk89q.worldedit.bukkit.BukkitPlayerBlockBag

public class BukkitPlayerBlockBag extends com.sk89q.worldedit.extent.inventory.BlockBag
  • Constructor Details

    • BukkitPlayerBlockBag

      public BukkitPlayerBlockBag(org.bukkit.entity.Player player)
      Construct the object.
      Parameters:
      player - the player
  • Method Details

    • getPlayer

      public org.bukkit.entity.Player getPlayer()
      Get the player.
      Returns:
      the player
    • fetchBlock

      public void fetchBlock(com.sk89q.worldedit.world.block.BlockState blockState) throws com.sk89q.worldedit.extent.inventory.BlockBagException
      Specified by:
      fetchBlock in class com.sk89q.worldedit.extent.inventory.BlockBag
      Throws:
      com.sk89q.worldedit.extent.inventory.BlockBagException
    • storeBlock

      public void storeBlock(com.sk89q.worldedit.world.block.BlockState blockState, int amount) throws com.sk89q.worldedit.extent.inventory.BlockBagException
      Specified by:
      storeBlock in class com.sk89q.worldedit.extent.inventory.BlockBag
      Throws:
      com.sk89q.worldedit.extent.inventory.BlockBagException
    • flushChanges

      public void flushChanges()
      Specified by:
      flushChanges in class com.sk89q.worldedit.extent.inventory.BlockBag
    • addSourcePosition

      public void addSourcePosition(com.sk89q.worldedit.util.Location pos)
      Specified by:
      addSourcePosition in class com.sk89q.worldedit.extent.inventory.BlockBag
    • addSingleSourcePosition

      public void addSingleSourcePosition(com.sk89q.worldedit.util.Location pos)
      Specified by:
      addSingleSourcePosition in class com.sk89q.worldedit.extent.inventory.BlockBag