本文整理汇总了Java中net.minecraft.client.audio.SoundEventAccessor类的典型用法代码示例。如果您正苦于以下问题:Java SoundEventAccessor类的具体用法?Java SoundEventAccessor怎么用?Java SoundEventAccessor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SoundEventAccessor类属于net.minecraft.client.audio包,在下文中一共展示了SoundEventAccessor类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: createAccessor
import net.minecraft.client.audio.SoundEventAccessor; //导入依赖的package包/类
@Nullable
@Override
public SoundEventAccessor createAccessor(@Nonnull SoundHandler handler) {
SoundEventAccessor soundEventAccessor = handler.getAccessor(this.soundLocation);
if (soundEventAccessor == null)
{
FirstAid.logger.warn("Missing sound for location " + this.soundLocation);
this.sound = SoundHandler.MISSING_SOUND;
}
else
{
this.sound = soundEventAccessor.cloneEntry();
}
return soundEventAccessor;
}
开发者ID:ichttt,项目名称:FirstAid,代码行数:18,代码来源:DebuffTimedSound.java
示例2: soundPlay
import net.minecraft.client.audio.SoundEventAccessor; //导入依赖的package包/类
public void soundPlay(ISound soundIn, SoundEventAccessor accessor)
{
if (accessor.getSubtitle() != null)
{
String s = accessor.getSubtitle().getFormattedText();
if (!this.subtitles.isEmpty())
{
for (GuiSubtitleOverlay.Subtitle guisubtitleoverlay$subtitle : this.subtitles)
{
if (guisubtitleoverlay$subtitle.getString().equals(s))
{
guisubtitleoverlay$subtitle.refresh(new Vec3d((double)soundIn.getXPosF(), (double)soundIn.getYPosF(), (double)soundIn.getZPosF()));
return;
}
}
}
this.subtitles.add(new GuiSubtitleOverlay.Subtitle(s, new Vec3d((double)soundIn.getXPosF(), (double)soundIn.getYPosF(), (double)soundIn.getZPosF())));
}
}
开发者ID:sudofox,项目名称:Backmemed,代码行数:22,代码来源:GuiSubtitleOverlay.java
示例3: addSubtitle
import net.minecraft.client.audio.SoundEventAccessor; //导入依赖的package包/类
/** Adds a subtitle to the list in the given colour. */
public void addSubtitle(ISound sound, SoundEventAccessor accessor,
int colour) {
if (sound != null && accessor.getSubtitle() != null) {
String s = accessor.getSubtitle().getFormattedText();
if (!this.subtitles.isEmpty()) {
for (Subtitle subtitle : this.subtitles) {
if (subtitle.getString().equals(s)) {
subtitle.refresh(new Vec3d(sound.getXPosF(),
sound.getYPosF(), sound.getZPosF()));
return;
}
}
}
this.subtitles.add(new Subtitle(s, new Vec3d(sound.getXPosF(),
sound.getYPosF(), sound.getZPosF()), colour));
}
}
开发者ID:JayAvery,项目名称:accesstweaks,代码行数:26,代码来源:Sounds.java
示例4: createAccessor
import net.minecraft.client.audio.SoundEventAccessor; //导入依赖的package包/类
@Override
public SoundEventAccessor createAccessor(SoundHandler handler) {
return sound.createAccessor(handler);
}
开发者ID:Alec-WAM,项目名称:CrystalMod,代码行数:5,代码来源:ClientEventHandler.java
示例5: createAccessor
import net.minecraft.client.audio.SoundEventAccessor; //导入依赖的package包/类
@Override
public SoundEventAccessor createAccessor(SoundHandler arg0) {
this.soundEvent = arg0.getAccessor(this.getSoundLocation());
this.sound = this.soundEvent == null ? SoundHandler.MISSING_SOUND : this.soundEvent.cloneEntry();
return this.soundEvent;
}
开发者ID:tiffit,项目名称:TaleCraft,代码行数:7,代码来源:ConstantSound.java
示例6: createAccessor
import net.minecraft.client.audio.SoundEventAccessor; //导入依赖的package包/类
@Override
public SoundEventAccessor createAccessor(SoundHandler handler) {
return sound.createAccessor(handler);
}
开发者ID:PrinceOfAmber,项目名称:Cyclic,代码行数:5,代码来源:BlockSoundSuppress.java
注:本文中的net.minecraft.client.audio.SoundEventAccessor类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论