Local Player Fall Damage Tracker
Tracks whether the local player's current hurt cycle was caused by fall damage.
The damage source travels with every successful hit (net.minecraft.server.level.ServerLevel#broadcastDamageEvent), and the client applies the very same hurt cycle from it - net.minecraft.world.entity.LivingEntity#handleDamageEvent sets hurtTime to HURT_TICKS. Classifying by that packet needs no pairing with a following knockback: net.minecraft.network.protocol.game.ClientboundSetEntityMotionPacket cannot tell the two apart, since fall is part of net.minecraft.tags.DamageTypeTags.NO_KNOCKBACK and therefore arrives with the unchanged delta movement, while hostile entities may also set the sync flag without any damage.
See also
#hurtServer
Properties
Get the related CoroutineScope of receiver EventListener.
Returns whether the listenable is running or not, this is based on the parent listenable and if no parent is present, it will return the opposite of isDestructed.
Functions
Children EventListener
Returns computed ReadWriteProperty based on the accumulator of specific event.
Calls handler for every type event while this listener is running. Higher priority runs first. Close the result to stop early; unregister does the same for all of them.
task every game tick while this listener is running.
Parent EventListener
Remove cached scope and cancel it.
Registers an event hook for events of type T and launches a sequence
Start a Job on event.
Registers a repeatable sequence which repeats the execution of code on GameTickEvent.
Unregisters the event handler from the manager. This decision is FINAL! After the class was unregistered we cannot restore the handlers.
Wrap the original interceptor and make it auto-detect the listener's running state at suspension to determine whether to resume the continuation.