예제 #1
0
 public void a(NBTTagCompound nbttagcompound) {
   super.a(nbttagcompound);
   if (nbttagcompound.hasKey("playerGameType")) {
     this.playerInteractManager.setGameMode(
         EnumGamemode.a(nbttagcompound.getInt("playerGameType")));
   }
   this.getBukkitEntity().readExtraData(nbttagcompound); // CraftBukkit
 }
예제 #2
0
 public void a(EnumGamemode enumgamemode) {
   this.playerInteractManager.setGameMode(enumgamemode);
   this.playerConnection.sendPacket(new Packet70Bed(3, enumgamemode.a()));
 }