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

项目:Zombe-Modpack    文件:EntityPlayerSP.java   
public boolean startRiding(Entity entityIn, boolean force)
{
    if (!super.startRiding(entityIn, force))
    {
        return false;
    }
    else
    {
        if (entityIn instanceof EntityMinecart)
        {
            this.mc.getSoundHandler().playSound(new MovingSoundMinecartRiding(this, (EntityMinecart)entityIn));
        }

        if (entityIn instanceof EntityBoat)
        {
            this.prevRotationYaw = entityIn.rotationYaw;
            this.rotationYaw = entityIn.rotationYaw;
            this.setRotationYawHead(entityIn.rotationYaw);
        }

        return true;
    }
}
项目:Backmemed    文件:EntityPlayerSP.java   
public boolean startRiding(Entity entityIn, boolean force)
{
    if (!super.startRiding(entityIn, force))
    {
        return false;
    }
    else
    {
        if (entityIn instanceof EntityMinecart)
        {
            this.mc.getSoundHandler().playSound(new MovingSoundMinecartRiding(this, (EntityMinecart)entityIn));
        }

        if (entityIn instanceof EntityBoat)
        {
            this.prevRotationYaw = entityIn.rotationYaw;
            this.rotationYaw = entityIn.rotationYaw;
            this.setRotationYawHead(entityIn.rotationYaw);
        }

        return true;
    }
}
项目:CustomWorldGen    文件:EntityPlayerSP.java   
public boolean startRiding(Entity entityIn, boolean force)
{
    if (!super.startRiding(entityIn, force))
    {
        return false;
    }
    else
    {
        if (entityIn instanceof EntityMinecart)
        {
            this.mc.getSoundHandler().playSound(new MovingSoundMinecartRiding(this, (EntityMinecart)entityIn));
        }

        if (entityIn instanceof EntityBoat)
        {
            this.prevRotationYaw = entityIn.rotationYaw;
            this.rotationYaw = entityIn.rotationYaw;
            this.setRotationYawHead(entityIn.rotationYaw);
        }

        return true;
    }
}
项目:ExpandedRailsMod    文件:EntityPlayerSP.java   
public boolean startRiding(Entity entityIn, boolean force)
{
    if (!super.startRiding(entityIn, force))
    {
        return false;
    }
    else
    {
        if (entityIn instanceof EntityMinecart)
        {
            this.mc.getSoundHandler().playSound(new MovingSoundMinecartRiding(this, (EntityMinecart)entityIn));
        }

        if (entityIn instanceof EntityBoat)
        {
            this.prevRotationYaw = entityIn.rotationYaw;
            this.rotationYaw = entityIn.rotationYaw;
            this.setRotationYawHead(entityIn.rotationYaw);
        }

        return true;
    }
}
项目:DecompiledMinecraft    文件:EntityPlayerSP.java   
/**
 * Called when a player mounts an entity. e.g. mounts a pig, mounts a boat.
 */
public void mountEntity(Entity entityIn)
{
    super.mountEntity(entityIn);

    if (entityIn instanceof EntityMinecart)
    {
        this.mc.getSoundHandler().playSound(new MovingSoundMinecartRiding(this, (EntityMinecart)entityIn));
    }
}
项目:BaseClient    文件:EntityPlayerSP.java   
/**
 * Called when a player mounts an entity. e.g. mounts a pig, mounts a boat.
 */
public void mountEntity(Entity entityIn)
{
    super.mountEntity(entityIn);

    if (entityIn instanceof EntityMinecart)
    {
        this.mc.getSoundHandler().playSound(new MovingSoundMinecartRiding(this, (EntityMinecart)entityIn));
    }
}
项目:BaseClient    文件:EntityPlayerSP.java   
/**
 * Called when a player mounts an entity. e.g. mounts a pig, mounts a boat.
 */
public void mountEntity(Entity entityIn) {
    super.mountEntity(entityIn);

    if (entityIn instanceof EntityMinecart) {
        this.mc.getSoundHandler().playSound(new MovingSoundMinecartRiding(this, (EntityMinecart) entityIn));
    }
}
项目:Resilience-Client-Source    文件:EntityClientPlayerMP.java   
/**
 * Called when a player mounts an entity. e.g. mounts a pig, mounts a boat.
 */
public void mountEntity(Entity par1Entity)
{
    super.mountEntity(par1Entity);

    if (par1Entity instanceof EntityMinecart)
    {
        this.mc.getSoundHandler().playSound(new MovingSoundMinecartRiding(this, (EntityMinecart)par1Entity));
    }
}
项目:Cauldron    文件:EntityClientPlayerMP.java   
public void mountEntity(Entity p_70078_1_)
{
    super.mountEntity(p_70078_1_);

    if (p_70078_1_ instanceof EntityMinecart)
    {
        this.mc.getSoundHandler().playSound(new MovingSoundMinecartRiding(this, (EntityMinecart)p_70078_1_));
    }
}
项目:Cauldron    文件:EntityClientPlayerMP.java   
public void mountEntity(Entity p_70078_1_)
{
    super.mountEntity(p_70078_1_);

    if (p_70078_1_ instanceof EntityMinecart)
    {
        this.mc.getSoundHandler().playSound(new MovingSoundMinecartRiding(this, (EntityMinecart)p_70078_1_));
    }
}