Java 类net.minecraft.network.packet.Packet38EntityStatus 实例源码

项目:RuneCraftery    文件:NetClientHandler.java   
public void func_72485_a(Packet38EntityStatus p_72485_1_) {
   Entity var2 = this.func_72545_a(p_72485_1_.field_73627_a);
   if(var2 != null) {
      var2.func_70103_a(p_72485_1_.field_73626_b);
   }

}
项目:RuneCraftery    文件:NetClientHandler.java   
/**
 * Packet handler
 */
public void handleEntityStatus(Packet38EntityStatus par1Packet38EntityStatus)
{
    Entity entity = this.getEntityByID(par1Packet38EntityStatus.entityId);

    if (entity != null)
    {
        entity.handleHealthUpdate(par1Packet38EntityStatus.entityStatus);
    }
}
项目:BetterNutritionMod    文件:NetClientHandler.java   
/**
 * Packet handler
 */
public void handleEntityStatus(Packet38EntityStatus par1Packet38EntityStatus)
{
    Entity entity = this.getEntityByID(par1Packet38EntityStatus.entityId);

    if (entity != null)
    {
        entity.handleHealthUpdate(par1Packet38EntityStatus.entityStatus);
    }
}
项目:forge_world_downloader    文件:WDLNetClientHandler.java   
@Override
public void handleEntityStatus(Packet38EntityStatus par1Packet38EntityStatus)
{
    nch.handleEntityStatus(par1Packet38EntityStatus);       
}
项目:RuneCraftery    文件:WorldServer.java   
public void func_72960_a(Entity p_72960_1_, byte p_72960_2_) {
   Packet38EntityStatus var3 = new Packet38EntityStatus(p_72960_1_.field_70157_k, p_72960_2_);
   this.func_73039_n().func_72789_b(p_72960_1_, var3);
}
项目:RuneCraftery    文件:EntityPlayerMP.java   
protected void func_71036_o() {
   this.field_71135_a.func_72567_b(new Packet38EntityStatus(this.field_70157_k, (byte)9));
   super.func_71036_o();
}
项目:RuneCraftery    文件:NetHandler.java   
public void func_72485_a(Packet38EntityStatus p_72485_1_) {
   this.func_72509_a(p_72485_1_);
}
项目:RuneCraftery    文件:WorldServer.java   
/**
 * sends a Packet 38 (Entity Status) to all tracked players of that entity
 */
public void setEntityState(Entity par1Entity, byte par2)
{
    Packet38EntityStatus packet38entitystatus = new Packet38EntityStatus(par1Entity.entityId, par2);
    this.getEntityTracker().sendPacketToAllAssociatedPlayers(par1Entity, packet38entitystatus);
}
项目:RuneCraftery    文件:EntityPlayerMP.java   
/**
 * Used for when item use count runs out, ie: eating completed
 */
protected void onItemUseFinish()
{
    this.playerNetServerHandler.sendPacketToPlayer(new Packet38EntityStatus(this.entityId, (byte)9));
    super.onItemUseFinish();
}
项目:BetterNutritionMod    文件:WorldServer.java   
/**
 * sends a Packet 38 (Entity Status) to all tracked players of that entity
 */
public void setEntityState(Entity par1Entity, byte par2)
{
    Packet38EntityStatus packet38entitystatus = new Packet38EntityStatus(par1Entity.entityId, par2);
    this.getEntityTracker().sendPacketToAllAssociatedPlayers(par1Entity, packet38entitystatus);
}
项目:BetterNutritionMod    文件:EntityPlayerMP.java   
/**
 * Used for when item use count runs out, ie: eating completed
 */
protected void onItemUseFinish()
{
    this.playerNetServerHandler.sendPacketToPlayer(new Packet38EntityStatus(this.entityId, (byte)9));
    super.onItemUseFinish();
}