예제 #1
0
 public void a(NBTTagCompound nbttagcompound) {
   if (nbttagcompound.b("foodLevel")) {
     this.a = nbttagcompound.e("foodLevel");
     this.d = nbttagcompound.e("foodTickTimer");
     this.b = nbttagcompound.g("foodSaturationLevel");
     this.c = nbttagcompound.g("foodExhaustionLevel");
   }
 }
예제 #2
0
 public void a(NBTTagCompound nbttagcompound) {
   super.a(nbttagcompound);
   if (nbttagcompound.b("playerGameType")) {
     // XXX Check this, it was only the last call to this.c.a
     if (MinecraftServer.D().am()) {
       this.c.a(MinecraftServer.D().g());
     } else {
       this.c.a(EnumGameType.a(nbttagcompound.e("playerGameType")));
     }
   }
 }