LeviLamina
Loading...
Searching...
No Matches
ScriptCustomSpawnRulesRegistry.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/scripting/modules/minecraft/ScriptServerStateMonitor.h"
7#include "mc/world/level/chunk/EntitySpawnReason.h"
8
9// auto generated forward declare list
10// clang-format off
11class BlockPos;
12class BlockSource;
13class IRandom;
14class Mob;
15class ServerLevel;
16namespace br::spawn { struct EntityType; }
17// clang-format on
18
19namespace ScriptModuleMinecraft {
20
21class ScriptCustomSpawnRulesRegistry : public ::ScriptModuleMinecraft::ScriptServerStateMonitor {
22public:
23 // ScriptCustomSpawnRulesRegistry inner types define
24 using EntityPredicate = ::std::function<
25 bool(::br::spawn::EntityType const&, ::BlockSource&, ::br::spawn::EntitySpawnReason&, ::BlockPos, ::IRandom&)>;
26
27 using ObstructionPredicate = ::std::function<bool(::BlockSource&, ::Mob const&, ::br::spawn::EntityType const&)>;
28
29public:
30 // member variables
31 // NOLINTBEGIN
32 ::ll::TypedStorage<8, 8, ::ServerLevel&> mLevel;
33 // NOLINTEND
34
35public:
36 // prevent constructor by default
37 ScriptCustomSpawnRulesRegistry& operator=(ScriptCustomSpawnRulesRegistry const&);
38 ScriptCustomSpawnRulesRegistry(ScriptCustomSpawnRulesRegistry const&);
39 ScriptCustomSpawnRulesRegistry();
40
41public:
42 // virtual functions
43 // NOLINTBEGIN
44 virtual void _onReload() /*override*/;
45 // NOLINTEND
46
47public:
48 // virtual function thunks
49 // NOLINTBEGIN
50 MCAPI void $_onReload();
51
52
53 // NOLINTEND
54
55public:
56 // vftables
57 // NOLINTBEGIN
58 MCNAPI static void** $vftable();
59 // NOLINTEND
60};
61
62} // namespace ScriptModuleMinecraft
Definition BlockPos.h:17
Definition BlockSource.h:71
Definition IRandom.h:10
Definition Mob.h:56
Definition ScriptServerStateMonitor.h:16
Definition ServerLevel.h:57
Definition EntityType.h:16