/** * Spawns an experience orb and sets its value (amount of XP) */ public void handleSpawnExperienceOrb(SPacketSpawnExperienceOrb packetIn) { PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController); double d0 = packetIn.getX(); double d1 = packetIn.getY(); double d2 = packetIn.getZ(); Entity entity = new EntityXPOrb(this.clientWorldController, d0, d1, d2, packetIn.getXPValue()); EntityTracker.updateServerPosition(entity, d0, d1, d2); entity.rotationYaw = 0.0F; entity.rotationPitch = 0.0F; entity.setEntityId(packetIn.getEntityID()); this.clientWorldController.addEntityToWorld(packetIn.getEntityID(), entity); }
/** * Spawns an experience orb and sets its value (amount of XP) */ void handleSpawnExperienceOrb(SPacketSpawnExperienceOrb packetIn);