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