net.chestmc.event.EntityFallEvent.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of chest-server Show documentation
Show all versions of chest-server Show documentation
A spigot fork to kotlin structure and news.
The newest version!
package net.chestmc.event
import net.chestmc.common.common.AbstractEvent
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 fall event, this is, when a entity falls from a height.
*/
data class EntityFallEvent(val entity: Entity, val block: Block, val height: Float) : AbstractEvent() {
val location: Location = block.location
val world: World = entity.world
val blockType: Material = block.type
val entityType: EntityType = entity.type
val isPlayer = entity is Player
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy