Class SoundLoopSpell.SoundLoopSpellPosTimed

java.lang.Object
net.minecraft.client.resources.sounds.AbstractSoundInstance
net.minecraft.client.resources.sounds.AbstractTickableSoundInstance
All Implemented Interfaces:
net.fabricmc.fabric.api.client.sound.v1.FabricSoundInstance, net.minecraft.client.resources.sounds.SoundInstance, net.minecraft.client.resources.sounds.TickableSoundInstance
Enclosing class:
SoundLoopSpell

public static class SoundLoopSpell.SoundLoopSpellPosTimed extends SoundLoopSpell.SoundLoopSpellLocation
Sound loop from a spell cast just by the location, normally a /cast command
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.binaris.wizardry.client.sound.SoundLoop

    SoundLoop.ISoundFactory

    Nested classes/interfaces inherited from interface net.minecraft.client.resources.sounds.SoundInstance

    net.minecraft.client.resources.sounds.SoundInstance.Attenuation
  • Field Summary

    Fields inherited from class net.minecraft.client.resources.sounds.AbstractSoundInstance

    attenuation, delay, location, pitch, random, relative, sound, source, volume, x, y, z

    Fields inherited from interface net.fabricmc.fabric.api.client.sound.v1.FabricSoundInstance

    EMPTY_SOUND
  • Constructor Summary

    Constructors
    Constructor
    Description
    SoundLoopSpellPosTimed(net.minecraft.sounds.SoundEvent start, net.minecraft.sounds.SoundEvent loop, net.minecraft.sounds.SoundEvent end, Spell spell, int duration, double x, double y, double z, float sndVolume, float sndPitch)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
     
    void
    Used to know when the sound is ready to be looped, all the rest of the tick logic is handled in the client tick SoundLoop.onClientTick(EBClientTickEvent)

    Methods inherited from class com.binaris.wizardry.client.sound.SoundLoopSpell

    hasActiveLoop

    Methods inherited from class com.binaris.wizardry.client.sound.SoundLoop

    addLoop, endLoop, hasActiveLoopMatching, onClientTick, stopStartAndLoop

    Methods inherited from class net.minecraft.client.resources.sounds.AbstractTickableSoundInstance

    isStopped, stop

    Methods inherited from class net.minecraft.client.resources.sounds.AbstractSoundInstance

    getAttenuation, getDelay, getLocation, getPitch, getSound, getSource, getVolume, getX, getY, getZ, isLooping, isRelative, resolve, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.fabricmc.fabric.api.client.sound.v1.FabricSoundInstance

    getAudioStream

    Methods inherited from interface net.minecraft.client.resources.sounds.SoundInstance

    canPlaySound, canStartSilent, getAttenuation, getDelay, getLocation, getPitch, getSound, getSource, getVolume, getX, getY, getZ, isLooping, isRelative, resolve
  • Constructor Details

    • SoundLoopSpellPosTimed

      public SoundLoopSpellPosTimed(net.minecraft.sounds.SoundEvent start, net.minecraft.sounds.SoundEvent loop, net.minecraft.sounds.SoundEvent end, Spell spell, int duration, double x, double y, double z, float sndVolume, float sndPitch)
  • Method Details