import Cancellable from '../../../../org/bukkit/event/Cancellable.js'; import Entity from '../../../../org/bukkit/entity/Entity.js'; import EntityEvent from './EntityEvent.js'; import EntityExhaustionEvent$ExhaustionReason from './EntityExhaustionEvent$ExhaustionReason.js'; import EntityType from '../../../../org/bukkit/entity/EntityType.js'; import HandlerList from '../../../../org/bukkit/event/HandlerList.js'; import HumanEntity from '../../../../org/bukkit/entity/HumanEntity.js'; export default interface EntityExhaustionEvent extends EntityEvent, Cancellable { getEntity(): Entity; getEntity(): HumanEntity; getEntityType(): EntityType; getEventName(): string; getExhaustion(): number; getExhaustionReason(): EntityExhaustionEvent$ExhaustionReason; getHandlers(): HandlerList; isAsynchronous(): boolean; isCancelled(): boolean; setCancelled(cancel: boolean): void; setExhaustion(exhaustion: number): void; } export default class EntityExhaustionEvent { static get $javaClass(): any; constructor(who: HumanEntity, exhaustionReason: EntityExhaustionEvent$ExhaustionReason, exhaustion: number); static getHandlerList(): HandlerList; }