public class SoundEventAccessor extends java.lang.Object implements ISoundEventAccessor<Sound>
Modifier and Type | Field and Description |
---|---|
private java.util.List<ISoundEventAccessor<Sound>> |
list |
private ResourceLocation |
location |
private java.util.Random |
random |
private ITextComponent |
subtitle |
Constructor and Description |
---|
SoundEventAccessor(ResourceLocation p_i46521_1_,
java.lang.String p_i46521_2_) |
Modifier and Type | Method and Description |
---|---|
void |
addSound(ISoundEventAccessor<Sound> p_188715_1_) |
Sound |
getSound() |
ITextComponent |
getSubtitle() |
int |
getWeight() |
void |
preloadIfRequired(SoundEngine p_217867_1_) |
private final java.util.List<ISoundEventAccessor<Sound>> list
private final java.util.Random random
private final ResourceLocation location
@Nullable private final ITextComponent subtitle
public SoundEventAccessor(ResourceLocation p_i46521_1_, @Nullable java.lang.String p_i46521_2_)
public int getWeight()
getWeight
in interface ISoundEventAccessor<Sound>
public Sound getSound()
getSound
in interface ISoundEventAccessor<Sound>
public void addSound(ISoundEventAccessor<Sound> p_188715_1_)
@Nullable public ITextComponent getSubtitle()
public void preloadIfRequired(SoundEngine p_217867_1_)
preloadIfRequired
in interface ISoundEventAccessor<Sound>