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/lifetime_registry/StrongTypedObjectHandle.h"
7#include "mc/deps/scripting/lifetime_registry/WeakHandleFromThis.h"
8#include "mc/deps/scripting/runtime/Result_deprecated.h"
9#include "mc/scripting/modules/minecraft/scoreboard/ScriptDisplayObjectiveSlotId.h"
10
11// auto generated forward declare list
12// clang-format off
14class Level;
15class Objective;
16class Scoreboard;
18struct ScoreboardId;
19namespace ScriptModuleMinecraft { class ScriptActor; }
20namespace ScriptModuleMinecraft { class ScriptScoreboardIdentity; }
21namespace ScriptModuleMinecraft { class ScriptScoreboardObjective; }
22namespace ScriptModuleMinecraft { class ScriptScoreboardObjectiveDisplayOptions; }
23namespace Scripting { class WeakLifetimeScope; }
24namespace Scripting { struct ClassBinding; }
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 MCNAPI ScriptScoreboard(::Scoreboard& scoreboard, ::Level& level, ::Scripting::WeakLifetimeScope const& scope);
58
59 MCNAPI ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptScoreboardObjective>
61
62 MCNAPI ::Scripting::Result_deprecated<
64 addObjective(::std::string const& objectiveId, ::std::optional<::std::string> const& displayName);
65
66 MCNAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptScoreboardObjective>>
67 clearObjectiveAtDisplaySlot(::ScriptModuleMinecraft::ScriptDisplayObjectiveSlotId displaySlotId);
68
69 MCNAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptScoreboardObjective>>
70 getObjective(::std::string const& objectiveId);
71
72 MCNAPI ::std::optional<::ScriptModuleMinecraft::ScriptScoreboardObjectiveDisplayOptions>
73 getObjectiveAtDisplaySlot(::ScriptModuleMinecraft::ScriptDisplayObjectiveSlotId displaySlotId);
74
75 MCNAPI ::std::vector<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptScoreboardObjective>>
77
78 MCNAPI ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptScoreboardIdentity>
80
81 MCNAPI ::ScoreboardIdentityRef* getOrCreateScoreboardIdentityRef(
82 ::std::variant<
85 ::std::string> const& participant
86 );
87
88 MCNAPI ::std::vector<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptScoreboardIdentity>>
90
91 MCNAPI void removeIdentityById(::ScoreboardId const& id);
92
93 MCNAPI ::Scripting::Result_deprecated<bool> removeObjective(
94 ::std::variant<
96 ::std::string> const& objectiveId
97 );
98
99 MCNAPI ::Scripting::Result_deprecated<
100 ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptScoreboardObjective>>>
102 ::ScriptModuleMinecraft::ScriptDisplayObjectiveSlotId displaySlotId,
104 );
105
106 MCNAPI ::ScoreboardIdentityRef* tryGetScoreboardParticipantIdentityRef(
107 ::std::variant<
110 ::std::string> const& participant
111 ) const;
112
113 MCNAPI ::std::optional<::ScoreboardId> tryGetScoreboardParticipantScoreboardId(
114 ::std::variant<
117 ::std::string> const& participant
118 ) const;
119 // NOLINTEND
120
121public:
122 // static functions
123 // NOLINTBEGIN
124 MCNAPI static ::Scripting::ClassBinding bind();
125 // NOLINTEND
126
127public:
128 // constructor thunks
129 // NOLINTBEGIN
130 MCNAPI void* $ctor(::Scoreboard& scoreboard, ::Level& level, ::Scripting::WeakLifetimeScope const& scope);
131 // NOLINTEND
132
133public:
134 // destructor thunk
135 // NOLINTBEGIN
136 MCNAPI void $dtor();
137 // NOLINTEND
138
139public:
140 // vftables
141 // NOLINTBEGIN
142 MCNAPI static void** $vftable();
143 // NOLINTEND
144};
145
146} // namespace ScriptModuleMinecraft
Definition IdentityDefinition.h:10
Definition Level.h:238
Definition Objective.h:17
Definition ScoreboardIdentityRef.h:17
Definition Scoreboard.h:32
Definition ScriptScoreboardObjectiveDisplayOptions.h:17
Definition ScriptScoreboard.h:29
MCAPI ::std::vector<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptScoreboardObjective > > getObjectives()
MCAPI ::std::optional<::ScoreboardId > tryGetScoreboardParticipantScoreboardId(::std::variant< ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptScoreboardIdentity >, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActor >, ::std::string > const &participant) const
MCAPI ::std::optional<::ScriptModuleMinecraft::ScriptScoreboardObjectiveDisplayOptions > getObjectiveAtDisplaySlot(::ScriptModuleMinecraft::ScriptDisplayObjectiveSlotId displaySlotId)
MCAPI ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptScoreboardIdentity > getOrCreateScoreboardIdentity(::IdentityDefinition const &identity)
MCAPI ScriptScoreboard(::Scoreboard &scoreboard, ::Level &level, ::Scripting::WeakLifetimeScope const &scope)
MCAPI::ScoreboardIdentityRef * getOrCreateScoreboardIdentityRef(::std::variant< ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptScoreboardIdentity >, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActor >, ::std::string > const &participant)
MCAPI ::Scripting::Result_deprecated< bool > removeObjective(::std::variant< ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptScoreboardObjective >, ::std::string > const &objectiveId)
MCAPI::ScoreboardIdentityRef * tryGetScoreboardParticipantIdentityRef(::std::variant< ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptScoreboardIdentity >, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActor >, ::std::string > const &participant) const
static MCAPI ::Scripting::ClassBinding bind()
MCAPI ::Scripting::Result_deprecated< ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptScoreboardObjective > > addObjective(::std::string const &objectiveId, ::std::optional<::std::string > const &displayName)
MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptScoreboardObjective > > getObjective(::std::string const &objectiveId)
MCAPI ::Scripting::Result_deprecated< ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptScoreboardObjective > > > setObjectiveAtDisplaySlot(::ScriptModuleMinecraft::ScriptDisplayObjectiveSlotId displaySlotId, ::ScriptModuleMinecraft::ScriptScoreboardObjectiveDisplayOptions const &displaySetting)
MCAPI ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptScoreboardObjective > _getOrCreateScoreboardObjective(::Objective const &objective)
MCAPI void removeIdentityById(::ScoreboardId const &id)
MCAPI void * $ctor(::Scoreboard &scoreboard, ::Level &level, ::Scripting::WeakLifetimeScope const &scope)
MCAPI ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptScoreboardObjective > > clearObjectiveAtDisplaySlot(::ScriptModuleMinecraft::ScriptDisplayObjectiveSlotId displaySlotId)
MCAPI ::std::vector<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptScoreboardIdentity > > getParticipants()
Definition StrongTypedObjectHandle.h:8
Definition WeakHandleFromThis.h:8
Definition WeakLifetimeScope.h:12
Definition ScoreboardId.h:10
Definition Alias.h:14