Package de.mrjulsen.dragnsounds.core.ext
Klasse CustomSoundInstance
java.lang.Object
net.minecraft.client.resources.sounds.AbstractSoundInstance
de.mrjulsen.dragnsounds.core.ext.CustomSoundInstance
- Alle implementierten Schnittstellen:
net.minecraft.client.resources.sounds.SoundInstance
public class CustomSoundInstance
extends net.minecraft.client.resources.sounds.AbstractSoundInstance
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen net.minecraft.client.resources.sounds.SoundInstance
net.minecraft.client.resources.sounds.SoundInstance.Attenuation
-
Feldübersicht
Modifizierer und TypFeldBeschreibungstatic final int
static final String
static final float
static final float
static final float
static final String
static final float
static final float
static final float
Von Klasse geerbte Felder net.minecraft.client.resources.sounds.AbstractSoundInstance
attenuation, delay, location, looping, pitch, relative, sound, source, volume, x, y, z
-
Konstruktorübersicht
KonstruktorBeschreibungCustomSoundInstance
(long soundId, SoundFile file, net.minecraft.sounds.SoundSource source, float volume, float pitch, boolean looping, int delay, net.minecraft.client.resources.sounds.SoundInstance.Attenuation attenuation, double x, double y, double z, boolean relative, int attenuationDistance) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungint
float
getPitch()
float
net.minecraft.client.sounds.WeighedSoundEvents
resolve
(net.minecraft.client.sounds.SoundManager manager) static CustomSoundInstance
ui
(long soundId, SoundFile file, net.minecraft.sounds.SoundSource source, float pitch, float volume) static CustomSoundInstance
world
(long soundId, SoundFile file, net.minecraft.sounds.SoundSource source, float pitch, float volume, net.minecraft.world.phys.Vec3 position, boolean relative, int attenuationDistance) Von Klasse geerbte Methoden net.minecraft.client.resources.sounds.AbstractSoundInstance
getAttenuation, getDelay, getLocation, getSound, getSource, getX, getY, getZ, isLooping, isRelative, toString
Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden net.minecraft.client.resources.sounds.SoundInstance
canPlaySound, canStartSilent
-
Felddetails
-
CUSTOM_SOUND_FILENAME_ROOT
- Siehe auch:
-
SOUND_LOCATION_ROOT
- Siehe auch:
-
PITCH_MIN
public static final float PITCH_MIN- Siehe auch:
-
PITCH_MAX
public static final float PITCH_MAX- Siehe auch:
-
PITCH_DEFAULT
public static final float PITCH_DEFAULT- Siehe auch:
-
VOLUME_MIN
public static final float VOLUME_MIN- Siehe auch:
-
VOLUME_MAX
public static final float VOLUME_MAX- Siehe auch:
-
VOLUME_DEFAULT
public static final float VOLUME_DEFAULT- Siehe auch:
-
ATTENUATION_DISTANCE_DEFAULT
public static final int ATTENUATION_DISTANCE_DEFAULT- Siehe auch:
-
-
Konstruktordetails
-
CustomSoundInstance
public CustomSoundInstance(long soundId, SoundFile file, net.minecraft.sounds.SoundSource source, float volume, float pitch, boolean looping, int delay, net.minecraft.client.resources.sounds.SoundInstance.Attenuation attenuation, double x, double y, double z, boolean relative, int attenuationDistance)
-
-
Methodendetails
-
getAttenuationDistance
public int getAttenuationDistance() -
ui
public static CustomSoundInstance ui(long soundId, SoundFile file, net.minecraft.sounds.SoundSource source, float pitch, float volume) -
world
public static CustomSoundInstance world(long soundId, SoundFile file, net.minecraft.sounds.SoundSource source, float pitch, float volume, net.minecraft.world.phys.Vec3 position, boolean relative, int attenuationDistance) -
getVolume
public float getVolume()- Angegeben von:
getVolume
in Schnittstellenet.minecraft.client.resources.sounds.SoundInstance
- Setzt außer Kraft:
getVolume
in Klassenet.minecraft.client.resources.sounds.AbstractSoundInstance
-
getPitch
public float getPitch()- Angegeben von:
getPitch
in Schnittstellenet.minecraft.client.resources.sounds.SoundInstance
- Setzt außer Kraft:
getPitch
in Klassenet.minecraft.client.resources.sounds.AbstractSoundInstance
-
resolve
public net.minecraft.client.sounds.WeighedSoundEvents resolve(net.minecraft.client.sounds.SoundManager manager) - Angegeben von:
resolve
in Schnittstellenet.minecraft.client.resources.sounds.SoundInstance
- Setzt außer Kraft:
resolve
in Klassenet.minecraft.client.resources.sounds.AbstractSoundInstance
-