LeviLamina
Loading...
Searching...
No Matches
PermissionsHandler.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/server/commands/CommandPermissionLevel.h"
7#include "mc/server/commands/PlayerPermissionLevel.h"
8
9// auto generated forward declare list
10// clang-format off
11class CompoundTag;
12// clang-format on
13
15public:
16 // member variables
17 // NOLINTBEGIN
18 ::ll::TypedStorage<1, 1, ::CommandPermissionLevel> mCommandPermissions;
19 ::ll::TypedStorage<1, 1, ::PlayerPermissionLevel> mPlayerPermissions;
20 // NOLINTEND
21
22public:
23 // member functions
24 // NOLINTBEGIN
25 MCAPI void addSaveData(::CompoundTag& tag) const;
26
27 MCAPI bool loadSaveData(::CompoundTag const& tag);
28 // NOLINTEND
29
30public:
31 // static functions
32 // NOLINTBEGIN
33 MCAPI_C static ::std::optional<::std::string>
34 getDiff(::PermissionsHandler const& lhs, ::PermissionsHandler const& rhs);
35
36 MCAPI static ::PlayerPermissionLevel playerPermissionLevelFromString(::std::string const& s);
37
38 MCAPI static ::std::string playerPermissionLevelToString(::PlayerPermissionLevel const& permission);
39 // NOLINTEND
40
41public:
42 // static variables
43 // NOLINTBEGIN
44 MCAPI static ::std::string const& DIFF_COMMAND_PERMISSION();
45
46 MCAPI static ::std::string const& DIFF_PLAYER_PERMISSION();
47 // NOLINTEND
48};
Definition CompoundTag.h:23
Definition PermissionsHandler.h:14