LeviLamina
Loading...
Searching...
No Matches
EditorBlockSource.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/actor/ActorType.h"
7#include "mc/world/level/BlockSource.h"
8
9// auto generated forward declare list
10// clang-format off
11class AABB;
12class Actor;
13class BlockPos;
15class ChunkSource;
16class Dimension;
17class Level;
18struct Bounds;
19// clang-format on
20
21class EditorBlockSource : public ::BlockSource {
22public:
23 // member variables
24 // NOLINTBEGIN
26 // NOLINTEND
27
28public:
29 // prevent constructor by default
30 EditorBlockSource& operator=(EditorBlockSource const&);
31 EditorBlockSource(EditorBlockSource const&);
32 EditorBlockSource();
33
34public:
35 // virtual functions
36 // NOLINTBEGIN
37 virtual ~EditorBlockSource() /*override*/ = default;
38
39 virtual void addListener(::BlockSourceListener& l) /*override*/;
40
41 virtual void removeListener(::BlockSourceListener& l) /*override*/;
42
43 virtual ::gsl::span<::gsl::not_null<::Actor*>>
44 fetchEntities(::Actor const* except, ::AABB const& bb, bool useHitbox, bool getDisplayEntities) /*override*/;
45
46 virtual ::gsl::span<::gsl::not_null<::Actor*>> fetchEntities(
47 ::ActorType entityTypeId,
48 ::AABB const& bb,
49 ::Actor const* except,
50 ::std::function<bool(::Actor*)> selector
51 ) /*override*/;
52
53 virtual bool hasChunksAt(::Bounds const& bounds, bool ignoreClientChunk) const /*override*/;
54
55 virtual bool hasChunksAt(::BlockPos const& pos, int r, bool ignoreClientChunk) const /*override*/;
56
57 virtual bool hasChunksAt(::AABB const& bb, bool ignoreClientChunk) const /*override*/;
58 // NOLINTEND
59
60public:
61 // member functions
62 // NOLINTBEGIN
63#ifdef LL_PLAT_C
64 MCNAPI EditorBlockSource(::Level& level, ::Dimension& dimension, ::ChunkSource& chunkSource, ::AABB const& bounds);
65#endif
66 // NOLINTEND
67
68public:
69 // constructor thunks
70 // NOLINTBEGIN
71#ifdef LL_PLAT_C
72 MCNAPI void* $ctor(::Level& level, ::Dimension& dimension, ::ChunkSource& chunkSource, ::AABB const& bounds);
73#endif
74 // NOLINTEND
75
76public:
77 // virtual function thunks
78 // NOLINTBEGIN
79#ifdef LL_PLAT_C
80 MCNAPI void $addListener(::BlockSourceListener& l);
81
82 MCNAPI void $removeListener(::BlockSourceListener& l);
83
84 MCNAPI ::gsl::span<::gsl::not_null<::Actor*>>
85 $fetchEntities(::Actor const* except, ::AABB const& bb, bool useHitbox, bool getDisplayEntities);
86
87 MCNAPI ::gsl::span<::gsl::not_null<::Actor*>> $fetchEntities(
88 ::ActorType entityTypeId,
89 ::AABB const& bb,
90 ::Actor const* except,
91 ::std::function<bool(::Actor*)> selector
92 );
93
94 MCNAPI bool $hasChunksAt(::Bounds const& bounds, bool ignoreClientChunk) const;
95
96 MCNAPI bool $hasChunksAt(::BlockPos const& pos, int r, bool ignoreClientChunk) const;
97
98 MCNAPI bool $hasChunksAt(::AABB const& bb, bool ignoreClientChunk) const;
99#endif
100
101
102 // NOLINTEND
103
104public:
105 // vftables
106 // NOLINTBEGIN
107 MCNAPI static void** $vftable();
108 // NOLINTEND
109};
Definition AABB.h:18
Definition Actor.h:125
Definition BlockPos.h:21
Definition BlockSourceListener.h:18
Definition ChunkSource.h:37
Definition Dimension.h:89
static MCAPI void ** $vftable()
Definition Level.h:255
Definition Bounds.h:8
Definition Alias.h:14