public class Sound extends java.lang.Object implements ISoundEventAccessor<Sound>
修飾子とタイプ | クラスと説明 |
---|---|
static class |
Sound.Type |
コンストラクタと説明 |
---|
Sound(java.lang.String nameIn,
float volumeIn,
float pitchIn,
int weightIn,
Sound.Type typeIn,
boolean streamingIn,
boolean preloadIn,
int attenuationDistanceIn) |
修飾子とタイプ | メソッドと説明 |
---|---|
Sound |
cloneEntry() |
void |
enqueuePreload(SoundEngine engine) |
int |
getAttenuationDistance() |
float |
getPitch() |
ResourceLocation |
getSoundAsOggLocation() |
ResourceLocation |
getSoundLocation() |
Sound.Type |
getType() |
float |
getVolume() |
int |
getWeight() |
boolean |
isStreaming() |
boolean |
shouldPreload() |
public Sound(java.lang.String nameIn, float volumeIn, float pitchIn, int weightIn, Sound.Type typeIn, boolean streamingIn, boolean preloadIn, int attenuationDistanceIn)
public ResourceLocation getSoundLocation()
public ResourceLocation getSoundAsOggLocation()
public float getVolume()
public float getPitch()
public int getWeight()
getWeight
インタフェース内 ISoundEventAccessor<Sound>
public Sound cloneEntry()
cloneEntry
インタフェース内 ISoundEventAccessor<Sound>
public void enqueuePreload(SoundEngine engine)
enqueuePreload
インタフェース内 ISoundEventAccessor<Sound>
public Sound.Type getType()
public boolean isStreaming()
public boolean shouldPreload()
public int getAttenuationDistance()