Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
NeighborChangedQueue.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class Block;
8class BlockSource;
9class ChunkBlockPos;
10class CompoundTag;
11struct NeighborChange;
12struct Tick;
13// clang-format on
14
15class NeighborChangedQueue {
16public:
17 // NeighborChangedQueue inner types declare
18 // clang-format off
19 struct Record;
20 // clang-format on
21
22 // NeighborChangedQueue inner types define
23 struct Record {
24 public:
25 // member variables
26 // NOLINTBEGIN
30 // NOLINTEND
31
32 public:
33 // prevent constructor by default
34 Record& operator=(Record const&);
35 Record(Record const&);
36 Record();
37 };
38
39public:
40 // member variables
41 // NOLINTBEGIN
46 // NOLINTEND
47
48public:
49 // prevent constructor by default
50 NeighborChangedQueue& operator=(NeighborChangedQueue const&);
51 NeighborChangedQueue(NeighborChangedQueue const&);
52 NeighborChangedQueue();
53
54public:
55 // member functions
56 // NOLINTBEGIN
58
59 MCNAPI void load(::CompoundTag const& tag);
60
61 MCNAPI ::std::optional<::NeighborChangedQueue::Record>
62 loadRecordPayload(::CompoundTag const& tag, ::ChunkBlockPos const& notifiedPos) const;
63
64 MCNAPI ::NeighborChangedQueue& operator=(::NeighborChangedQueue&& other);
65
66 MCNAPI void recordChange(
67 ::Tick const& currentTick,
68 ::ChunkBlockPos const& notifiedPos,
69 ::Block const& listenerPermutation,
70 ::NeighborChange const& change
71 );
72
73 MCNAPI void save(::CompoundTag& tag) const;
74
75 MCNAPI ::std::unique_ptr<::CompoundTag> saveRecordPayload(::NeighborChangedQueue::Record const& record) const;
76
77 MCNAPI void sendEvents(::BlockSource& region);
78
79 MCNAPI ::std::vector<::NeighborChangedQueue::Record> takeFront(uint64 maxCount);
80 // NOLINTEND
81};
Definition BlockSource.h:72
Definition Block.h:42
Definition ChunkBlockPos.h:10
Definition CompoundTag.h:18
MCAPI void recordChange(::Tick const &currentTick, ::ChunkBlockPos const &notifiedPos, ::Block const &listenerPermutation, ::NeighborChange const &change)
MCAPI ::std::optional<::NeighborChangedQueue::Record > loadRecordPayload(::CompoundTag const &tag, ::ChunkBlockPos const &notifiedPos) const
MCAPI void sendEvents(::BlockSource &region)
MCAPI void save(::CompoundTag &tag) const
MCAPI bool appendRestoredRecord(::NeighborChangedQueue::Record record)
MCAPI ::std::vector<::NeighborChangedQueue::Record > takeFront(uint64 maxCount)
MCAPI::NeighborChangedQueue & operator=(::NeighborChangedQueue &&other)
MCAPI void load(::CompoundTag const &tag)
MCAPI ::std::unique_ptr<::CompoundTag > saveRecordPayload(::NeighborChangedQueue::Record const &record) const
Definition NeighborChange.h:5
Definition NeighborChangedQueue.h:23
Definition Tick.h:5
Definition Alias.h:14