本文整理汇总了Java中net.minecraft.client.audio.MovingSoundMinecartRiding类的典型用法代码示例。如果您正苦于以下问题:Java MovingSoundMinecartRiding类的具体用法?Java MovingSoundMinecartRiding怎么用?Java MovingSoundMinecartRiding使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MovingSoundMinecartRiding类属于net.minecraft.client.audio包,在下文中一共展示了MovingSoundMinecartRiding类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: startRiding
import net.minecraft.client.audio.MovingSoundMinecartRiding; //导入依赖的package包/类
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;
}
}
开发者ID:NSExceptional,项目名称:Zombe-Modpack,代码行数:24,代码来源:EntityPlayerSP.java
示例2: mountEntity
import net.minecraft.client.audio.MovingSoundMinecartRiding; //导入依赖的package包/类
/**
* 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));
}
}
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:13,代码来源:EntityPlayerSP.java
示例3: mountEntity
import net.minecraft.client.audio.MovingSoundMinecartRiding; //导入依赖的package包/类
/**
* 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));
}
}
开发者ID:SkidJava,项目名称:BaseClient,代码行数:11,代码来源:EntityPlayerSP.java
示例4: mountEntity
import net.minecraft.client.audio.MovingSoundMinecartRiding; //导入依赖的package包/类
/**
* 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));
}
}
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:13,代码来源:EntityClientPlayerMP.java
示例5: mountEntity
import net.minecraft.client.audio.MovingSoundMinecartRiding; //导入依赖的package包/类
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_));
}
}
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:10,代码来源:EntityClientPlayerMP.java
注:本文中的net.minecraft.client.audio.MovingSoundMinecartRiding类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论