public void dropItemFromInventory() { if (inv[0] == null) return; this.dropItem( worldObj, xCoord, yCoord, zCoord, this.getBlockMetadata(), ReikaItemHelper.getSizedItemStack(inv[0], 1)); ReikaInventoryHelper.decrStack(0, inv); }
public boolean isInventoryFull() { if (inv[0] == null) return false; if (!ReikaItemHelper.matchStacks(ItemStacks.bedrockdust, inv[0])) return true; return inv[0].stackSize >= inv[0].getMaxStackSize(); }
private ItemStack getDrops() { ItemStack dust = ReikaItemHelper.getSizedItemStack( ItemStacks.bedrockdust, DifficultyEffects.BEDROCKDUST.getInt()); return dust; }