@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,
double double2,
double double3,
double double4,
boolean bool) |
|
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,
double double2,
double double3,
double double4) |
|
PositionedSoundInstance(SoundEvent sound,
SoundCategory category,
float volume,
float pitch,
double double2,
double double3,
double double4) |
Modifier and Type | Method and Description |
---|---|
static PositionedSoundInstance |
ambient(SoundEvent sound) |
static PositionedSoundInstance |
ambient(SoundEvent sound,
double double2,
double double3,
double double4) |
static PositionedSoundInstance |
ambient(SoundEvent sound,
float pitch,
float volume) |
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,
double double2,
double double3,
double double4) |
getAttenuationType, getCategory, getId, getPitch, getRepeatDelay, getSound, getSoundSet, getVolume, getX, getY, getZ, isLooping, isRepeatable, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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, double double2, double double3, double double4)
private PositionedSoundInstance(SoundEvent sound, SoundCategory category, float volume, float pitch, boolean repeat, int repeatDelay, SoundInstance.AttenuationType attenuationType, double double2, double double3, double double4)
public PositionedSoundInstance(Identifier id, SoundCategory category, float volume, float pitch, boolean repeat, int repeatDelay, SoundInstance.AttenuationType attenuationType, double double2, double double3, double double4, boolean bool)
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, double double2, double double3, double double4)
public static PositionedSoundInstance ambient(SoundEvent sound, float pitch, float volume)
public static PositionedSoundInstance ambient(SoundEvent sound)
public static PositionedSoundInstance ambient(SoundEvent sound, double double2, double double3, double double4)