Package net.minecraft.client.audio
Class SoundEventAccessor
- java.lang.Object
-
- net.minecraft.client.audio.SoundEventAccessor
-
- All Implemented Interfaces:
ISoundEventAccessor<Sound>
public class SoundEventAccessor extends java.lang.Object implements ISoundEventAccessor<Sound>
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<ISoundEventAccessor<Sound>>
list
private ResourceLocation
location
private java.util.Random
random
private ITextComponent
subtitle
-
Constructor Summary
Constructors Constructor Description SoundEventAccessor(ResourceLocation p_i46521_1_, java.lang.String p_i46521_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSound(ISoundEventAccessor<Sound> p_188715_1_)
Sound
getSound()
ITextComponent
getSubtitle()
int
getWeight()
void
preloadIfRequired(SoundEngine p_217867_1_)
-
-
-
Field Detail
-
list
private final java.util.List<ISoundEventAccessor<Sound>> list
-
random
private final java.util.Random random
-
location
private final ResourceLocation location
-
subtitle
@Nullable private final ITextComponent subtitle
-
-
Constructor Detail
-
SoundEventAccessor
public SoundEventAccessor(ResourceLocation p_i46521_1_, @Nullable java.lang.String p_i46521_2_)
-
-
Method Detail
-
getWeight
public int getWeight()
- Specified by:
getWeight
in interfaceISoundEventAccessor<Sound>
-
getSound
public Sound getSound()
- Specified by:
getSound
in interfaceISoundEventAccessor<Sound>
-
addSound
public void addSound(ISoundEventAccessor<Sound> p_188715_1_)
-
getSubtitle
@Nullable public ITextComponent getSubtitle()
-
preloadIfRequired
public void preloadIfRequired(SoundEngine p_217867_1_)
- Specified by:
preloadIfRequired
in interfaceISoundEventAccessor<Sound>
-
-