public class BukkitPlayerBlockBag
extends com.sk89q.worldedit.extent.inventory.BlockBag
Constructor and Description |
---|
BukkitPlayerBlockBag(org.bukkit.entity.Player player)
Construct the object.
|
Modifier and Type | Method and Description |
---|---|
void |
addSingleSourcePosition(com.sk89q.worldedit.util.Location pos) |
void |
addSourcePosition(com.sk89q.worldedit.util.Location pos) |
void |
fetchBlock(com.sk89q.worldedit.world.block.BlockState blockState) |
void |
flushChanges() |
org.bukkit.entity.Player |
getPlayer()
Get the player.
|
void |
storeBlock(com.sk89q.worldedit.world.block.BlockState blockState,
int amount) |
public BukkitPlayerBlockBag(org.bukkit.entity.Player player)
player
- the playerpublic org.bukkit.entity.Player getPlayer()
public void fetchBlock(com.sk89q.worldedit.world.block.BlockState blockState) throws com.sk89q.worldedit.extent.inventory.BlockBagException
fetchBlock
in class com.sk89q.worldedit.extent.inventory.BlockBag
com.sk89q.worldedit.extent.inventory.BlockBagException
public void storeBlock(com.sk89q.worldedit.world.block.BlockState blockState, int amount) throws com.sk89q.worldedit.extent.inventory.BlockBagException
storeBlock
in class com.sk89q.worldedit.extent.inventory.BlockBag
com.sk89q.worldedit.extent.inventory.BlockBagException
public void flushChanges()
flushChanges
in class com.sk89q.worldedit.extent.inventory.BlockBag
public void addSourcePosition(com.sk89q.worldedit.util.Location pos)
addSourcePosition
in class com.sk89q.worldedit.extent.inventory.BlockBag
public void addSingleSourcePosition(com.sk89q.worldedit.util.Location pos)
addSingleSourcePosition
in class com.sk89q.worldedit.extent.inventory.BlockBag