net.chestmc.event.EntityJumpEvent.kt Maven / Gradle / Ivy
package net.chestmc.event
import net.chestmc.common.common.CancellableEvent
import org.bukkit.Location
import org.bukkit.Material
import org.bukkit.World
import org.bukkit.block.Block
import org.bukkit.entity.Entity
import org.bukkit.entity.EntityType
import org.bukkit.entity.Player
/**
* Represents a entity jump event, this is called when a entity jumps.
*/
data class EntityJumpEvent(val entity: Entity, val block: Block) : CancellableEvent() {
val world: World = entity.world
val location: Location = block.location
val entityType: EntityType = entity.type
val blockType: Material = block.type
val isPlayer = entity is Player
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy