예제 #1
0
 @Override
 public ItemStack getItem(int slot) {
   if (slot == -999) {
     return null;
   }
   return CraftItemStack.asCraftMirror(container.getSlot(slot).getStack());
 }
예제 #2
0
 @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);
   }
 }