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 }
public void a(EnumGamemode enumgamemode) { this.playerInteractManager.setGameMode(enumgamemode); this.playerConnection.sendPacket(new Packet70Bed(3, enumgamemode.a())); }