LeviLamina
Loading...
Searching...
No Matches
ServerCommandRegisterEvent.h
1#pragma once
2
3#include "ll/api/event/command/CommandRegisterEvent.h"
4
5namespace ll::event::inline command {
6
7class ServerCommandRegisterEvent final : public CommandRegisterEvent {
8 bool mClientHostedServer;
9
10public:
11 constexpr explicit ServerCommandRegisterEvent(CommandRegistry& commandRegistry, bool clientHostedServer)
12 : CommandRegisterEvent(commandRegistry),
13 mClientHostedServer(clientHostedServer) {}
14
15 LLAPI void serialize(CompoundTag&) const override;
16
17 LLNDAPI bool isClientHostedServer() const;
18};
19
20} // namespace ll::event::inline command
Definition CommandRegistry.h:50
Definition CompoundTag.h:23