@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();
   }
 }
Пример #3
0
 @Override
 protected final boolean isValidOnSide(Side side) {
   return side.isServer();
 }