/** * Spawns an experience orb and sets its value (amount of XP) */ public void handleSpawnExperienceOrb(S11PacketSpawnExperienceOrb packetIn) { PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController); Entity entity = new EntityXPOrb(this.clientWorldController, (double)packetIn.getX() / 32.0D, (double)packetIn.getY() / 32.0D, (double)packetIn.getZ() / 32.0D, packetIn.getXPValue()); entity.serverPosX = packetIn.getX(); entity.serverPosY = packetIn.getY(); entity.serverPosZ = packetIn.getZ(); 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) */ public void handleSpawnExperienceOrb(S11PacketSpawnExperienceOrb packetIn) { PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController); Entity entity = new EntityXPOrb(this.clientWorldController, (double) packetIn.getX() / 32.0D, (double) packetIn.getY() / 32.0D, (double) packetIn.getZ() / 32.0D, packetIn.getXPValue()); entity.serverPosX = packetIn.getX(); entity.serverPosY = packetIn.getY(); entity.serverPosZ = packetIn.getZ(); 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) */ public void handleSpawnExperienceOrb(S11PacketSpawnExperienceOrb p_147286_1_) { EntityXPOrb var2 = new EntityXPOrb(this.clientWorldController, (double)p_147286_1_.func_148984_d(), (double)p_147286_1_.func_148983_e(), (double)p_147286_1_.func_148982_f(), p_147286_1_.func_148986_g()); var2.serverPosX = p_147286_1_.func_148984_d(); var2.serverPosY = p_147286_1_.func_148983_e(); var2.serverPosZ = p_147286_1_.func_148982_f(); var2.rotationYaw = 0.0F; var2.rotationPitch = 0.0F; var2.setEntityId(p_147286_1_.func_148985_c()); this.clientWorldController.addEntityToWorld(p_147286_1_.func_148985_c(), var2); }
public void handleSpawnExperienceOrb(S11PacketSpawnExperienceOrb p_147286_1_) { EntityXPOrb entityxporb = new EntityXPOrb(this.clientWorldController, (double)p_147286_1_.func_148984_d() / 32.0D, (double)p_147286_1_.func_148983_e() / 32.0D, (double)p_147286_1_.func_148982_f() / 32.0D, p_147286_1_.func_148986_g()); // FORGE: BugFix MC-12013 Wrong XP orb clientside spawn position entityxporb.serverPosX = p_147286_1_.func_148984_d(); entityxporb.serverPosY = p_147286_1_.func_148983_e(); entityxporb.serverPosZ = p_147286_1_.func_148982_f(); entityxporb.rotationYaw = 0.0F; entityxporb.rotationPitch = 0.0F; entityxporb.setEntityId(p_147286_1_.func_148985_c()); this.clientWorldController.addEntityToWorld(p_147286_1_.func_148985_c(), entityxporb); }
/** * Spawns an experience orb and sets its value (amount of XP) */ void handleSpawnExperienceOrb(S11PacketSpawnExperienceOrb packetIn);
/** * Spawns an experience orb and sets its value (amount of XP) */ void handleSpawnExperienceOrb(S11PacketSpawnExperienceOrb var1);
void handleSpawnExperienceOrb(S11PacketSpawnExperienceOrb p_147286_1_);