Class ClientSpellSoundManager

java.lang.Object
com.binaris.wizardry.core.ClientSpellSoundManager

public final class ClientSpellSoundManager extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    playChargeSound(net.minecraft.world.entity.LivingEntity entity)
    Plays the spell charge sound, used inside a SpellCastingItem when the item is on charge time.
    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).
    static void
    playSpellSoundLoop(net.minecraft.world.entity.LivingEntity entity, Spell spell, net.minecraft.sounds.SoundEvent[] sounds, float volume, float pitch)
     
    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)
     
    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)
     
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 event
      category - sound category
      volume - volume of the sound
      repeat - 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 a SpellCastingItem when the item is on charge time.
      Parameters:
      entity - entity that's going to listen the sound (normally a player)