Damage.SoundEffect
Package: com.hypixel.hytale.server.core.modules.entity.damage
public static class Damage.SoundEffectWraps a sound event index for impact sound effects attached to a Damage event. Used by both Damage.IMPACT_SOUND_EFFECT and Damage.PLAYER_IMPACT_SOUND_EFFECT meta keys.
Constructor
Section titled “Constructor”public SoundEffect(int soundEventIndex)Creates a sound effect wrapper with the given sound event asset index.
Methods
Section titled “Methods”public int getSoundEventIndex()Returns the sound event asset index.
public void setSoundEventIndex(int soundEventIndex)Sets the sound event asset index.
Fields
Section titled “Fields”| Field | Type | Modifiers | Description |
|---|---|---|---|
soundEventIndex | int | private | Index into the sound event asset map. |
Related Types
Section titled “Related Types”- Damage — the damage event that carries sound effects via meta store
- DamageSystems.ApplySoundEffects — system that plays these sounds
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.