LeviLamina
Loading...
Searching...
No Matches
WorldLimitChunkSource.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/chunk/ChunkSource.h"
7
8// auto generated forward declare list
9// clang-format off
10class BlockPos;
11class ChunkPos;
12class LevelChunk;
13struct Bounds;
14// clang-format on
15
17public:
18 // member variables
19 // NOLINTBEGIN
20 ::ll::TypedStorage<4, 48, ::Bounds> mLimitArea;
21 // NOLINTEND
22
23public:
24 // virtual functions
25 // NOLINTBEGIN
26 // vIndex: 0
27 virtual ~WorldLimitChunkSource() /*override*/ = default;
28
29 // vIndex: 7
30 virtual ::std::shared_ptr<::LevelChunk>
31 createNewChunk(::ChunkPos const& cp, ::ChunkSource::LoadMode lm, bool readOnly) /*override*/;
32
33 // vIndex: 3
34 virtual ::std::shared_ptr<::LevelChunk> getExistingChunk(::ChunkPos const& cp) /*override*/;
35
36 // vIndex: 24
37 virtual bool isWithinWorldLimit(::ChunkPos const& cp) const /*override*/;
38
39 // vIndex: 28
40 virtual bool canCreateViews() const /*override*/;
41
42 // vIndex: 25
43 virtual ::std::unordered_map<::ChunkPos, ::std::weak_ptr<::LevelChunk>> const* getChunkMap() /*override*/;
44 // NOLINTEND
45
46public:
47 // member functions
48 // NOLINTBEGIN
49 MCAPI
50 WorldLimitChunkSource(::std::unique_ptr<::ChunkSource> storage, ::BlockPos const& center, int width, int depth);
51 // NOLINTEND
52
53public:
54 // constructor thunks
55 // NOLINTBEGIN
56 MCAPI void* $ctor(::std::unique_ptr<::ChunkSource> storage, ::BlockPos const& center, int width, int depth);
57 // NOLINTEND
58
59public:
60 // destructor thunk
61 // NOLINTBEGIN
62
63 // NOLINTEND
64
65public:
66 // virtual function thunks
67 // NOLINTBEGIN
68 MCAPI ::std::shared_ptr<::LevelChunk>
69 $createNewChunk(::ChunkPos const& cp, ::ChunkSource::LoadMode lm, bool readOnly);
70
71 MCAPI ::std::shared_ptr<::LevelChunk> $getExistingChunk(::ChunkPos const& cp);
72
73 MCAPI bool $isWithinWorldLimit(::ChunkPos const& cp) const;
74
75 MCFOLD bool $canCreateViews() const;
76
77 MCAPI ::std::unordered_map<::ChunkPos, ::std::weak_ptr<::LevelChunk>> const* $getChunkMap();
78 // NOLINTEND
79
80public:
81 // vftables
82 // NOLINTBEGIN
83 MCAPI static void** $vftable();
84 // NOLINTEND
85};
Definition BlockPos.h:18
Definition ChunkPos.h:11
Definition ChunkSource.h:34
Definition LevelChunk.h:73
Definition WorldLimitChunkSource.h:16
Definition Bounds.h:10