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
FelderModifizierer und TypFeldBeschreibungstatic final intstatic final Stringstatic final floatstatic final floatstatic final floatstatic final Stringstatic final floatstatic final floatstatic final floatVon Klasse geerbte Felder net.minecraft.client.resources.sounds.AbstractSoundInstance
attenuation, delay, location, looping, pitch, relative, sound, source, volume, x, y, z -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungCustomSoundInstance(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 TypMethodeBeschreibungintfloatgetPitch()floatnet.minecraft.client.sounds.WeighedSoundEventsresolve(net.minecraft.client.sounds.SoundManager manager) static CustomSoundInstanceui(long soundId, SoundFile file, net.minecraft.sounds.SoundSource source, float pitch, float volume) static CustomSoundInstanceworld(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, toStringVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitVon 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:
getVolumein Schnittstellenet.minecraft.client.resources.sounds.SoundInstance- Setzt außer Kraft:
getVolumein Klassenet.minecraft.client.resources.sounds.AbstractSoundInstance
-
getPitch
public float getPitch()- Angegeben von:
getPitchin Schnittstellenet.minecraft.client.resources.sounds.SoundInstance- Setzt außer Kraft:
getPitchin Klassenet.minecraft.client.resources.sounds.AbstractSoundInstance
-
resolve
public net.minecraft.client.sounds.WeighedSoundEvents resolve(net.minecraft.client.sounds.SoundManager manager) - Angegeben von:
resolvein Schnittstellenet.minecraft.client.resources.sounds.SoundInstance- Setzt außer Kraft:
resolvein Klassenet.minecraft.client.resources.sounds.AbstractSoundInstance
-