Contents
Class Damage.SoundEffect
java.lang.Object
com.hypixel.hytale.server.core.modules.entity.damage.Damage.SoundEffect
- Enclosing class:
Damage
Sound Effect
Holds the sound effect to be played upon processing the affiliated damage entry
-
Constructor Summary
ConstructorsConstructorDescriptionSoundEffect(int soundEventIndex) Default Constructor for aDamage.SoundEffectinstance -
Method Summary
Modifier and TypeMethodDescriptionintvoidsetSoundEventIndex(int soundEventIndex) Sets the sound event index to the given index
-
Constructor Details
-
SoundEffect
public SoundEffect(int soundEventIndex) Default Constructor for aDamage.SoundEffectinstance- 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
-