@Override
 public ItemStack getStackInSlot(int slot) {
   if (side.isClient()) {
     return NEIClientConfig.creativeInv[slot];
   }
   return playerSave.creativeInv[slot];
 }
  @Override
  public void setInventorySlotContents(int slot, ItemStack stack) {
    if (side.isClient()) {
      NEIClientConfig.creativeInv[slot] = stack;
    } else {
      playerSave.creativeInv[slot] = stack;
    }

    markDirty();
  }
Esempio n. 3
0
 @Override
 protected final boolean isValidOnSide(Side side) {
   return side.isClient();
 }