public class SoundEventAccessor extends java.lang.Object implements ISoundEventAccessor<Sound>
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<ISoundEventAccessor<Sound>> |
accessorList |
private ResourceLocation |
location |
private java.util.Random |
rnd |
private ITextComponent |
subtitle |
| Constructor and Description |
|---|
SoundEventAccessor(ResourceLocation locationIn,
java.lang.String subtitleIn) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSound(ISoundEventAccessor<Sound> accessor) |
Sound |
cloneEntry() |
void |
enqueuePreload(SoundEngine engine) |
ITextComponent |
getSubtitle() |
int |
getWeight() |
private final java.util.List<ISoundEventAccessor<Sound>> accessorList
private final java.util.Random rnd
private final ResourceLocation location
private final ITextComponent subtitle
public SoundEventAccessor(ResourceLocation locationIn, @Nullable java.lang.String subtitleIn)
public int getWeight()
getWeight in interface ISoundEventAccessor<Sound>public Sound cloneEntry()
cloneEntry in interface ISoundEventAccessor<Sound>public void addSound(ISoundEventAccessor<Sound> accessor)
@Nullable public ITextComponent getSubtitle()
public void enqueuePreload(SoundEngine engine)
enqueuePreload in interface ISoundEventAccessor<Sound>