Package net.minecraft.client.sound
Class PositionedSoundInstance
java.lang.Object
net.minecraft.client.sound.AbstractSoundInstance
net.minecraft.client.sound.PositionedSoundInstance
- All Implemented Interfaces:
SoundInstance
@Environment(CLIENT) public class PositionedSoundInstance extends AbstractSoundInstance
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.sound.SoundInstance
SoundInstance.AttenuationType
-
Field Summary
Fields inherited from class net.minecraft.client.sound.AbstractSoundInstance
attenuationType, category, field_18935, id, looping, pitch, repeat, repeatDelay, sound, volume, x, y, z
-
Constructor Summary
Constructors Modifier Constructor Description 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)
PositionedSoundInstance(SoundEvent sound, SoundCategory category, float volume, float pitch, BlockPos pos)
PositionedSoundInstance(Identifier id, SoundCategory category, float volume, float pitch, boolean repeat, int repeatDelay, SoundInstance.AttenuationType attenuationType, double double2, double double3, double double4, boolean bool)
-
Method Summary
Modifier and Type Method 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)
Methods inherited from class net.minecraft.client.sound.AbstractSoundInstance
getAttenuationType, getCategory, getId, getPitch, getRepeatDelay, getSound, getSoundSet, getVolume, getX, getY, getZ, isLooping, isRepeatable, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.client.sound.SoundInstance
canPlay, shouldAlwaysPlay
-
Constructor Details
-
PositionedSoundInstance
public PositionedSoundInstance(SoundEvent sound, SoundCategory category, float volume, float pitch, BlockPos pos) -
PositionedSoundInstance
public PositionedSoundInstance(SoundEvent sound, SoundCategory category, float volume, float pitch, double double2, double double3, double double4) -
PositionedSoundInstance
private PositionedSoundInstance(SoundEvent sound, SoundCategory category, float volume, float pitch, boolean repeat, int repeatDelay, SoundInstance.AttenuationType attenuationType, double double2, double double3, double double4) -
PositionedSoundInstance
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)
-
-
Method Details
-
master
-
master
-
music
-
record
public static PositionedSoundInstance record(SoundEvent sound, double double2, double double3, double double4) -
ambient
-
ambient
-
ambient
public static PositionedSoundInstance ambient(SoundEvent sound, double double2, double double3, double double4)
-