github.com/df-mc/dragonfly@v0.9.13/server/world/sound/entity.go (about) 1 package sound 2 3 // Attack is a sound played when an entity, most notably a player, attacks another entity. 4 type Attack struct { 5 // Damage specifies if the attack actually dealt damage to the other entity. If set to false, the sound 6 // will be different from when set to true. 7 Damage bool 8 9 sound 10 } 11 12 // Drowning is a sound played when an entity is drowning in water. 13 type Drowning struct{ sound } 14 15 // Burning is a sound played when an entity is on fire. 16 type Burning struct{ sound } 17 18 // Fall is a sound played when an entity falls and hits ground. 19 type Fall struct { 20 // Distance is the distance the entity has fallen. 21 Distance float64 22 23 sound 24 } 25 26 // Burp is a sound played when a player finishes eating an item. 27 type Burp struct{ sound } 28 29 // Pop is a sound played when a chicken lays an egg. 30 type Pop struct{ sound } 31 32 // Explosion is a sound played when an explosion happens, such as from a creeper or TNT. 33 type Explosion struct{ sound } 34 35 // Thunder is a sound played when lightning strikes the ground. 36 type Thunder struct{ sound } 37 38 // LevelUp is a sound played for a player whenever they level up. 39 type LevelUp struct{ sound } 40 41 // Experience is a sound played whenever a player picks up an XP orb. 42 type Experience struct{ sound } 43 44 // GhastWarning is a sound played when a ghast is ready to attack. 45 type GhastWarning struct{ sound } 46 47 // GhastShoot is a sound played when a ghast shoots a fire charge. 48 type GhastShoot struct{ sound } 49 50 // FireworkLaunch is a sound played when a firework is launched. 51 type FireworkLaunch struct{ sound } 52 53 // FireworkHugeBlast is a sound played when a huge sphere firework explodes. 54 type FireworkHugeBlast struct{ sound } 55 56 // FireworkBlast is a sound played when a small sphere firework explodes. 57 type FireworkBlast struct{ sound } 58 59 // FireworkTwinkle is a sound played when a firework explodes and should twinkle. 60 type FireworkTwinkle struct{ sound }