Examples of onInventoryChanged()


Examples of net.minecraft.tileentity.TileEntity.onInventoryChanged()

      for (int i = 0; i < invSize; i++) {
        ItemStack stack = chest.getStackInSlot(i);
        if (stack != null && isPickaxe(stack.getItem())) {
          setPickaxe(stack.getItem());
          ((TileEntityColoniesChest)entity).setInventorySlotContents(i, ((TileEntityColoniesChest)entity).decrStackSize(0, stack.stackSize-1));
          entity.onInventoryChanged();
          return true;
        }
      }
    }
    return false;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.