public class SoundEventAccessorComposite extends java.lang.Object implements ISoundEventAccessor<SoundPoolEntry>
Modifier and Type | Field and Description |
---|---|
private SoundCategory |
category |
private double |
eventPitch |
private double |
eventVolume |
private java.util.Random |
rnd |
private ResourceLocation |
soundLocation |
private java.util.List<ISoundEventAccessor<SoundPoolEntry>> |
soundPool |
Constructor and Description |
---|
SoundEventAccessorComposite(ResourceLocation soundLocation,
double pitch,
double volume,
SoundCategory category) |
Modifier and Type | Method and Description |
---|---|
void |
addSoundToEventPool(ISoundEventAccessor<SoundPoolEntry> sound) |
SoundPoolEntry |
cloneEntry() |
SoundCategory |
getSoundCategory() |
ResourceLocation |
getSoundEventLocation() |
int |
getWeight() |
private final java.util.List<ISoundEventAccessor<SoundPoolEntry>> soundPool
private final java.util.Random rnd
private final ResourceLocation soundLocation
private final SoundCategory category
private double eventPitch
private double eventVolume
public SoundEventAccessorComposite(ResourceLocation soundLocation, double pitch, double volume, SoundCategory category)
public int getWeight()
getWeight
in interface ISoundEventAccessor<SoundPoolEntry>
public SoundPoolEntry cloneEntry()
cloneEntry
in interface ISoundEventAccessor<SoundPoolEntry>
public void addSoundToEventPool(ISoundEventAccessor<SoundPoolEntry> sound)
public ResourceLocation getSoundEventLocation()
public SoundCategory getSoundCategory()