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

    Felder
    Modifizierer und Typ
    Feld
    Beschreibung
    static 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

    Konstruktoren
    Konstruktor
    Beschreibung
    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)
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    int
     
    float
     
    float
     
    net.minecraft.client.sounds.WeighedSoundEvents
    resolve(net.minecraft.client.sounds.SoundManager manager)
     
    ui(long soundId, SoundFile file, net.minecraft.sounds.SoundSource source, float pitch, float volume)
     
    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

  • 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 Schnittstelle net.minecraft.client.resources.sounds.SoundInstance
      Setzt außer Kraft:
      getVolume in Klasse net.minecraft.client.resources.sounds.AbstractSoundInstance
    • getPitch

      public float getPitch()
      Angegeben von:
      getPitch in Schnittstelle net.minecraft.client.resources.sounds.SoundInstance
      Setzt außer Kraft:
      getPitch in Klasse net.minecraft.client.resources.sounds.AbstractSoundInstance
    • resolve

      public net.minecraft.client.sounds.WeighedSoundEvents resolve(net.minecraft.client.sounds.SoundManager manager)
      Angegeben von:
      resolve in Schnittstelle net.minecraft.client.resources.sounds.SoundInstance
      Setzt außer Kraft:
      resolve in Klasse net.minecraft.client.resources.sounds.AbstractSoundInstance