All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.chestmc.event.EntityFallEvent.kt Maven / Gradle / Ivy

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