Class Damage.SoundEffect

java.lang.Object
com.hypixel.hytale.server.core.modules.entity.damage.Damage.SoundEffect
Enclosing class:
Damage

public static class Damage.SoundEffect extends Object
Sound Effect

Holds the sound effect to be played upon processing the affiliated damage entry

  • Constructor Details

    • SoundEffect

      public SoundEffect(int soundEventIndex)
      Default Constructor for a Damage.SoundEffect instance
      Parameters:
      soundEventIndex - The sound event index of the sound to play
  • Method Details

    • setSoundEventIndex

      public void setSoundEventIndex(int soundEventIndex)
      Sets the sound event index to the given index
      Parameters:
      soundEventIndex - The sound event index to set
    • getSoundEventIndex

      public int getSoundEventIndex()
      Returns:
      the index of the sound effect