@Environment(value=CLIENT) public class PositionedSoundInstance extends AbstractSoundInstance
SoundInstance.AttenuationType
attenuationType, category, field_18935, id, looping, pitch, repeat, repeatDelay, sound, volume, x, y, z
Modifier | Constructor and Description |
---|---|
|
PositionedSoundInstance(Identifier id,
SoundCategory category,
float volume,
float pitch,
boolean repeat,
int repeatDelay,
SoundInstance.AttenuationType attenuationType,
float x,
float y,
float z,
boolean looping) |
|
PositionedSoundInstance(SoundEvent sound,
SoundCategory category,
float volume,
float pitch,
BlockPos pos) |
private |
PositionedSoundInstance(SoundEvent sound,
SoundCategory category,
float volume,
float pitch,
boolean repeat,
int repeatDelay,
SoundInstance.AttenuationType attenuationType,
float x,
float y,
float z) |
|
PositionedSoundInstance(SoundEvent sound,
SoundCategory category,
float volume,
float pitch,
float x,
float y,
float z) |
Modifier and Type | Method and Description |
---|---|
static PositionedSoundInstance |
ambient(SoundEvent sound) |
static PositionedSoundInstance |
ambient(SoundEvent sound,
float pitch,
float volume) |
static PositionedSoundInstance |
ambient(SoundEvent sound,
float x,
float y,
float z) |
static PositionedSoundInstance |
master(SoundEvent sound,
float pitch) |
static PositionedSoundInstance |
master(SoundEvent sound,
float pitch,
float volume) |
static PositionedSoundInstance |
music(SoundEvent sound) |
static PositionedSoundInstance |
record(SoundEvent sound,
float x,
float y,
float z) |
getAttenuationType, getCategory, getId, getPitch, getRepeatDelay, getSound, getSoundSet, getVolume, getX, getY, getZ, isLooping, isRepeatable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canPlay, shouldAlwaysPlay
public PositionedSoundInstance(SoundEvent sound, SoundCategory category, float volume, float pitch, BlockPos pos)
public PositionedSoundInstance(SoundEvent sound, SoundCategory category, float volume, float pitch, float x, float y, float z)
private PositionedSoundInstance(SoundEvent sound, SoundCategory category, float volume, float pitch, boolean repeat, int repeatDelay, SoundInstance.AttenuationType attenuationType, float x, float y, float z)
public PositionedSoundInstance(Identifier id, SoundCategory category, float volume, float pitch, boolean repeat, int repeatDelay, SoundInstance.AttenuationType attenuationType, float x, float y, float z, boolean looping)
public static PositionedSoundInstance master(SoundEvent sound, float pitch)
public static PositionedSoundInstance master(SoundEvent sound, float pitch, float volume)
public static PositionedSoundInstance music(SoundEvent sound)
public static PositionedSoundInstance record(SoundEvent sound, float x, float y, float z)
public static PositionedSoundInstance ambient(SoundEvent sound, float pitch, float volume)
public static PositionedSoundInstance ambient(SoundEvent sound)
public static PositionedSoundInstance ambient(SoundEvent sound, float x, float y, float z)