Java 类net.minecraft.client.particle.EntityCrit2FX 实例源码

项目:RuneCraftery    文件:NetClientHandler.java   
public void func_72524_a(Packet18Animation p_72524_1_) {
   Entity var2 = this.func_72545_a(p_72524_1_.field_73470_a);
   if(var2 != null) {
      if(p_72524_1_.field_73469_b == 1) {
         EntityLivingBase var3 = (EntityLivingBase)var2;
         var3.func_71038_i();
      } else if(p_72524_1_.field_73469_b == 2) {
         var2.func_70057_ab();
      } else if(p_72524_1_.field_73469_b == 3) {
         EntityPlayer var4 = (EntityPlayer)var2;
         var4.func_70999_a(false, false, false);
      } else if(p_72524_1_.field_73469_b != 4) {
         if(p_72524_1_.field_73469_b == 6) {
            this.field_72563_h.field_71452_i.func_78873_a(new EntityCrit2FX(this.field_72563_h.field_71441_e, var2));
         } else if(p_72524_1_.field_73469_b == 7) {
            EntityCrit2FX var5 = new EntityCrit2FX(this.field_72563_h.field_71441_e, var2, "magicCrit");
            this.field_72563_h.field_71452_i.func_78873_a(var5);
         } else if(p_72524_1_.field_73469_b == 5 && var2 instanceof EntityOtherPlayerMP) {
            ;
         }
      }

   }
}
项目:Resilience-Client-Source    文件:NetHandlerPlayClient.java   
/**
 * Renders a specified animation: Waking up a player, a living entity swinging its currently held item, being hurt
 * or receiving a critical hit by normal or magical means
 */
public void handleAnimation(S0BPacketAnimation p_147279_1_)
{
    Entity var2 = this.clientWorldController.getEntityByID(p_147279_1_.func_148978_c());

    if (var2 != null)
    {
        if (p_147279_1_.func_148977_d() == 0)
        {
            EntityLivingBase var3 = (EntityLivingBase)var2;
            var3.swingItem();
        }
        else if (p_147279_1_.func_148977_d() == 1)
        {
            var2.performHurtAnimation();
        }
        else if (p_147279_1_.func_148977_d() == 2)
        {
            EntityPlayer var4 = (EntityPlayer)var2;
            var4.wakeUpPlayer(false, false, false);
        }
        else if (p_147279_1_.func_148977_d() == 4)
        {
            this.gameController.effectRenderer.addEffect(new EntityCrit2FX(this.gameController.theWorld, var2));
        }
        else if (p_147279_1_.func_148977_d() == 5)
        {
            EntityCrit2FX var5 = new EntityCrit2FX(this.gameController.theWorld, var2, "magicCrit");
            this.gameController.effectRenderer.addEffect(var5);
        }
    }
}
项目:Cauldron    文件:NetHandlerPlayClient.java   
public void handleAnimation(S0BPacketAnimation p_147279_1_)
{
    Entity entity = this.clientWorldController.getEntityByID(p_147279_1_.func_148978_c());

    if (entity != null)
    {
        if (p_147279_1_.func_148977_d() == 0)
        {
            EntityLivingBase entitylivingbase = (EntityLivingBase)entity;
            entitylivingbase.swingItem();
        }
        else if (p_147279_1_.func_148977_d() == 1)
        {
            entity.performHurtAnimation();
        }
        else if (p_147279_1_.func_148977_d() == 2)
        {
            EntityPlayer entityplayer = (EntityPlayer)entity;
            entityplayer.wakeUpPlayer(false, false, false);
        }
        else if (p_147279_1_.func_148977_d() == 4)
        {
            this.gameController.effectRenderer.addEffect(new EntityCrit2FX(this.gameController.theWorld, entity));
        }
        else if (p_147279_1_.func_148977_d() == 5)
        {
            EntityCrit2FX entitycrit2fx = new EntityCrit2FX(this.gameController.theWorld, entity, "magicCrit");
            this.gameController.effectRenderer.addEffect(entitycrit2fx);
        }
    }
}
项目:Cauldron    文件:NetHandlerPlayClient.java   
public void handleAnimation(S0BPacketAnimation p_147279_1_)
{
    Entity entity = this.clientWorldController.getEntityByID(p_147279_1_.func_148978_c());

    if (entity != null)
    {
        if (p_147279_1_.func_148977_d() == 0)
        {
            EntityLivingBase entitylivingbase = (EntityLivingBase)entity;
            entitylivingbase.swingItem();
        }
        else if (p_147279_1_.func_148977_d() == 1)
        {
            entity.performHurtAnimation();
        }
        else if (p_147279_1_.func_148977_d() == 2)
        {
            EntityPlayer entityplayer = (EntityPlayer)entity;
            entityplayer.wakeUpPlayer(false, false, false);
        }
        else if (p_147279_1_.func_148977_d() == 4)
        {
            this.gameController.effectRenderer.addEffect(new EntityCrit2FX(this.gameController.theWorld, entity));
        }
        else if (p_147279_1_.func_148977_d() == 5)
        {
            EntityCrit2FX entitycrit2fx = new EntityCrit2FX(this.gameController.theWorld, entity, "magicCrit");
            this.gameController.effectRenderer.addEffect(entitycrit2fx);
        }
    }
}
项目:RuneCraftery    文件:NetClientHandler.java   
public void handleAnimation(Packet18Animation par1Packet18Animation)
{
    Entity entity = this.getEntityByID(par1Packet18Animation.entityId);

    if (entity != null)
    {
        if (par1Packet18Animation.animate == 1)
        {
            EntityLivingBase entitylivingbase = (EntityLivingBase)entity;
            entitylivingbase.swingItem();
        }
        else if (par1Packet18Animation.animate == 2)
        {
            entity.performHurtAnimation();
        }
        else if (par1Packet18Animation.animate == 3)
        {
            EntityPlayer entityplayer = (EntityPlayer)entity;
            entityplayer.wakeUpPlayer(false, false, false);
        }
        else if (par1Packet18Animation.animate != 4)
        {
            if (par1Packet18Animation.animate == 6)
            {
                this.mc.effectRenderer.addEffect(new EntityCrit2FX(this.mc.theWorld, entity));
            }
            else if (par1Packet18Animation.animate == 7)
            {
                EntityCrit2FX entitycrit2fx = new EntityCrit2FX(this.mc.theWorld, entity, "magicCrit");
                this.mc.effectRenderer.addEffect(entitycrit2fx);
            }
            else if (par1Packet18Animation.animate == 5 && entity instanceof EntityOtherPlayerMP)
            {
                ;
            }
        }
    }
}
项目:BetterNutritionMod    文件:NetClientHandler.java   
public void handleAnimation(Packet18Animation par1Packet18Animation)
{
    Entity entity = this.getEntityByID(par1Packet18Animation.entityId);

    if (entity != null)
    {
        if (par1Packet18Animation.animate == 1)
        {
            EntityLivingBase entitylivingbase = (EntityLivingBase)entity;
            entitylivingbase.swingItem();
        }
        else if (par1Packet18Animation.animate == 2)
        {
            entity.performHurtAnimation();
        }
        else if (par1Packet18Animation.animate == 3)
        {
            EntityPlayer entityplayer = (EntityPlayer)entity;
            entityplayer.wakeUpPlayer(false, false, false);
        }
        else if (par1Packet18Animation.animate != 4)
        {
            if (par1Packet18Animation.animate == 6)
            {
                this.mc.effectRenderer.addEffect(new EntityCrit2FX(this.mc.theWorld, entity));
            }
            else if (par1Packet18Animation.animate == 7)
            {
                EntityCrit2FX entitycrit2fx = new EntityCrit2FX(this.mc.theWorld, entity, "magicCrit");
                this.mc.effectRenderer.addEffect(entitycrit2fx);
            }
            else if (par1Packet18Animation.animate == 5 && entity instanceof EntityOtherPlayerMP)
            {
                ;
            }
        }
    }
}
项目:Resilience-Client-Source    文件:EntityPlayerSP.java   
/**
 * Called when the player performs a critical hit on the Entity. Args: entity that was hit critically
 */
public void onCriticalHit(Entity par1Entity)
{
    this.mc.effectRenderer.addEffect(new EntityCrit2FX(this.mc.theWorld, par1Entity));
}
项目:Resilience-Client-Source    文件:EntityPlayerSP.java   
public void onEnchantmentCritical(Entity par1Entity)
{
    EntityCrit2FX var2 = new EntityCrit2FX(this.mc.theWorld, par1Entity, "magicCrit");
    this.mc.effectRenderer.addEffect(var2);
}
项目:Cauldron    文件:EntityPlayerSP.java   
public void onCriticalHit(Entity p_71009_1_)
{
    this.mc.effectRenderer.addEffect(new EntityCrit2FX(this.mc.theWorld, p_71009_1_));
}
项目:Cauldron    文件:EntityPlayerSP.java   
public void onEnchantmentCritical(Entity p_71047_1_)
{
    EntityCrit2FX entitycrit2fx = new EntityCrit2FX(this.mc.theWorld, p_71047_1_, "magicCrit");
    this.mc.effectRenderer.addEffect(entitycrit2fx);
}
项目:Cauldron    文件:EntityPlayerSP.java   
public void onCriticalHit(Entity p_71009_1_)
{
    this.mc.effectRenderer.addEffect(new EntityCrit2FX(this.mc.theWorld, p_71009_1_));
}
项目:Cauldron    文件:EntityPlayerSP.java   
public void onEnchantmentCritical(Entity p_71047_1_)
{
    EntityCrit2FX entitycrit2fx = new EntityCrit2FX(this.mc.theWorld, p_71047_1_, "magicCrit");
    this.mc.effectRenderer.addEffect(entitycrit2fx);
}
项目:RuneCraftery    文件:EntityPlayerSP.java   
public void func_71009_b(Entity p_71009_1_) {
   this.field_71159_c.field_71452_i.func_78873_a(new EntityCrit2FX(this.field_71159_c.field_71441_e, p_71009_1_));
}
项目:RuneCraftery    文件:EntityPlayerSP.java   
public void func_71047_c(Entity p_71047_1_) {
   EntityCrit2FX var2 = new EntityCrit2FX(this.field_71159_c.field_71441_e, p_71047_1_, "magicCrit");
   this.field_71159_c.field_71452_i.func_78873_a(var2);
}
项目:RuneCraftery    文件:EntityPlayerSP.java   
/**
 * Called when the player performs a critical hit on the Entity. Args: entity that was hit critically
 */
public void onCriticalHit(Entity par1Entity)
{
    this.mc.effectRenderer.addEffect(new EntityCrit2FX(this.mc.theWorld, par1Entity));
}
项目:RuneCraftery    文件:EntityPlayerSP.java   
public void onEnchantmentCritical(Entity par1Entity)
{
    EntityCrit2FX entitycrit2fx = new EntityCrit2FX(this.mc.theWorld, par1Entity, "magicCrit");
    this.mc.effectRenderer.addEffect(entitycrit2fx);
}
项目:BetterNutritionMod    文件:EntityPlayerSP.java   
/**
 * Called when the player performs a critical hit on the Entity. Args: entity that was hit critically
 */
public void onCriticalHit(Entity par1Entity)
{
    this.mc.effectRenderer.addEffect(new EntityCrit2FX(this.mc.theWorld, par1Entity));
}
项目:BetterNutritionMod    文件:EntityPlayerSP.java   
public void onEnchantmentCritical(Entity par1Entity)
{
    EntityCrit2FX entitycrit2fx = new EntityCrit2FX(this.mc.theWorld, par1Entity, "magicCrit");
    this.mc.effectRenderer.addEffect(entitycrit2fx);
}