Package com.binaris.wizardry.core
Class ClientSpellSoundManager
java.lang.Object
com.binaris.wizardry.core.ClientSpellSoundManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidplayChargeSound(net.minecraft.world.entity.LivingEntity entity) Plays the spell charge sound, used inside aSpellCastingItemwhen the item is on charge time.static voidplayMovingSound(net.minecraft.world.entity.Entity entity, net.minecraft.sounds.SoundEvent sound, net.minecraft.sounds.SoundSource category, float volume, float pitch, boolean repeat) Used when you want to create a sound that's moving along with an entity (projectiles, or fast-entities need this).static voidplaySpellSoundLoop(net.minecraft.world.entity.LivingEntity entity, Spell spell, net.minecraft.sounds.SoundEvent[] sounds, float volume, float pitch) static voidplaySpellSoundLoop(net.minecraft.world.entity.LivingEntity entity, Spell spell, net.minecraft.sounds.SoundEvent start, net.minecraft.sounds.SoundEvent loop, net.minecraft.sounds.SoundEvent end, float volume, float pitch) static voidplaySpellSoundLoop(net.minecraft.world.level.Level world, double x, double y, double z, Spell spell, net.minecraft.sounds.SoundEvent[] sounds, float volume, float pitch, int duration) static voidplaySpellSoundLoop(net.minecraft.world.level.Level world, double x, double y, double z, Spell spell, net.minecraft.sounds.SoundEvent start, net.minecraft.sounds.SoundEvent loop, net.minecraft.sounds.SoundEvent end, float volume, float pitch, int duration)
-
Constructor Details
-
ClientSpellSoundManager
public ClientSpellSoundManager()
-
-
Method Details
-
playSpellSoundLoop
public static void playSpellSoundLoop(net.minecraft.world.entity.LivingEntity entity, Spell spell, net.minecraft.sounds.SoundEvent[] sounds, float volume, float pitch) -
playSpellSoundLoop
public static void playSpellSoundLoop(net.minecraft.world.entity.LivingEntity entity, Spell spell, net.minecraft.sounds.SoundEvent start, net.minecraft.sounds.SoundEvent loop, net.minecraft.sounds.SoundEvent end, float volume, float pitch) -
playSpellSoundLoop
public static void playSpellSoundLoop(net.minecraft.world.level.Level world, double x, double y, double z, Spell spell, net.minecraft.sounds.SoundEvent[] sounds, float volume, float pitch, int duration) -
playSpellSoundLoop
public static void playSpellSoundLoop(net.minecraft.world.level.Level world, double x, double y, double z, Spell spell, net.minecraft.sounds.SoundEvent start, net.minecraft.sounds.SoundEvent loop, net.minecraft.sounds.SoundEvent end, float volume, float pitch, int duration) -
playMovingSound
public static void playMovingSound(net.minecraft.world.entity.Entity entity, net.minecraft.sounds.SoundEvent sound, net.minecraft.sounds.SoundSource category, float volume, float pitch, boolean repeat) Used when you want to create a sound that's moving along with an entity (projectiles, or fast-entities need this).- Parameters:
entity- entity that's going to be linked with the sound.sound- sound eventcategory- sound categoryvolume- volume of the soundrepeat- if the sound is going to be looping with the entity
-
playChargeSound
public static void playChargeSound(net.minecraft.world.entity.LivingEntity entity) Plays the spell charge sound, used inside aSpellCastingItemwhen the item is on charge time.- Parameters:
entity- entity that's going to listen the sound (normally a player)
-