Java 类net.minecraft.network.play.server.SPacketSpawnExperienceOrb 实例源码

项目:Zombe-Modpack    文件:NetHandlerPlayClient.java   
/**
 * 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);
}
项目:Backmemed    文件:NetHandlerPlayClient.java   
/**
 * 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);
}
项目:CustomWorldGen    文件:NetHandlerPlayClient.java   
/**
 * 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);
}
项目:ExpandedRailsMod    文件:NetHandlerPlayClient.java   
/**
 * 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);
}
项目:Backmemed    文件:INetHandlerPlayClient.java   
/**
 * Spawns an experience orb and sets its value (amount of XP)
 */
void handleSpawnExperienceOrb(SPacketSpawnExperienceOrb packetIn);
项目:CustomWorldGen    文件:INetHandlerPlayClient.java   
/**
 * Spawns an experience orb and sets its value (amount of XP)
 */
void handleSpawnExperienceOrb(SPacketSpawnExperienceOrb packetIn);