Package com.sk89q.worldedit.bukkit
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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
org.bukkit.entity.Player
Get the player.void
storeBlock
(com.sk89q.worldedit.world.block.BlockState blockState, int amount) Methods inherited from class com.sk89q.worldedit.extent.inventory.BlockBag
fetchPlacedBlock, peekBlock, storeBlock, storeDroppedBlock
-
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 classcom.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 classcom.sk89q.worldedit.extent.inventory.BlockBag
- Throws:
com.sk89q.worldedit.extent.inventory.BlockBagException
-
flushChanges
public void flushChanges()- Specified by:
flushChanges
in classcom.sk89q.worldedit.extent.inventory.BlockBag
-
addSourcePosition
public void addSourcePosition(com.sk89q.worldedit.util.Location pos) - Specified by:
addSourcePosition
in classcom.sk89q.worldedit.extent.inventory.BlockBag
-
addSingleSourcePosition
public void addSingleSourcePosition(com.sk89q.worldedit.util.Location pos) - Specified by:
addSingleSourcePosition
in classcom.sk89q.worldedit.extent.inventory.BlockBag
-