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 privatePositionedSoundInstance(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 PositionedSoundInstanceambient(SoundEvent sound)static PositionedSoundInstanceambient(SoundEvent sound, double double2, double double3, double double4)static PositionedSoundInstanceambient(SoundEvent sound, float pitch, float volume)static PositionedSoundInstancemaster(SoundEvent sound, float pitch)static PositionedSoundInstancemaster(SoundEvent sound, float pitch, float volume)static PositionedSoundInstancemusic(SoundEvent sound)static PositionedSoundInstancerecord(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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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)
-