@Override public ItemStack getItem(int slot) { if (slot == -999) { return null; } return CraftItemStack.asCraftMirror(container.getSlot(slot).getStack()); }
@Override public void setItem(int slot, ItemStack item) { net.minecraft.item.ItemStack stack = CraftItemStack.asNMSCopy(item); if (slot != -999) { container.getSlot(slot).putStack(stack); } else { player.getHandle().dropPlayerItemWithRandomChoice(stack, false); } }