Employed a set of consistent rules for getDroppedBlock(type, data) and renamed it to getBlockBagItem.

This commit is contained in:
TomyLobo
2011-11-04 00:41:19 +01:00
parent d9b8285a35
commit 8e368ceef1
3 changed files with 161 additions and 121 deletions

View File

@ -36,7 +36,7 @@ public abstract class BlockBag {
* @throws BlockBagException
*/
public void storeDroppedBlock(int id, int data) throws BlockBagException {
BaseItem dropped = BlockType.getDroppedBlock(id, data);
BaseItem dropped = BlockType.getBlockBagItem(id, data);
if (dropped == null) return;
if (dropped.getType() == BlockID.AIR) return;
@ -121,6 +121,8 @@ public abstract class BlockBag {
/**
* Store a block.
*
* Either this method or storeItem needs to be overridden
*
* @param id
* @throws BlockBagException
*/
@ -131,6 +133,8 @@ public abstract class BlockBag {
/**
* Store a block.
*
* Either this method or storeBlock needs to be overridden
*
* @param item
* @throws BlockBagException
*/