16class PermissionsHandler {
19 using PermissionsPublisher =
22 using PermissionsPublisherRefWrapper = ::std::reference_wrapper<
28 ::ll::TypedStorage<1, 1, ::CommandPermissionLevel> mCommandPermissions;
29 ::ll::TypedStorage<1, 1, ::PlayerPermissionLevel> mPlayerPermissions;
34 mClientPlayerPermissionsPublisher;
39 PermissionsHandler& operator=(PermissionsHandler
const&);
44 MCAPI PermissionsHandler();
46 MCAPI PermissionsHandler(::PermissionsHandler
const& rhs);
50 MCFOLD ::CommandPermissionLevel getCommandPermissions()
const;
52 MCFOLD ::PlayerPermissionLevel getPlayerPermissions()
const;
55 MCAPI ::std::optional<::std::reference_wrapper<
57 getPlayerPermissionsChangedPublisher()
const;
62 MCFOLD
void setCommandPermissions(::CommandPermissionLevel permissions);
64 MCAPI
void setPlayerPermissions(::PlayerPermissionLevel permissions);
66 MCAPI ~PermissionsHandler();
73 MCAPI static ::std::optional<::std::string>
74 getDiff(::PermissionsHandler
const& lhs, ::PermissionsHandler
const& rhs);
77 MCAPI static ::PlayerPermissionLevel playerPermissionLevelFromString(::std::string
const& s);
79 MCAPI static ::std::string playerPermissionLevelToString(::PlayerPermissionLevel
const& permission);
85 MCAPI static ::std::string
const& DIFF_COMMAND_PERMISSION();
87 MCAPI static ::std::string
const& DIFF_PLAYER_PERMISSION();
95 MCAPI
void* $ctor(::PermissionsHandler
const& rhs);