@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();
  }
 @Override
 public void execute(Side side, EntityPlayer player) {
   if (side.isServer()) {
     TileEntity te = player.worldObj.getTileEntity(new BlockPos(x, y, z));
     if (te instanceof TileEntityTabulaRasa) {
       TileEntityTabulaRasa tr = (TileEntityTabulaRasa) te;
       if (tr.host.equals(player.getCommandSenderName())) {
         tr.currentProj = ident;
         tr.needProjectUpdate = true;
         tr.needTextureUpdate = true;
         tr.getWorld().markBlockForUpdate(tr.getPos());
       }
     }
   }
 }
 @Override
 public void markDirty() {
   if (side.isServer()) {
     playerSave.setCreativeDirty();
   }
 }
Esempio n. 5
0
 @Override
 protected final boolean isValidOnSide(Side side) {
   return side.isServer();
 }