cn.nukkit.inventory.InventoryHolder Java Examples
The following examples show how to use
cn.nukkit.inventory.InventoryHolder.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: NukkitWorld.java From FastAsyncWorldedit with GNU General Public License v3.0 | 6 votes |
@Override public boolean clearContainerBlockContents(Vector pt) { BlockEntity block = getLevel().getBlockEntity(setMutable(pt)); if (block == null) { return false; } if (block instanceof InventoryHolder) { if (block instanceof BlockEntityChest) { ((BlockEntityChest) block).getRealInventory().clearAll(); } else { ((InventoryHolder) block).getInventory().clearAll(); } return true; } return false; }
Example #2
Source File: InventoryMoveItemEvent.java From Nukkit with GNU General Public License v3.0 | 5 votes |
public InventoryMoveItemEvent(Inventory from, Inventory targetInventory, InventoryHolder source, Item item, Action action) { super(from); this.targetInventory = targetInventory; this.source = source; this.item = item; this.action = action; }
Example #3
Source File: InventoryMoveItemEvent.java From Nukkit with GNU General Public License v3.0 | 4 votes |
public InventoryHolder getSource() { return source; }