Java 类net.minecraft.client.audio.GuardianSound 实例源码

项目:DecompiledMinecraft    文件:NetHandlerPlayClient.java   
/**
 * Invokes the entities' handleUpdateHealth method which is implemented in LivingBase (hurt/death),
 * MinecartMobSpawner (spawn delay), FireworkRocket & MinecartTNT (explosion), IronGolem (throwing,...), Witch
 * (spawn particles), Zombie (villager transformation), Animal (breeding mode particles), Horse (breeding/smoke
 * particles), Sheep (...), Tameable (...), Villager (particles for breeding mode, angry and happy), Wolf (...)
 */
public void handleEntityStatus(S19PacketEntityStatus packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
    Entity entity = packetIn.getEntity(this.clientWorldController);

    if (entity != null)
    {
        if (packetIn.getOpCode() == 21)
        {
            this.gameController.getSoundHandler().playSound(new GuardianSound((EntityGuardian)entity));
        }
        else
        {
            entity.handleStatusUpdate(packetIn.getOpCode());
        }
    }
}
项目:BaseClient    文件:NetHandlerPlayClient.java   
/**
 * Invokes the entities' handleUpdateHealth method which is implemented in LivingBase (hurt/death),
 * MinecartMobSpawner (spawn delay), FireworkRocket & MinecartTNT (explosion), IronGolem (throwing,...), Witch
 * (spawn particles), Zombie (villager transformation), Animal (breeding mode particles), Horse (breeding/smoke
 * particles), Sheep (...), Tameable (...), Villager (particles for breeding mode, angry and happy), Wolf (...)
 */
public void handleEntityStatus(S19PacketEntityStatus packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
    Entity entity = packetIn.getEntity(this.clientWorldController);

    if (entity != null)
    {
        if (packetIn.getOpCode() == 21)
        {
            this.gameController.getSoundHandler().playSound(new GuardianSound((EntityGuardian)entity));
        }
        else
        {
            entity.handleStatusUpdate(packetIn.getOpCode());
        }
    }
}
项目:CustomWorldGen    文件:NetHandlerPlayClient.java   
/**
 * Invokes the entities' handleUpdateHealth method which is implemented in LivingBase (hurt/death),
 * MinecartMobSpawner (spawn delay), FireworkRocket & MinecartTNT (explosion), IronGolem (throwing,...), Witch
 * (spawn particles), Zombie (villager transformation), Animal (breeding mode particles), Horse (breeding/smoke
 * particles), Sheep (...), Tameable (...), Villager (particles for breeding mode, angry and happy), Wolf (...)
 */
public void handleEntityStatus(SPacketEntityStatus packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
    Entity entity = packetIn.getEntity(this.clientWorldController);

    if (entity != null)
    {
        if (packetIn.getOpCode() == 21)
        {
            this.gameController.getSoundHandler().playSound(new GuardianSound((EntityGuardian)entity));
        }
        else
        {
            entity.handleStatusUpdate(packetIn.getOpCode());
        }
    }
}
项目:ExpandedRailsMod    文件:NetHandlerPlayClient.java   
/**
 * Invokes the entities' handleUpdateHealth method which is implemented in LivingBase (hurt/death),
 * MinecartMobSpawner (spawn delay), FireworkRocket & MinecartTNT (explosion), IronGolem (throwing,...), Witch
 * (spawn particles), Zombie (villager transformation), Animal (breeding mode particles), Horse (breeding/smoke
 * particles), Sheep (...), Tameable (...), Villager (particles for breeding mode, angry and happy), Wolf (...)
 */
public void handleEntityStatus(SPacketEntityStatus packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
    Entity entity = packetIn.getEntity(this.clientWorldController);

    if (entity != null)
    {
        if (packetIn.getOpCode() == 21)
        {
            this.gameController.getSoundHandler().playSound(new GuardianSound((EntityGuardian)entity));
        }
        else
        {
            entity.handleStatusUpdate(packetIn.getOpCode());
        }
    }
}
项目:BaseClient    文件:NetHandlerPlayClient.java   
/**
 * Invokes the entities' handleUpdateHealth method which is implemented in
 * LivingBase (hurt/death), MinecartMobSpawner (spawn delay), FireworkRocket &
 * MinecartTNT (explosion), IronGolem (throwing,...), Witch (spawn particles),
 * Zombie (villager transformation), Animal (breeding mode particles), Horse
 * (breeding/smoke particles), Sheep (...), Tameable (...), Villager (particles
 * for breeding mode, angry and happy), Wolf (...)
 */
public void handleEntityStatus(S19PacketEntityStatus packetIn) {
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
    Entity entity = packetIn.getEntity(this.clientWorldController);

    if (entity != null) {
        if (packetIn.getOpCode() == 21) {
            this.gameController.getSoundHandler().playSound(new GuardianSound((EntityGuardian) entity));
        } else {
            entity.handleStatusUpdate(packetIn.getOpCode());
        }
    }
}
项目:Zombe-Modpack    文件:NetHandlerPlayClient.java   
/**
 * Invokes the entities' handleUpdateHealth method which is implemented in LivingBase (hurt/death),
 * MinecartMobSpawner (spawn delay), FireworkRocket & MinecartTNT (explosion), IronGolem (throwing,...), Witch
 * (spawn particles), Zombie (villager transformation), Animal (breeding mode particles), Horse (breeding/smoke
 * particles), Sheep (...), Tameable (...), Villager (particles for breeding mode, angry and happy), Wolf (...)
 */
public void handleEntityStatus(SPacketEntityStatus packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
    Entity entity = packetIn.getEntity(this.clientWorldController);

    if (entity != null)
    {
        if (packetIn.getOpCode() == 21)
        {
            this.gameController.getSoundHandler().playSound(new GuardianSound((EntityGuardian)entity));
        }
        else if (packetIn.getOpCode() == 35)
        {
            int i = 40;
            this.gameController.effectRenderer.func_191271_a(entity, EnumParticleTypes.TOTEM, 30);
            this.clientWorldController.playSound(entity.posX, entity.posY, entity.posZ, SoundEvents.field_191263_gW, entity.getSoundCategory(), 1.0F, 1.0F, false);

            if (entity == this.gameController.player)
            {
                this.gameController.entityRenderer.func_190565_a(new ItemStack(Items.field_190929_cY));
            }
        }
        else
        {
            entity.handleStatusUpdate(packetIn.getOpCode());
        }
    }
}
项目:Backmemed    文件:NetHandlerPlayClient.java   
/**
 * Invokes the entities' handleUpdateHealth method which is implemented in LivingBase (hurt/death),
 * MinecartMobSpawner (spawn delay), FireworkRocket & MinecartTNT (explosion), IronGolem (throwing,...), Witch
 * (spawn particles), Zombie (villager transformation), Animal (breeding mode particles), Horse (breeding/smoke
 * particles), Sheep (...), Tameable (...), Villager (particles for breeding mode, angry and happy), Wolf (...)
 */
public void handleEntityStatus(SPacketEntityStatus packetIn)
{
    PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController);
    Entity entity = packetIn.getEntity(this.clientWorldController);

    if (entity != null)
    {
        if (packetIn.getOpCode() == 21)
        {
            this.gameController.getSoundHandler().playSound(new GuardianSound((EntityGuardian)entity));
        }
        else if (packetIn.getOpCode() == 35)
        {
            int i = 40;
            this.gameController.effectRenderer.func_191271_a(entity, EnumParticleTypes.TOTEM, 30);
            this.clientWorldController.playSound(entity.posX, entity.posY, entity.posZ, SoundEvents.field_191263_gW, entity.getSoundCategory(), 1.0F, 1.0F, false);

            if (entity == this.gameController.player)
            {
                if (!Hacks.findMod(AntiTotemAnimation.class).isEnabled()) {
                    this.gameController.entityRenderer.func_190565_a(new ItemStack(Items.field_190929_cY));
                }
            }
        }
        else
        {
            entity.handleStatusUpdate(packetIn.getOpCode());
        }
    }
}