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();
36
37public:
38 // member functions
39 // NOLINTBEGIN
40 MCAPI IdentityDefinition(::IdentityDefinition&& o);
41
42 MCAPI IdentityDefinition(::IdentityDefinition const& o);
43
44 MCFOLD ::ActorUniqueID const& getEntityId() const;
45
46 MCFOLD ::std::string const& getFakePlayerName() const;
47
48 MCFOLD ::IdentityDefinition::Type getIdentityType() const;
49
50 MCAPI ::std::string const&
51 getName(::std::function<::std::string const&(::ActorUniqueID)> const& playerNameResolver) const;
52
53 MCFOLD ::PlayerScoreboardId const& getPlayerId() const;
54
55 MCFOLD ::ScoreboardId const& getScoreboardId() const;
56
57 MCAPI bool isEntityType() const;
58
59 MCFOLD bool isPlayerType() const;
60
61 MCAPI bool isValid() const;
62
63 MCAPI ::IdentityDefinition& operator=(::IdentityDefinition&& o);
64
65 MCAPI ::IdentityDefinition& operator=(::IdentityDefinition const& o);
66
67 MCAPI ~IdentityDefinition();
68 // NOLINTEND
69
70public:
71 // static functions
72 // NOLINTBEGIN
73 MCAPI static bool isHiddenFakePlayerNameString(::std::string const& name);
74 // NOLINTEND
75
76public:
77 // static variables
78 // NOLINTBEGIN
79 MCAPI static ::IdentityDefinition const& Invalid();
80 // NOLINTEND
81
82public:
83 // constructor thunks
84 // NOLINTBEGIN
85 MCAPI void* $ctor(::IdentityDefinition&& o);
86
87 MCAPI void* $ctor(::IdentityDefinition const& o);
88 // NOLINTEND
89
90public:
91 // destructor thunk
92 // NOLINTBEGIN
93 MCFOLD void $dtor();
94 // NOLINTEND
95};
Definition Player.h:137
Definition ActorUniqueID.h:10