Class SoundLoopSpell.SoundLoopSpellPosTimed
java.lang.Object
net.minecraft.client.resources.sounds.AbstractSoundInstance
net.minecraft.client.resources.sounds.AbstractTickableSoundInstance
com.binaris.wizardry.client.sound.SoundLoop
com.binaris.wizardry.client.sound.SoundLoopSpell
com.binaris.wizardry.client.sound.SoundLoopSpell.SoundLoopSpellLocation
com.binaris.wizardry.client.sound.SoundLoopSpell.SoundLoopSpellPosTimed
- 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.SoundLoopSpell
SoundLoopSpell.SoundLoopSpellDispenser, SoundLoopSpell.SoundLoopSpellEntity, SoundLoopSpell.SoundLoopSpellLocation, SoundLoopSpell.SoundLoopSpellPosTimedNested classes/interfaces inherited from class com.binaris.wizardry.client.sound.SoundLoop
SoundLoop.ISoundFactoryNested 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, zFields inherited from interface net.fabricmc.fabric.api.client.sound.v1.FabricSoundInstance
EMPTY_SOUND -
Constructor Summary
ConstructorsConstructorDescriptionSoundLoopSpellPosTimed(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 TypeMethodDescriptionprotected booleanstillCasting(Spell spell) voidtick()Used to know when the sound is ready to be looped, all the rest of the tick logic is handled in the client tickSoundLoop.onClientTick(EBClientTickEvent)Methods inherited from class com.binaris.wizardry.client.sound.SoundLoopSpell
hasActiveLoopMethods inherited from class com.binaris.wizardry.client.sound.SoundLoop
addLoop, endLoop, hasActiveLoopMatching, onClientTick, stopStartAndLoopMethods inherited from class net.minecraft.client.resources.sounds.AbstractTickableSoundInstance
isStopped, stopMethods inherited from class net.minecraft.client.resources.sounds.AbstractSoundInstance
getAttenuation, getDelay, getLocation, getPitch, getSound, getSource, getVolume, getX, getY, getZ, isLooping, isRelative, resolve, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.fabricmc.fabric.api.client.sound.v1.FabricSoundInstance
getAudioStreamMethods 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
-
tick
public void tick()Description copied from class:SoundLoopUsed to know when the sound is ready to be looped, all the rest of the tick logic is handled in the client tickSoundLoop.onClientTick(EBClientTickEvent)- Specified by:
tickin interfacenet.minecraft.client.resources.sounds.TickableSoundInstance- Overrides:
tickin classSoundLoopSpell
-
stillCasting
- Specified by:
stillCastingin classSoundLoopSpell
-