LeviLamina
Loading...
Searching...
No Matches
TickingAreaView.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/AutomaticID.h"
7#include "mc/world/level/ticking/ITickingAreaView.h"
8
9// auto generated forward declare list
10// clang-format off
11class BlockSource;
12class ChunkPos;
13class ChunkSource;
14class ChunkViewSource;
15class Dimension;
16class Level;
17class LevelChunk;
18class Random;
19struct Bounds;
20struct Tick;
21namespace LevelChunkTicking { struct Registry; }
22// clang-format on
23
25public:
26 // member variables
27 // NOLINTBEGIN
32 // NOLINTEND
33
34public:
35 // prevent constructor by default
36 TickingAreaView& operator=(TickingAreaView const&);
39
40public:
41 // virtual functions
42 // NOLINTBEGIN
43 // vIndex: 0
44 virtual ~TickingAreaView() /*override*/;
45
46 // vIndex: 1
47 virtual void init(::Bounds const& bounds, bool isCircle) /*override*/;
48
49 // vIndex: 2
50 virtual void tick(::Tick const& currentTick, ::BlockSource& region, bool preload, bool randomize) /*override*/;
51
52 // vIndex: 3
53 virtual void tickSeasons(::BlockSource& region, ::Random& random) /*override*/;
54
55 // vIndex: 4
56 virtual ::DimensionType getDimensionId() const /*override*/;
57
58 // vIndex: 5
59 virtual ::Bounds const& getBounds() const /*override*/;
60
61 // vIndex: 6
62 virtual bool isCircle() const /*override*/;
63
64 // vIndex: 7
65 virtual bool isDoneLoading() const /*override*/;
66
67 // vIndex: 8
68 virtual bool checkInitialLoadDone(::Tick currentLevelTick) /*override*/;
69
70 // vIndex: 9
71 virtual bool checkLoadedChunkNeighborsDone(::BlockSource const& region, bool useDoneLoading) const /*override*/;
72
73 // vIndex: 10
74 virtual void move(::Bounds const& bounds) /*override*/;
75
76 // vIndex: 11
77 virtual ::std::unique_ptr<::ChunkViewSource> createChildSource() /*override*/;
78
79 // vIndex: 12
80 virtual ::std::shared_ptr<::LevelChunk> getAvailableChunk(::ChunkPos const& cp) /*override*/;
81 // NOLINTEND
82
83public:
84 // member functions
85 // NOLINTBEGIN
86 MCNAPI explicit TickingAreaView(::ChunkSource& parent);
87
88 MCNAPI bool _tickChunk(
89 ::Tick const& currentTick,
90 ::BlockSource& region,
91 ::Level& level,
92 ::ChunkPos const& cp,
94 );
95 // NOLINTEND
96
97public:
98 // constructor thunks
99 // NOLINTBEGIN
100 MCNAPI void* $ctor(::ChunkSource& parent);
101 // NOLINTEND
102
103public:
104 // destructor thunk
105 // NOLINTBEGIN
106 MCNAPI void $dtor();
107 // NOLINTEND
108
109public:
110 // virtual function thunks
111 // NOLINTBEGIN
112 MCNAPI void $init(::Bounds const& bounds, bool isCircle);
113
114 MCNAPI void $tick(::Tick const& currentTick, ::BlockSource& region, bool preload, bool randomize);
115
116 MCNAPI void $tickSeasons(::BlockSource& region, ::Random& random);
117
118 MCNAPI ::DimensionType $getDimensionId() const;
119
120 MCNAPI ::Bounds const& $getBounds() const;
121
122 MCNAPI bool $isCircle() const;
123
124 MCNAPI bool $isDoneLoading() const;
125
126 MCNAPI bool $checkInitialLoadDone(::Tick currentLevelTick);
127
128 MCNAPI bool $checkLoadedChunkNeighborsDone(::BlockSource const& region, bool useDoneLoading) const;
129
130 MCNAPI void $move(::Bounds const& bounds);
131
132 MCNAPI ::std::unique_ptr<::ChunkViewSource> $createChildSource();
133
134 MCNAPI ::std::shared_ptr<::LevelChunk> $getAvailableChunk(::ChunkPos const& cp);
135 // NOLINTEND
136
137public:
138 // vftables
139 // NOLINTBEGIN
140 MCNAPI static void** $vftable();
141 // NOLINTEND
142};
Definition BlockSource.h:67
Definition ChunkPos.h:11
Definition ChunkSource.h:34
Definition ChunkViewSource.h:22
Definition Dimension.h:83
Definition ITickingAreaView.h:20
Definition LevelChunk.h:74
Definition Level.h:238
Definition Random.h:11
Definition TickingAreaView.h:24
MCAPI TickingAreaView(::ChunkSource &parent)
MCAPI bool $checkInitialLoadDone(::Tick currentLevelTick)
MCAPI ::std::unique_ptr<::ChunkViewSource > $createChildSource()
MCAPI void $init(::Bounds const &bounds, bool isCircle)
MCAPI void * $ctor(::ChunkSource &parent)
MCAPI bool $isDoneLoading() const
static MCAPI void ** $vftable()
MCAPI bool $checkLoadedChunkNeighborsDone(::BlockSource const &region, bool useDoneLoading) const
MCAPI void $tickSeasons(::BlockSource &region, ::Random &random)
MCAPI void $dtor()
MCAPI bool $isCircle() const
MCAPI::DimensionType $getDimensionId() const
MCAPI void $move(::Bounds const &bounds)
MCAPI ::std::shared_ptr<::LevelChunk > $getAvailableChunk(::ChunkPos const &cp)
MCAPI bool _tickChunk(::Tick const &currentTick, ::BlockSource &region, ::Level &level, ::ChunkPos const &cp, ::LevelChunkTicking::Registry *registry)
MCAPI void $tick(::Tick const &currentTick, ::BlockSource &region, bool preload, bool randomize)
MCAPI::Bounds const & $getBounds() const
Definition Bounds.h:8
Definition Registry.h:10
Definition Tick.h:5
Definition Alias.h:14