LeviLamina
Loading...
Searching...
No Matches
RequestPermissionsPacketPayload.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/legacy/ActorUniqueID.h"
7#include "mc/server/commands/PlayerPermissionLevel.h"
8#include "mc/world/actor/player/AbilitiesIndex.h"
9
10// auto generated forward declare list
11// clang-format off
12class Abilities;
13// clang-format on
14
16public:
17 // RequestPermissionsPacketPayload inner types define
18 enum class CustomPermissions : ushort {
19 // bitfield representation
20 Build = 1 << 0,
21 Mine = 1 << 1,
22 DoorsAndSwitches = 1 << 2,
23 OpenContainers = 1 << 3,
24 AttackPlayers = 1 << 4,
25 AttackMobs = 1 << 5,
26 OperatorCommands = 1 << 6,
27 Teleport = 1 << 7,
28 };
29
30public:
31 // member variables
32 // NOLINTBEGIN
33 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mTargetPlayerId;
34 ::ll::TypedStorage<1, 1, ::PlayerPermissionLevel> mPlayerPermissions;
35 ::ll::TypedStorage<2, 2, ushort> mCustomPermissionFlags;
36 // NOLINTEND
37
38public:
39 // member functions
40 // NOLINTBEGIN
41 MCAPI_C void _setFromAbilities(::Abilities const& abilities);
42
43 MCAPI bool getCustomAbilityValue(::AbilitiesIndex ability) const;
44 // NOLINTEND
45};
Definition Abilities.h:15
Definition RequestPermissionsPacketPayload.h:15