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/PlayerScoreSetFunction.h"
7
8// auto generated forward declare list
9// clang-format off
10class CompoundTag;
11class Objective;
12class Scoreboard;
13struct ActorUniqueID;
14struct ScoreboardId;
15// clang-format on
16
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<4, 4, uint> mObjectiveReferences;
22 ::ll::TypedStorage<8, 16, ::ScoreboardId> mScoreboardId;
23 // NOLINTEND
24
25public:
26 // member functions
27 // NOLINTBEGIN
28 MCAPI ::std::string const& getName(::std::function<::std::string const&(::ActorUniqueID)> const& playerNameResolver
29 ) const;
30
31 MCAPI bool modifyScoreInObjective(int& result, ::Objective& objective, int score, ::PlayerScoreSetFunction fn);
32
33 MCAPI bool removeFromObjective(::Scoreboard& scoreboard, ::Objective& objective);
34 // NOLINTEND
35
36public:
37 // static functions
38 // NOLINTBEGIN
39 MCAPI static ::std::unique_ptr<::CompoundTag> serialize(::ScoreboardIdentityRef const& toSave);
40 // NOLINTEND
41
42public:
43 // static variables
44 // NOLINTBEGIN
45 MCAPI static ::ScoreboardIdentityRef const& Undefined();
46 // NOLINTEND
47};
Definition CompoundTag.h:13
Definition Objective.h:17
Definition ScoreboardIdentityRef.h:17
Definition Scoreboard.h:32
Definition ActorUniqueID.h:5
Definition ScoreboardId.h:10
Definition serialize.h:11