Skip to content

Damage.SoundEffect

Package: com.hypixel.hytale.server.core.modules.entity.damage

public static class Damage.SoundEffect

Wraps 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.

public SoundEffect(int soundEventIndex)

Creates a sound effect wrapper with the given sound event asset index.

public int getSoundEventIndex()

Returns the sound event asset index.

public void setSoundEventIndex(int soundEventIndex)

Sets the sound event asset index.

FieldTypeModifiersDescription
soundEventIndexintprivateIndex into the sound event asset map.
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.