LeviLamina
Loading...
Searching...
No Matches
ScriptBlockCustomComponentPlayerPlaceBeforeEvent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/scripting/lifetime_registry/StrongTypedObjectHandle.h"
7#include "mc/scripting/modules/minecraft/ScriptFacing.h"
8#include "mc/scripting/modules/minecraft/events/ScriptBlockEvent.h"
9#include "mc/scripting/modules/minecraft/events/ScriptCustomComponentBeforeEvent.h"
10#include "mc/scripting/modules/minecraft/events/ScriptCustomComponentToExecute.h"
11
12// auto generated forward declare list
13// clang-format off
14namespace BlockEvents { class BlockPlayerPlacingEvent; }
15namespace ScriptModuleMinecraft { class ScriptBlockCustomComponentInterface; }
16namespace ScriptModuleMinecraft { class ScriptBlockPermutation; }
17namespace ScriptModuleMinecraft { class ScriptPlayer; }
18namespace Scripting { class WeakLifetimeScope; }
19namespace Scripting { struct ClassBinding; }
20// clang-format on
21
22namespace ScriptModuleMinecraft {
23
24struct ScriptBlockCustomComponentPlayerPlaceBeforeEvent
25: public ::ScriptModuleMinecraft::ScriptCustomComponentBeforeEvent<::BlockEvents::BlockPlayerPlacingEvent&>,
27public:
28 // member variables
29 // NOLINTBEGIN
30 ::ll::TypedStorage<1, 1, bool> mCancel;
31 ::ll::TypedStorage<8, 32, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptBlockPermutation>>
32 mPermutationToPlace;
33 ::ll::TypedStorage<4, 4, ::ScriptModuleMinecraft::ScriptFacing> mFace;
34 ::ll::TypedStorage<
35 8,
36 40,
37 ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayer>>>
38 mPlayer;
39 // NOLINTEND
40
41public:
42 // prevent constructor by default
43 ScriptBlockCustomComponentPlayerPlaceBeforeEvent&
44 operator=(ScriptBlockCustomComponentPlayerPlaceBeforeEvent const&);
45 ScriptBlockCustomComponentPlayerPlaceBeforeEvent();
46
47public:
48 // virtual functions
49 // NOLINTBEGIN
50 virtual void updateEngineEvent(::BlockEvents::BlockPlayerPlacingEvent& engineEvent) const /*override*/;
51
52 virtual bool shouldCancel() const /*override*/;
53 // NOLINTEND
54
55public:
56 // member functions
57 // NOLINTBEGIN
58 MCAPI ScriptBlockCustomComponentPlayerPlaceBeforeEvent(
60 );
61
62 MCAPI ScriptBlockCustomComponentPlayerPlaceBeforeEvent(
65 );
66 // NOLINTEND
67
68public:
69 // static functions
70 // NOLINTBEGIN
71 MCAPI static ::Scripting::ClassBinding bind();
72
75 void>>
76 tryGetComponentsToExecute(::BlockEvents::BlockPlayerPlacingEvent const& eventData);
77 // NOLINTEND
78
79public:
80 // constructor thunks
81 // NOLINTBEGIN
83
84 MCAPI void*
85 $ctor(::BlockEvents::BlockPlayerPlacingEvent const& engineEvent, ::Scripting::WeakLifetimeScope const& scope);
86 // NOLINTEND
87
88public:
89 // virtual function thunks
90 // NOLINTBEGIN
91 MCAPI void $updateEngineEvent(::BlockEvents::BlockPlayerPlacingEvent& engineEvent) const;
92
93 MCFOLD bool $shouldCancel() const;
94
95
96 // NOLINTEND
97
98public:
99 // vftables
100 // NOLINTBEGIN
101 MCNAPI static void** $vftable();
102 // NOLINTEND
103};
104
105} // namespace ScriptModuleMinecraft
Definition BlockPlayerPlacingEvent.h:20
Definition ScriptBlockCustomComponentInterface.h:10
Definition ScriptBlockPermutation.h:24
Definition ScriptCustomComponentBeforeEvent.h:8
Definition ScriptCustomComponentToExecute.h:8
Definition ScriptPlayer.h:56
Definition WeakLifetimeScope.h:14
Definition ScriptBlockCustomComponentPlayerPlaceBeforeEvent.h:26
Definition ScriptBlockEvent.h:20
Definition ClassBinding.h:19