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

项目:RuneCraftery    文件:NetClientHandler.java   
/**
 * Handle a remove entity effect packet.
 */
public void handleRemoveEntityEffect(Packet42RemoveEntityEffect par1Packet42RemoveEntityEffect)
{
    Entity entity = this.getEntityByID(par1Packet42RemoveEntityEffect.entityId);

    if (entity instanceof EntityLivingBase)
    {
        ((EntityLivingBase)entity).removePotionEffectClient(par1Packet42RemoveEntityEffect.effectId);
    }
}
项目:BetterNutritionMod    文件:NetClientHandler.java   
/**
 * Handle a remove entity effect packet.
 */
public void handleRemoveEntityEffect(Packet42RemoveEntityEffect par1Packet42RemoveEntityEffect)
{
    Entity entity = this.getEntityByID(par1Packet42RemoveEntityEffect.entityId);

    if (entity instanceof EntityLivingBase)
    {
        ((EntityLivingBase)entity).removePotionEffectClient(par1Packet42RemoveEntityEffect.effectId);
    }
}
项目:forge_world_downloader    文件:WDLNetClientHandler.java   
@Override
public void handleRemoveEntityEffect(Packet42RemoveEntityEffect par1Packet42RemoveEntityEffect)
{
    nch.handleRemoveEntityEffect(par1Packet42RemoveEntityEffect);       
}
项目:RuneCraftery    文件:EntityPlayerMP.java   
protected void func_70688_c(PotionEffect p_70688_1_) {
   super.func_70688_c(p_70688_1_);
   this.field_71135_a.func_72567_b(new Packet42RemoveEntityEffect(this.field_70157_k, p_70688_1_));
}
项目:RuneCraftery    文件:NetHandler.java   
public void func_72452_a(Packet42RemoveEntityEffect p_72452_1_) {
   this.func_72509_a(p_72452_1_);
}
项目:RuneCraftery    文件:NetClientHandler.java   
public void func_72452_a(Packet42RemoveEntityEffect p_72452_1_) {
   Entity var2 = this.func_72545_a(p_72452_1_.field_73375_a);
   if(var2 instanceof EntityLivingBase) {
      ((EntityLivingBase)var2).func_70618_n(p_72452_1_.field_73374_b);
   }
}
项目:RuneCraftery    文件:EntityPlayerMP.java   
protected void onFinishedPotionEffect(PotionEffect par1PotionEffect)
{
    super.onFinishedPotionEffect(par1PotionEffect);
    this.playerNetServerHandler.sendPacketToPlayer(new Packet42RemoveEntityEffect(this.entityId, par1PotionEffect));
}
项目:BetterNutritionMod    文件:EntityPlayerMP.java   
protected void onFinishedPotionEffect(PotionEffect par1PotionEffect)
{
    super.onFinishedPotionEffect(par1PotionEffect);
    this.playerNetServerHandler.sendPacketToPlayer(new Packet42RemoveEntityEffect(this.entityId, par1PotionEffect));
}