LeviLamina
Loading...
Searching...
No Matches
ScoreboardIdentityRef.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/scores/IdentityDefinition.h"
7#include "mc/world/scores/PlayerScoreSetFunction.h"
8#include "mc/world/scores/ScoreboardId.h"
9#include "mc/world/scores/ScoreboardOperationResult.h"
10
11// auto generated forward declare list
12// clang-format off
13class CompoundTag;
14class Objective;
15class Scoreboard;
16struct ActorUniqueID;
18// clang-format on
19
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<4, 4, uint> mObjectiveReferences;
25 ::ll::TypedStorage<8, 16, ::ScoreboardId> mScoreboardId;
26 // NOLINTEND
27
28public:
29 // member functions
30 // NOLINTBEGIN
31 MCAPI ::ActorUniqueID const& getEntityId() const;
32
33 MCAPI ::IdentityDefinition::Type getIdentityType() const;
34
35 MCAPI ::std::string const&
36 getName(::std::function<::std::string const&(::ActorUniqueID)> const& playerNameResolver) const;
37
38 MCAPI ::PlayerScoreboardId const& getPlayerId() const;
39
40 MCFOLD ::ScoreboardId const& getScoreboardId() const;
41
42 MCAPI ::ScoreboardOperationResult
43 modifyScoreInObjective(int& result, ::Objective& objective, int score, ::PlayerScoreSetFunction fn);
44
45 MCAPI bool removeFromObjective(::Scoreboard& scoreboard, ::Objective& objective);
46 // NOLINTEND
47
48public:
49 // static functions
50 // NOLINTBEGIN
51 MCAPI static ::std::unique_ptr<::CompoundTag> serialize(::ScoreboardIdentityRef const& toSave);
52 // NOLINTEND
53
54public:
55 // static variables
56 // NOLINTBEGIN
57 MCAPI static ::ScoreboardIdentityRef const& Undefined();
58 // NOLINTEND
59};
Definition CompoundTag.h:23
Definition Objective.h:17
Definition ScoreboardIdentityRef.h:20
Definition Scoreboard.h:35
Definition ActorUniqueID.h:10
Definition PlayerScoreboardId.h:6