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

项目:DecompiledMinecraft    文件:WorldClient.java   
/**
 * Called when an entity is spawned in the world. This includes players.
 */
public boolean spawnEntityInWorld(Entity entityIn)
{
    boolean flag = super.spawnEntityInWorld(entityIn);
    this.entityList.add(entityIn);

    if (!flag)
    {
        this.entitySpawnQueue.add(entityIn);
    }
    else if (entityIn instanceof EntityMinecart)
    {
        this.mc.getSoundHandler().playSound(new MovingSoundMinecart((EntityMinecart)entityIn));
    }

    return flag;
}
项目:BaseClient    文件:WorldClient.java   
/**
 * Called when an entity is spawned in the world. This includes players.
 */
public boolean spawnEntityInWorld(Entity entityIn)
{
    boolean flag = super.spawnEntityInWorld(entityIn);
    this.entityList.add(entityIn);

    if (!flag)
    {
        this.entitySpawnQueue.add(entityIn);
    }
    else if (entityIn instanceof EntityMinecart)
    {
        this.mc.getSoundHandler().playSound(new MovingSoundMinecart((EntityMinecart)entityIn));
    }

    return flag;
}
项目:BaseClient    文件:WorldClient.java   
/**
 * Called when an entity is spawned in the world. This includes players.
 */
public boolean spawnEntityInWorld(Entity entityIn)
{
    boolean flag = super.spawnEntityInWorld(entityIn);
    this.entityList.add(entityIn);

    if (!flag)
    {
        this.entitySpawnQueue.add(entityIn);
    }
    else if (entityIn instanceof EntityMinecart)
    {
        this.mc.getSoundHandler().playSound(new MovingSoundMinecart((EntityMinecart)entityIn));
    }

    return flag;
}
项目:Backmemed    文件:WorldClient.java   
/**
 * Called when an entity is spawned in the world. This includes players.
 */
public boolean spawnEntityInWorld(Entity entityIn)
{
    boolean flag = super.spawnEntityInWorld(entityIn);
    this.entityList.add(entityIn);

    if (flag)
    {
        if (entityIn instanceof EntityMinecart)
        {
            this.mc.getSoundHandler().playSound(new MovingSoundMinecart((EntityMinecart)entityIn));
        }
    }
    else
    {
        this.entitySpawnQueue.add(entityIn);
    }

    return flag;
}
项目:CustomWorldGen    文件:WorldClient.java   
/**
 * Called when an entity is spawned in the world. This includes players.
 */
public boolean spawnEntityInWorld(Entity entityIn)
{
    boolean flag = super.spawnEntityInWorld(entityIn);
    this.entityList.add(entityIn);

    if (flag)
    {
        if (entityIn instanceof EntityMinecart)
        {
            this.mc.getSoundHandler().playSound(new MovingSoundMinecart((EntityMinecart)entityIn));
        }
    }
    else
    {
        this.entitySpawnQueue.add(entityIn);
    }

    return flag;
}
项目:Resilience-Client-Source    文件:WorldClient.java   
/**
 * Called to place all entities as part of a world
 */
public boolean spawnEntityInWorld(Entity par1Entity)
{
    boolean var2 = super.spawnEntityInWorld(par1Entity);
    this.entityList.add(par1Entity);

    if (!var2)
    {
        this.entitySpawnQueue.add(par1Entity);
    }
    else if (par1Entity instanceof EntityMinecart)
    {
        this.mc.getSoundHandler().playSound(new MovingSoundMinecart((EntityMinecart)par1Entity));
    }

    return var2;
}
项目:ExpandedRailsMod    文件:WorldClient.java   
/**
 * Called when an entity is spawned in the world. This includes players.
 */
public boolean spawnEntityInWorld(Entity entityIn)
{
    boolean flag = super.spawnEntityInWorld(entityIn);
    this.entityList.add(entityIn);

    if (flag)
    {
        if (entityIn instanceof EntityMinecart)
        {
            this.mc.getSoundHandler().playSound(new MovingSoundMinecart((EntityMinecart)entityIn));
        }
    }
    else
    {
        this.entitySpawnQueue.add(entityIn);
    }

    return flag;
}
项目:Cauldron    文件:WorldClient.java   
public boolean spawnEntityInWorld(Entity p_72838_1_)
{
    boolean flag = super.spawnEntityInWorld(p_72838_1_);
    this.entityList.add(p_72838_1_);

    if (!flag)
    {
        this.entitySpawnQueue.add(p_72838_1_);
    }
    else if (p_72838_1_ instanceof EntityMinecart)
    {
        this.mc.getSoundHandler().playSound(new MovingSoundMinecart((EntityMinecart)p_72838_1_));
    }

    return flag;
}
项目:Cauldron    文件:WorldClient.java   
public boolean spawnEntityInWorld(Entity p_72838_1_)
{
    boolean flag = super.spawnEntityInWorld(p_72838_1_);
    this.entityList.add(p_72838_1_);

    if (!flag)
    {
        this.entitySpawnQueue.add(p_72838_1_);
    }
    else if (p_72838_1_ instanceof EntityMinecart)
    {
        this.mc.getSoundHandler().playSound(new MovingSoundMinecart((EntityMinecart)p_72838_1_));
    }

    return flag;
}