LeviLamina
Loading...
Searching...
No Matches
ll::event::DynamicListener Class Reference
+ Inheritance diagram for ll::event::DynamicListener:

Public Types

using callback_fn = std::function<void(CompoundTag&)>
 

Public Member Functions

 DynamicListener (callback_fn fn, EventPriority priority=EventPriority::Normal, std::weak_ptr< mod::Mod > mod=mod::NativeMod::current())
 
void call (Event &event) override
 
constexpr ListenerId getId () const
 
constexpr EventPriority getPriority () const
 
constexpr bool operator== (ListenerBase const &other) const noexcept
 
constexpr std::strong_ordering operator<=> (ListenerBase const &other) const noexcept
 

Static Public Member Functions

static std::shared_ptr< DynamicListenercreate (callback_fn fn, EventPriority priority=EventPriority::Normal, std::weak_ptr< mod::Mod > mod=mod::NativeMod::current())
 

Public Attributes

std::weak_ptr< mod::ModmodPtr
 

Member Function Documentation

◆ call()

void ll::event::DynamicListener::call ( Event & event)
inlineoverridevirtual

The documentation for this class was generated from the following file: