Package com.sk89q.worldedit.bukkit
Class BukkitPlayerBlockBag
java.lang.Object
com.sk89q.worldedit.extent.inventory.BlockBag
com.sk89q.worldedit.bukkit.BukkitPlayerBlockBag
- All Implemented Interfaces:
com.fastasyncworldedit.core.extent.inventory.SlottableBlockBag
public class BukkitPlayerBlockBag
extends com.sk89q.worldedit.extent.inventory.BlockBag
implements com.fastasyncworldedit.core.extent.inventory.SlottableBlockBag
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSingleSourcePosition(com.sk89q.worldedit.util.Location pos) voidaddSourcePosition(com.sk89q.worldedit.util.Location pos) voidfetchBlock(com.sk89q.worldedit.world.block.BlockState blockState) voidcom.sk89q.worldedit.blocks.BaseItemgetItem(int slot) Get the player.voidsetItem(int slot, com.sk89q.worldedit.blocks.BaseItem block) voidstoreBlock(com.sk89q.worldedit.world.block.BlockState blockState, int amount) Methods inherited from class com.sk89q.worldedit.extent.inventory.BlockBag
fetchPlacedBlock, peekBlock, storeBlock, storeDroppedBlockMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.fastasyncworldedit.core.extent.inventory.SlottableBlockBag
getSelectedSlot, size
-
Constructor Details
-
BukkitPlayerBlockBag
Construct the object.- Parameters:
player- the player
-
-
Method Details
-
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:
fetchBlockin 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:
storeBlockin classcom.sk89q.worldedit.extent.inventory.BlockBag- Throws:
com.sk89q.worldedit.extent.inventory.BlockBagException
-
flushChanges
public void flushChanges()- Specified by:
flushChangesin classcom.sk89q.worldedit.extent.inventory.BlockBag
-
addSourcePosition
public void addSourcePosition(com.sk89q.worldedit.util.Location pos) - Specified by:
addSourcePositionin classcom.sk89q.worldedit.extent.inventory.BlockBag
-
addSingleSourcePosition
public void addSingleSourcePosition(com.sk89q.worldedit.util.Location pos) - Specified by:
addSingleSourcePositionin classcom.sk89q.worldedit.extent.inventory.BlockBag
-
getItem
public com.sk89q.worldedit.blocks.BaseItem getItem(int slot) - Specified by:
getItemin interfacecom.fastasyncworldedit.core.extent.inventory.SlottableBlockBag
-
setItem
public void setItem(int slot, com.sk89q.worldedit.blocks.BaseItem block) - Specified by:
setItemin interfacecom.fastasyncworldedit.core.extent.inventory.SlottableBlockBag
-