Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
MinecartCommandBlockManager.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/safety/RedactableString.h"
8#include "mc/world/level/BlockPos.h"
9#include "mc/world/level/block/CommandBlockMode.h"
10
11// auto generated forward declare list
12// clang-format off
14class CommandOrigin;
15class Player;
16// clang-format on
17
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<8, 8, ::Player&> mPlayer;
23 ::ll::TypedStorage<4, 12, ::BlockPos> mBlockPos;
24 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mActorUniqueId;
25 ::ll::TypedStorage<8, 32, ::std::string> mCommand;
26 ::ll::TypedStorage<8, 32, ::std::string> mLastOutput;
27 ::ll::TypedStorage<8, 72, ::Bedrock::Safety::RedactableString> mHoverName;
28 ::ll::TypedStorage<4, 4, uint> mTickDelay;
29 ::ll::TypedStorage<1, 1, bool> mExecuteOnFirstTick;
30 ::ll::TypedStorage<1, 1, bool> mTrackOutput;
31 // NOLINTEND
32
33public:
34 // prevent constructor by default
35 MinecartCommandBlockManager& operator=(MinecartCommandBlockManager const&);
36 MinecartCommandBlockManager(MinecartCommandBlockManager const&);
37 MinecartCommandBlockManager();
38
39public:
40 // virtual functions
41 // NOLINTBEGIN
42 virtual ~MinecartCommandBlockManager() = default;
43
44 virtual void init();
45
46 virtual bool setCommand(::std::string const& command);
47
48 virtual bool setHoverName(::Bedrock::Safety::RedactableString const& name);
49
50 virtual bool setTickDelay(uint delay);
51
52 virtual bool setShouldExecuteOnFirstTick(bool shouldExecute);
53
54 virtual bool setLastOutput(::std::string const& lastOutput);
55
56 virtual bool setTrackOutput(bool trackOutput);
57
58 virtual bool setBlockTypeMode(::CommandBlockMode mode);
59
60 virtual bool setConditional(bool mode);
61
62 virtual bool setRedstone(bool mode);
63
64 virtual void saveAndExit();
65
66 virtual ::std::string const& getCommand() const;
67
68 virtual ::std::string const& getOutput() const;
69
70 virtual bool getTrackOutput() const;
71
72 virtual bool isConditionalMode() const;
73
74 virtual bool isRedstoneMode() const;
75
76 virtual bool isMinecartCommandBlock() const;
77
78 virtual ::CommandBlockMode getCommandBlockTypeMode() const;
79
80 virtual bool getLastPerformedConditionalMode();
81
82 virtual bool getLastPerformedRedstoneMode();
83
84 virtual ::CommandBlockMode getLastPerformedCBMode();
85
86 virtual ::Bedrock::Safety::RedactableString const& getHoverName() const;
87
88 virtual uint getTickDelay() const;
89
90 virtual bool shouldExecuteOnFirstTick() const;
91
92 virtual ::BaseCommandBlock* getBaseCommandBlock();
93
94 virtual ::std::unique_ptr<::CommandOrigin> getCommandOrigin() const;
95 // NOLINTEND
96
97public:
98 // member functions
99 // NOLINTBEGIN
101
102 MCNAPI void _saveToBaseCommandBlock(::BaseCommandBlock& baseCommandBlock);
103 // NOLINTEND
104
105public:
106 // virtual function thunks
107 // NOLINTBEGIN
108 MCNAPI void $init();
109
110 MCNAPI bool $setCommand(::std::string const& command);
111
113
114 MCNAPI bool $setTickDelay(uint delay);
115
116 MCNAPI bool $setShouldExecuteOnFirstTick(bool shouldExecute);
117
118 MCNAPI bool $setLastOutput(::std::string const& lastOutput);
119
120 MCNAPI bool $setTrackOutput(bool trackOutput);
121
122 MCNAPI bool $setBlockTypeMode(::CommandBlockMode mode);
123
124 MCNAPI bool $setConditional(bool mode);
125
126 MCNAPI bool $setRedstone(bool mode);
127
128 MCNAPI void $saveAndExit();
129
130 MCNAPI ::std::string const& $getCommand() const;
131
132 MCNAPI ::std::string const& $getOutput() const;
133
134 MCNAPI bool $getTrackOutput() const;
135
136 MCNAPI bool $isConditionalMode() const;
137
138 MCNAPI bool $isRedstoneMode() const;
139
140 MCNAPI bool $isMinecartCommandBlock() const;
141
142 MCNAPI ::CommandBlockMode $getCommandBlockTypeMode() const;
143
145
147
148 MCNAPI ::CommandBlockMode $getLastPerformedCBMode();
149
150 MCNAPI ::Bedrock::Safety::RedactableString const& $getHoverName() const;
151
152 MCNAPI uint $getTickDelay() const;
153
154 MCNAPI bool $shouldExecuteOnFirstTick() const;
155
156 MCNAPI ::BaseCommandBlock* $getBaseCommandBlock();
157
158 MCNAPI ::std::unique_ptr<::CommandOrigin> $getCommandOrigin() const;
159 // NOLINTEND
160
161public:
162 // vftables
163 // NOLINTBEGIN
164 MCNAPI static void** $vftable();
165 // NOLINTEND
166};
Definition BaseCommandBlock.h:20
Definition RedactableString.h:10
Definition CommandOrigin.h:32
Definition MinecartCommandBlockManager.h:5
MCAPI bool $isMinecartCommandBlock() const
MCAPI bool $setCommand(::std::string const &command)
MCAPI bool $getLastPerformedConditionalMode()
MCAPI uint $getTickDelay() const
MCAPI bool $setBlockTypeMode(::CommandBlockMode mode)
MCAPI bool $getTrackOutput() const
MCAPI bool $setConditional(bool mode)
MCAPI bool $shouldExecuteOnFirstTick() const
MCAPI bool $setHoverName(::Bedrock::Safety::RedactableString const &name)
MCAPI bool $setTrackOutput(bool trackOutput)
MCAPI void _saveToBaseCommandBlock(::BaseCommandBlock &baseCommandBlock)
MCAPI::BaseCommandBlock * $getBaseCommandBlock()
MCAPI bool $isConditionalMode() const
MCAPI bool $setLastOutput(::std::string const &lastOutput)
MCAPI::CommandBlockMode $getLastPerformedCBMode()
MCAPI bool $setShouldExecuteOnFirstTick(bool shouldExecute)
MCAPI bool $setRedstone(bool mode)
MCAPI bool $setTickDelay(uint delay)
MCAPI::CommandBlockMode $getCommandBlockTypeMode() const
MCAPI bool $isRedstoneMode() const
MCAPI bool $getLastPerformedRedstoneMode()
MCAPI::std::string const & $getCommand() const
MCAPI::std::string const & $getOutput() const
MCAPI void _loadFromBaseCommandBlock()
MCAPI::Bedrock::Safety::RedactableString const & $getHoverName() const
static MCAPI void ** $vftable()
MCAPI ::std::unique_ptr<::CommandOrigin > $getCommandOrigin() const
Definition Player.h:131