
walkmc.event.SoundEvent.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of walk-server Show documentation
Show all versions of walk-server Show documentation
A spigot fork to kotlin structure and news.
package walkmc.event
import org.bukkit.*
import org.bukkit.entity.*
import walkmc.*
/**
* Called when a sound is played.
*/
open class SoundEvent(var sound: Sound?, var volume: Float, var pitch: Float) : CancellableEvent()
/**
* Called when a entity makes any type of sound.
*/
class EntitySoundEvent(
val entity: Entity,
sound: Sound?,
volume: Float,
pitch: Float,
) : SoundEvent(sound, volume, pitch) {
val world: World get() = entity.world
val location: Location get() = entity.location
val type: EntityType get() = entity.type
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy