public class BukkitPlayerBlockBag extends BlockBag
| Constructor and Description |
|---|
BukkitPlayerBlockBag(org.bukkit.entity.Player player)
Construct the object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSingleSourcePosition(WorldVector pos)
Adds a position to be used a source.
|
void |
addSourcePosition(WorldVector pos)
Adds a position to be used a source.
|
void |
fetchItem(BaseItem item)
Get a block.
|
void |
flushChanges()
Flush any changes.
|
org.bukkit.entity.Player |
getPlayer()
Get the player.
|
void |
storeItem(BaseItem item)
Store a block.
|
fetchBlock, fetchPlacedBlock, fetchPlacedBlock, peekBlock, storeBlock, storeDroppedBlock, storeDroppedBlockpublic BukkitPlayerBlockBag(org.bukkit.entity.Player player)
player - the playerpublic org.bukkit.entity.Player getPlayer()
public void fetchItem(BaseItem item) throws BlockBagException
BlockBagEither this method or fetchItem needs to be overridden.
fetchItem in class BlockBagitem - the itemBlockBagException - on errorpublic void storeItem(BaseItem item) throws BlockBagException
BlockBagEither this method or fetchItem needs to be overridden.
storeItem in class BlockBagitem - the itemBlockBagException - on errorpublic void flushChanges()
BlockBagflushChanges in class BlockBagpublic void addSourcePosition(WorldVector pos)
BlockBagaddSourcePosition in class BlockBagpos - the positionpublic void addSingleSourcePosition(WorldVector pos)
BlockBagaddSingleSourcePosition in class BlockBagpos - the positionCopyright © 2010-2014. All Rights Reserved.