LeviLamina
Loading...
Searching...
No Matches
IdentityDefinition.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/world/scores/PlayerScoreboardId.h"
8#include "mc/world/scores/ScoreboardId.h"
9
10class IdentityDefinition {
11public:
12 // IdentityDefinition inner types define
13 enum class Type : uchar {
14 Invalid = 0,
15 Player = 1,
16 Entity = 2,
17 FakePlayer = 3,
18 };
19
20 using PlayerNameResolver = ::std::function<::std::string const&(::ActorUniqueID)>;
21
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<8, 16, ::ScoreboardId> mScoreboardId;
26 ::ll::TypedStorage<1, 1, bool> mIsHiddenFakePlayer;
27 ::ll::TypedStorage<8, 8, ::PlayerScoreboardId> mPlayerId;
28 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mEntityId;
29 ::ll::TypedStorage<8, 32, ::std::string> mPlayerName;
30 ::ll::TypedStorage<1, 1, ::IdentityDefinition::Type> mIdentityType;
31 // NOLINTEND
32
33public:
34 // prevent constructor by default
35 IdentityDefinition& operator=(IdentityDefinition const&);
36 IdentityDefinition();
37
38public:
39 // member functions
40 // NOLINTBEGIN
41 MCAPI IdentityDefinition(::IdentityDefinition const& o);
42
43 MCAPI ::std::string const&
44 getName(::std::function<::std::string const&(::ActorUniqueID)> const& playerNameResolver) const;
45
46 MCAPI ::IdentityDefinition& operator=(::IdentityDefinition&& o);
47
48#ifdef LL_PLAT_C
49 MCAPI ~IdentityDefinition();
50#endif
51 // NOLINTEND
52
53public:
54 // static variables
55 // NOLINTBEGIN
56 MCAPI static ::IdentityDefinition const& Invalid();
57 // NOLINTEND
58
59public:
60 // constructor thunks
61 // NOLINTBEGIN
62 MCAPI void* $ctor(::IdentityDefinition const& o);
63 // NOLINTEND
64
65public:
66 // destructor thunk
67 // NOLINTBEGIN
68#ifdef LL_PLAT_C
69 MCFOLD void $dtor();
70#endif
71 // NOLINTEND
72};
Definition Player.h:129
Definition ActorUniqueID.h:5