18 friend class ::ll::event::Cancellable;
20 friend class CallbackStream;
22 bool mCancelled{
false};
24 LLAPI
void serializeWithCancel(CompoundTag&)
const;
25 LLAPI
void deserializeWithCancel(CompoundTag
const&);
28 constexpr Event() =
default;
31 LLAPI
virtual ~Event() =
default;
33 LLAPI
virtual void serialize(CompoundTag&)
const;
34 LLAPI
virtual void deserialize(CompoundTag
const&);
36 LLAPI
virtual EventId getId()
const;
38 static constexpr EventIdView CustomEventId{EmptyEventId};