walkmc.event.EntityFallEvent.kt Maven / Gradle / Ivy
package walkmc.event
import org.bukkit.*
import org.bukkit.block.*
import org.bukkit.entity.*
import walkmc.*
/**
* Represents an entity fall event, this is, when an entity falls from a height.
*/
open class EntityFallEvent(val entity: Entity, val block: Block, var height: Float) : EventBase() {
val location: Location get() = block.location
val world: World get() = entity.world
val material: Materials get() = block.material
val type: EntityType get() = entity.type
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy