
walkmc.event.EntityTickEvent.kt Maven / Gradle / Ivy
package walkmc.event
import org.bukkit.*
import org.bukkit.entity.*
import walkmc.*
/**
* When the server ticks a entity, this will be called.
*/
open class EntityTickEvent(val entity: Entity) : CancellableEvent() {
val world: World get() = entity.world
val location: Location get() = entity.location
val type: EntityType get() = entity.type
}
/**
* Represents a player tick event. This will called when a player ticks in the server.
*/
open class PlayerTickEvent(val player: Player) : EntityTickEvent(player)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy