LeviLamina
Loading...
Searching...
No Matches
DelayActionList.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/container/MovePriorityQueue.h"
7#include "mc/world/level/chunk/QueueRequestResult.h"
8
9// auto generated forward declare list
10// clang-format off
11class CompoundTag;
12class DelayRequest;
13class Dimension;
16class IRequestAction;
17class LevelStorage;
18class ServerLevel;
19// clang-format on
20
22public:
23 // DelayActionList inner types declare
24 // clang-format off
26 // clang-format on
27
28 // DelayActionList inner types define
29 class DelayRequestQueue : public ::MovePriorityQueue<::DelayRequest, ::std::greater<::DelayRequest>> {
30 public:
31 // member functions
32 // NOLINTBEGIN
33 MCAPI int removeRequestWithAction(
34 ::DimensionDataSerializer levelStorage,
35 ::LevelStorage& actionToRemove,
36 ::gsl::not_null<::IRequestAction*> dimensionDataSerializer
37 );
38 // NOLINTEND
39 };
40
41public:
42 // member variables
43 // NOLINTBEGIN
46 // NOLINTEND
47
48public:
49 // prevent constructor by default
50 DelayActionList& operator=(DelayActionList const&);
53
54public:
55 // virtual functions
56 // NOLINTBEGIN
57 // vIndex: 0
58 virtual ~DelayActionList() = default;
59 // NOLINTEND
60
61public:
62 // member functions
63 // NOLINTBEGIN
64 MCAPI void _loadRequest(
65 ::Dimension& dimension,
66 ::std::string const& key,
67 ::CompoundTag const& tag,
69 uint64 currentTick,
70 ::std::vector<::std::string>& invalidRequestsOut
71 );
72
73 MCAPI void _loadRequests(
74 ::Dimension& dimension,
75 ::LevelStorage& levelStorage,
77 uint64 currentTick
78 );
79
80 MCAPI ::QueueRequestResult _queueRequestOrExecuteAction(
81 ::DelayRequest request,
82 ::LevelStorage& levelStorage,
83 ::Dimension& dimension,
84 uint64 currentTick,
85 bool allowDuplicates
86 );
87
88 MCAPI void
89 _saveRequest(::DelayRequest& request, ::std::string const& dimensionPrefix, ::LevelStorage& levelStorage);
90
91 MCAPI void tick(::ServerLevel& level, ::Dimension& dimension, uint64 currentTick);
92 // NOLINTEND
93
94public:
95 // destructor thunk
96 // NOLINTBEGIN
97
98 // NOLINTEND
99
100public:
101 // vftables
102 // NOLINTBEGIN
103 MCAPI static void** $vftable();
104 // NOLINTEND
105};
Definition CompoundTag.h:13
Definition DelayActionList.h:29
Definition DelayActionList.h:21
Definition DelayRequest.h:5
Definition DimensionDataSerializer.h:11
Definition Dimension.h:83
Definition ICommandOriginLoader.h:11
Definition IRequestAction.h:12
Definition LevelStorage.h:24
Definition MovePriorityQueue.h:6
Definition ServerLevel.h:52
Definition Alias.h:14