EntityListener

open class EntityListener : Listener(source)

Created by GlareMasters Date: 7/19/2018 Time: 5:21 PM

Constructors

Link copied to clipboard
open fun EntityListener(guildHandler: GuildHandler, settingsManager: SettingsManager, challengeHandler: ChallengeHandler)

Functions

Link copied to clipboard
open fun onDamage(event: EntityDamageByEntityEvent)
Handles damage caused by Projectile (e.g.
Link copied to clipboard
open fun onEntityDamage(event: EntityDamageByEntityEvent)
Handles restrictions on player vs player damage based on guild affiliation.
Link copied to clipboard
open fun onFlameArrow(event: EntityCombustByEntityEvent)
Handles flame arrow damage between players
Link copied to clipboard
open fun onMobDamage(event: EntityDamageByEntityEvent)
Handles the extra damage to a mob.
Link copied to clipboard
open fun onMobDeath(event: EntityDeathEvent)
Handles extra XP dropped from mobs
Link copied to clipboard
open fun onSplash(event: PotionSplashEvent)
Handles harm causing splash potions.