mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-01 19:06:41 +00:00
Employed a set of consistent rules for getDroppedBlock(type, data) and renamed it to getBlockBagItem.
This commit is contained in:
@ -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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user