LeviLamina
Loading...
Searching...
No Matches
ScriptScoreboard.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/scripting/binding_type/ClassBindingBuilder.h"
7#include "mc/deps/scripting/lifetime_registry/StrongTypedObjectHandle.h"
8#include "mc/deps/scripting/lifetime_registry/WeakHandleFromThis.h"
9#include "mc/deps/scripting/runtime/Result_deprecated.h"
10#include "mc/scripting/modules/minecraft/scoreboard/ScriptDisplayObjectiveSlotId.h"
11
12// auto generated forward declare list
13// clang-format off
15class Level;
16class Objective;
17class Scoreboard;
19struct ScoreboardId;
20namespace ScriptModuleMinecraft { class ScriptActor; }
21namespace ScriptModuleMinecraft { class ScriptScoreboardIdentity; }
22namespace ScriptModuleMinecraft { class ScriptScoreboardObjective; }
23namespace ScriptModuleMinecraft { class ScriptScoreboardObjectiveDisplayOptions; }
24namespace Scripting { class WeakLifetimeScope; }
25// clang-format on
26
27namespace ScriptModuleMinecraft {
28
29class ScriptScoreboard : public ::Scripting::WeakHandleFromThis<::ScriptModuleMinecraft::ScriptScoreboard> {
30public:
31 // member variables
32 // NOLINTBEGIN
39 // NOLINTEND
40
41public:
42 // prevent constructor by default
43 ScriptScoreboard& operator=(ScriptScoreboard const&);
46
47public:
48 // virtual functions
49 // NOLINTBEGIN
50 // vIndex: 0
51 virtual ~ScriptScoreboard();
52 // NOLINTEND
53
54public:
55 // member functions
56 // NOLINTBEGIN
57 MCAPI ScriptScoreboard(::Scoreboard& scoreboard, ::Level& level, ::Scripting::WeakLifetimeScope const& scope);
58
59 MCAPI ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptScoreboardObjective>
60 _getOrCreateScoreboardObjective(::Objective const& objective);
61
62 MCAPI ::Scripting::Result_deprecated<
64 addObjective(::std::string const& objectiveId, ::std::optional<::std::string> const& displayName);
65
66 MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptScoreboardObjective>>
67 clearObjectiveAtDisplaySlot(::ScriptModuleMinecraft::ScriptDisplayObjectiveSlotId displaySlotId);
68
69 MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptScoreboardObjective>>
70 getObjective(::std::string const& objectiveId);
71
72 MCAPI ::std::optional<::ScriptModuleMinecraft::ScriptScoreboardObjectiveDisplayOptions>
73 getObjectiveAtDisplaySlot(::ScriptModuleMinecraft::ScriptDisplayObjectiveSlotId displaySlotId);
74
75 MCAPI ::std::vector<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptScoreboardObjective>>
76 getObjectives();
77
78 MCAPI ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptScoreboardIdentity>
79 getOrCreateScoreboardIdentity(::IdentityDefinition const& identity);
80
81 MCAPI ::ScoreboardIdentityRef* getOrCreateScoreboardIdentityRef(
82 ::std::variant<
85 ::std::string> const& participant
86 );
87
88 MCAPI ::std::vector<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptScoreboardIdentity>>
89 getParticipants();
90
91 MCAPI void removeIdentityById(::ScoreboardId const& id);
92
93 MCAPI ::Scripting::Result_deprecated<bool>
94 removeObjective(::std::variant<
96 ::std::string> const& objectiveId);
97
98 MCAPI ::Scripting::Result_deprecated<
99 ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptScoreboardObjective>>>
100 setObjectiveAtDisplaySlot(
101 ::ScriptModuleMinecraft::ScriptDisplayObjectiveSlotId displaySlotId,
103 );
104
105 MCAPI ::ScoreboardIdentityRef* tryGetScoreboardParticipantIdentityRef(
106 ::std::variant<
109 ::std::string> const& participant
110 ) const;
111
112 MCAPI ::std::optional<::ScoreboardId> tryGetScoreboardParticipantScoreboardId(
113 ::std::variant<
116 ::std::string> const& participant
117 ) const;
118 // NOLINTEND
119
120public:
121 // static functions
122 // NOLINTBEGIN
123 MCAPI static ::Scripting::ClassBindingBuilder<::ScriptModuleMinecraft::ScriptScoreboard> bind();
124 // NOLINTEND
125
126public:
127 // constructor thunks
128 // NOLINTBEGIN
129 MCAPI void* $ctor(::Scoreboard& scoreboard, ::Level& level, ::Scripting::WeakLifetimeScope const& scope);
130 // NOLINTEND
131
132public:
133 // destructor thunk
134 // NOLINTBEGIN
135 MCAPI void $dtor();
136 // NOLINTEND
137
138public:
139 // vftables
140 // NOLINTBEGIN
141 MCAPI static void** $vftable();
142 // NOLINTEND
143};
144
145} // namespace ScriptModuleMinecraft
Definition IdentityDefinition.h:12
Definition Level.h:234
Definition Objective.h:17
Definition ScoreboardIdentityRef.h:17
Definition Scoreboard.h:32
Definition ScriptScoreboardObjectiveDisplayOptions.h:17
Definition ScriptScoreboard.h:29
Definition StrongTypedObjectHandle.h:8
Definition WeakHandleFromThis.h:8
Definition WeakLifetimeScope.h:12
Definition ScoreboardId.h:10
Definition Alias.h:14