Package-level declarations

Types

Link copied to clipboard
open class AsyncEvent<T>(val clientSide: Boolean) : Event<T>

The same as Event but with additional async collectors (via a flow). This allows you to listen to the event asynchronously in a totally different CoroutineScope, and unregister via cancellation of that scope. To create an event of this type, have a look at the Event.syncAsync and Event.syncAsyncImmutable functions.

Link copied to clipboard
interface Cancellable
Link copied to clipboard
Link copied to clipboard
open class Event<T>

The base event implementation with synchronous listeners. To create a new event of this type, have a look at the onlySync and syncAsync functions in the companion object.

Link copied to clipboard

Enum constants representing a priority which an event listener may have over other event listeners. The priority goes from FIRST (executed before everything else) to LAST (executed after everything else has finished).

Link copied to clipboard
object Events

The base object for discovering events, check the extensions values of this object.

Link copied to clipboard
class EventScopeProperty<V>(value: V)

A property which wraps a variable of type V. Its value can only be mutated inside a MutableEventScope, which protects it from misuse.

Link copied to clipboard
class ListenerInstance<L>(lock: Any, listener: L, list: MutableList<L>)

A simple instance class keeping track of a registered listener and making it possible to unregister it later.

Link copied to clipboard

A marker which can be passed to event handlers to make the event scope mutable. Functions which mutate the scope will require this marker in the context.

Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard

Events for net.minecraft.world.entity.Entity. This includes players.

Link copied to clipboard

Events for actions specifically related to net.minecraft.world.entity.player.Player. For more general events, see Events.Entity.

Link copied to clipboard

Events related to the net.minecraft.server.MinecraftServer.