接口 SoundInstance
-
- 所有已知子接口:
TickableSoundInstance
- 所有已知实现类:
AbstractBeeSoundInstance,AbstractSoundInstance,AggressiveBeeSoundInstance,AmbientSoundLoops.MusicLoop,AmbientSoundLoops.Underwater,BiomeEffectSoundPlayer.MusicLoop,ElytraSoundInstance,EntityTrackingSoundInstance,GuardianAttackSoundInstance,MinecartInsideSoundInstance,MovingMinecartSoundInstance,MovingSoundInstance,PassiveBeeSoundInstance,PositionedSoundInstance
@Environment(CLIENT) public interface SoundInstance
- Mappings:
Namespace Name official eyuintermediary net/minecraft/class_1113named net/minecraft/client/sound/SoundInstance
-
-
嵌套类概要
嵌套类 修饰符和类型 接口 说明 static classSoundInstance.AttenuationType
-
方法概要
所有方法 实例方法 抽象方法 默认方法 修饰符和类型 方法 说明 default booleancanPlay()SoundInstance.AttenuationTypegetAttenuationType()SoundCategorygetCategory()IdentifiergetId()floatgetPitch()intgetRepeatDelay()SoundgetSound()@Nullable WeightedSoundSetgetSoundSet(SoundManager soundManager)floatgetVolume()doublegetX()doublegetY()doublegetZ()booleanisLooping()booleanisRepeatable()default booleanshouldAlwaysPlay()
-
-
-
方法详细资料
-
getId
Identifier getId()
- Mappings:
Namespace Name Mixin selector official aLeyu;a()Lwp;intermediary method_4775Lnet/minecraft/class_1113;method_4775()Lnet/minecraft/class_2960;named getIdLnet/minecraft/client/sound/SoundInstance;getId()Lnet/minecraft/util/Identifier;
-
getSoundSet
@Nullable @Nullable WeightedSoundSet getSoundSet(SoundManager soundManager)
- Mappings:
Namespace Name Mixin selector official aLeyu;a(Lezu;)Lezv;intermediary method_4783Lnet/minecraft/class_1113;method_4783(Lnet/minecraft/class_1144;)Lnet/minecraft/class_1146;named getSoundSetLnet/minecraft/client/sound/SoundInstance;getSoundSet(Lnet/minecraft/client/sound/SoundManager;)Lnet/minecraft/client/sound/WeightedSoundSet;
-
getSound
Sound getSound()
- Mappings:
Namespace Name Mixin selector official bLeyu;b()Leyr;intermediary method_4776Lnet/minecraft/class_1113;method_4776()Lnet/minecraft/class_1111;named getSoundLnet/minecraft/client/sound/SoundInstance;getSound()Lnet/minecraft/client/sound/Sound;
-
getCategory
SoundCategory getCategory()
- Mappings:
Namespace Name Mixin selector official cLeyu;c()Laex;intermediary method_4774Lnet/minecraft/class_1113;method_4774()Lnet/minecraft/class_3419;named getCategoryLnet/minecraft/client/sound/SoundInstance;getCategory()Lnet/minecraft/sound/SoundCategory;
-
isRepeatable
boolean isRepeatable()
- Mappings:
Namespace Name Mixin selector official dLeyu;d()Zintermediary method_4786Lnet/minecraft/class_1113;method_4786()Znamed isRepeatableLnet/minecraft/client/sound/SoundInstance;isRepeatable()Z
-
isLooping
boolean isLooping()
- Mappings:
Namespace Name Mixin selector official lLeyu;l()Zintermediary method_4787Lnet/minecraft/class_1113;method_4787()Znamed isLoopingLnet/minecraft/client/sound/SoundInstance;isLooping()Z
-
getRepeatDelay
int getRepeatDelay()
- Mappings:
Namespace Name Mixin selector official eLeyu;e()Iintermediary method_4780Lnet/minecraft/class_1113;method_4780()Inamed getRepeatDelayLnet/minecraft/client/sound/SoundInstance;getRepeatDelay()I
-
getVolume
float getVolume()
- Mappings:
Namespace Name Mixin selector official fLeyu;f()Fintermediary method_4781Lnet/minecraft/class_1113;method_4781()Fnamed getVolumeLnet/minecraft/client/sound/SoundInstance;getVolume()F
-
getPitch
float getPitch()
- Mappings:
Namespace Name Mixin selector official gLeyu;g()Fintermediary method_4782Lnet/minecraft/class_1113;method_4782()Fnamed getPitchLnet/minecraft/client/sound/SoundInstance;getPitch()F
-
getX
double getX()
- Mappings:
Namespace Name Mixin selector official hLeyu;h()Dintermediary method_4784Lnet/minecraft/class_1113;method_4784()Dnamed getXLnet/minecraft/client/sound/SoundInstance;getX()D
-
getY
double getY()
- Mappings:
Namespace Name Mixin selector official iLeyu;i()Dintermediary method_4779Lnet/minecraft/class_1113;method_4779()Dnamed getYLnet/minecraft/client/sound/SoundInstance;getY()D
-
getZ
double getZ()
- Mappings:
Namespace Name Mixin selector official jLeyu;j()Dintermediary method_4778Lnet/minecraft/class_1113;method_4778()Dnamed getZLnet/minecraft/client/sound/SoundInstance;getZ()D
-
getAttenuationType
SoundInstance.AttenuationType getAttenuationType()
- Mappings:
Namespace Name Mixin selector official kLeyu;k()Leyu$a;intermediary method_4777Lnet/minecraft/class_1113;method_4777()Lnet/minecraft/class_1113$class_1114;named getAttenuationTypeLnet/minecraft/client/sound/SoundInstance;getAttenuationType()Lnet/minecraft/client/sound/SoundInstance$AttenuationType;
-
shouldAlwaysPlay
default boolean shouldAlwaysPlay()
- Mappings:
Namespace Name Mixin selector official rLeyu;r()Zintermediary method_4785Lnet/minecraft/class_1113;method_4785()Znamed shouldAlwaysPlayLnet/minecraft/client/sound/SoundInstance;shouldAlwaysPlay()Z
-
canPlay
default boolean canPlay()
- Mappings:
Namespace Name Mixin selector official sLeyu;s()Zintermediary method_26273Lnet/minecraft/class_1113;method_26273()Znamed canPlayLnet/minecraft/client/sound/SoundInstance;canPlay()Z
-
-