LeviLamina
Loading...
Searching...
No Matches
Abilities.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/server/commands/PlayerPermissionLevel.h"
7#include "mc/world/actor/player/AbilitiesIndex.h"
8
9// auto generated forward declare list
10// clang-format off
11class Ability;
12class CompoundTag;
13// clang-format on
14
15class Abilities {
16public:
17 // member variables
18 // NOLINTBEGIN
19 ::ll::TypedStorage<4, 240, ::std::array<::Ability, 20>> mAbilities;
20 // NOLINTEND
21
22public:
23 // member functions
24 // NOLINTBEGIN
25 MCAPI void addSaveData(::CompoundTag& parentTag) const;
26
27 MCAPI bool loadSaveData(::CompoundTag const& parentTag);
28
29 MCAPI void setFromPermissions(::PlayerPermissionLevel permissions);
30 // NOLINTEND
31
32public:
33 // static functions
34 // NOLINTBEGIN
35 MCAPI static ::Ability const& getDefault(::AbilitiesIndex abilityIndex);
36 // NOLINTEND
37
38public:
39 // static variables
40 // NOLINTBEGIN
41 MCAPI static ::std::array<char const*, 20>& ABILITY_NAMES();
42
43 MCAPI static ::std::string const& DIFF_ABILITIY_AT();
44
45 MCAPI static ::Ability& INVALID_ABILITY();
46
47 MCAPI static ::std::string const& SERIALIZATION_TAG();
48 // NOLINTEND
49};
Definition Abilities.h:15
Definition Ability.h:5
Definition CompoundTag.h:13