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;
15struct Bounds;
16// clang-format on
17
18class EditorBlockSource : public ::BlockSource {
19public:
20 // member variables
21 // NOLINTBEGIN
23 // NOLINTEND
24
25public:
26 // prevent constructor by default
27 EditorBlockSource& operator=(EditorBlockSource const&);
28 EditorBlockSource(EditorBlockSource const&);
29 EditorBlockSource();
30
31public:
32 // virtual functions
33 // NOLINTBEGIN
34 virtual ~EditorBlockSource() /*override*/ = default;
35
36 virtual void addListener(::BlockSourceListener& l) /*override*/;
37
38 virtual void removeListener(::BlockSourceListener& l) /*override*/;
39
40 virtual ::gsl::span<::gsl::not_null<::Actor*>>
41 fetchEntities(::Actor const* except, ::AABB const& bb, bool useHitbox, bool getDisplayEntities) /*override*/;
42
43 virtual ::gsl::span<::gsl::not_null<::Actor*>> fetchEntities(
44 ::ActorType entityTypeId,
45 ::AABB const& bb,
46 ::Actor const* except,
47 ::std::function<bool(::Actor*)> selector
48 ) /*override*/;
49
50 virtual bool hasChunksAt(::Bounds const& bounds, bool ignoreClientChunk) const /*override*/;
51
52 virtual bool hasChunksAt(::BlockPos const& pos, int r, bool ignoreClientChunk) const /*override*/;
53
54 virtual bool hasChunksAt(::AABB const& bb, bool ignoreClientChunk) const /*override*/;
55 // NOLINTEND
56
57public:
58 // virtual function thunks
59 // NOLINTBEGIN
60#ifdef LL_PLAT_C
61 MCNAPI void $addListener(::BlockSourceListener& l);
62
63 MCNAPI void $removeListener(::BlockSourceListener& l);
64
65 MCNAPI ::gsl::span<::gsl::not_null<::Actor*>>
66 $fetchEntities(::Actor const* except, ::AABB const& bb, bool useHitbox, bool getDisplayEntities);
67
68 MCNAPI ::gsl::span<::gsl::not_null<::Actor*>> $fetchEntities(
69 ::ActorType entityTypeId,
70 ::AABB const& bb,
71 ::Actor const* except,
72 ::std::function<bool(::Actor*)> selector
73 );
74
75 MCNAPI bool $hasChunksAt(::Bounds const& bounds, bool ignoreClientChunk) const;
76
77 MCNAPI bool $hasChunksAt(::BlockPos const& pos, int r, bool ignoreClientChunk) const;
78
79 MCNAPI bool $hasChunksAt(::AABB const& bb, bool ignoreClientChunk) const;
80#endif
81
82
83 // NOLINTEND
84
85public:
86 // vftables
87 // NOLINTBEGIN
88 MCNAPI static void** $vftable();
89 // NOLINTEND
90};
Definition AABB.h:18
Definition Actor.h:105
Definition BlockPos.h:19
Definition BlockSourceListener.h:18
static MCAPI void ** $vftable()
Definition Bounds.h:8
Definition Alias.h:14