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/deps/scripting/runtime/Result.h"
7#include "mc/scripting/modules/minecraft/ScriptServerStateMonitor.h"
8#include "mc/world/level/spawn/EntitySpawnReason.h"
9
10// auto generated forward declare list
11// clang-format off
12class BlockPos;
13class BlockSource;
14class IRandom;
15class Mob;
16namespace ScriptModuleMinecraft { struct ScriptNamespaceNameError; }
17namespace ScriptModuleMinecraft { struct ScriptSpawnRulesInvalidRegistryError; }
18namespace Scripting { struct InvalidArgumentError; }
19namespace br::spawn { struct EntityType; }
20// clang-format on
21
22namespace ScriptModuleMinecraft {
23
25public:
26 // member variables
27 // NOLINTBEGIN
29 // NOLINTEND
30
31public:
32 // prevent constructor by default
36
37public:
38 // virtual functions
39 // NOLINTBEGIN
40 // vIndex: 1
41 virtual void _onReload() /*override*/;
42
43 // vIndex: 0
44 virtual ~ScriptCustomSpawnRulesRegistry() /*override*/ = default;
45 // NOLINTEND
46
47public:
48 // member functions
49 // NOLINTBEGIN
50 MCNAPI ::Scripting::Result<
51 void,
56 ::std::string const& id,
57 ::std::function<bool(
60 ::br::spawn::EntitySpawnReason&,
63 )> callback
64 );
65
66 MCNAPI ::Scripting::Result<
67 void,
72 ::std::string const& id,
73 ::std::function<bool(::BlockSource&, ::Mob const&, ::br::spawn::EntityType const&)> callback
74 );
75 // NOLINTEND
76
77public:
78 // virtual function thunks
79 // NOLINTBEGIN
80 MCNAPI void $_onReload();
81 // NOLINTEND
82
83public:
84 // vftables
85 // NOLINTBEGIN
86 MCNAPI static void** $vftable();
87 // NOLINTEND
88};
89
90} // namespace ScriptModuleMinecraft
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition IRandom.h:10
Definition Mob.h:47
Definition ScriptCustomSpawnRulesRegistry.h:24
MCAPI ::Scripting::Result< void, ::ScriptModuleMinecraft::ScriptSpawnRulesInvalidRegistryError, ::ScriptModuleMinecraft::ScriptNamespaceNameError, ::Scripting::InvalidArgumentError > registerObstructionCallback(::std::string const &id, ::std::function< bool(::BlockSource &, ::Mob const &, ::br::spawn::EntityType const &)> callback)
MCAPI ::Scripting::Result< void, ::ScriptModuleMinecraft::ScriptSpawnRulesInvalidRegistryError, ::ScriptModuleMinecraft::ScriptNamespaceNameError, ::Scripting::InvalidArgumentError > registerEntitySpawnCallback(::std::string const &id, ::std::function< bool(::br::spawn::EntityType const &, ::BlockSource &, ::br::spawn::EntitySpawnReason &, ::BlockPos, ::IRandom &)> callback)
Definition ScriptServerStateMonitor.h:12
Definition ScriptNamespaceNameError.h:18
Definition ScriptSpawnRulesInvalidRegistryError.h:17
Definition InvalidArgumentError.h:11
Definition EntityType.h:16
Definition Alias.h:14