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
54 virtual ~ScriptBlockCustomComponentPlayerPlaceBeforeEvent() /*override*/;
55 // NOLINTEND
56
57public:
58 // member functions
59 // NOLINTBEGIN
60 MCAPI ScriptBlockCustomComponentPlayerPlaceBeforeEvent(
62 );
63
64 MCAPI ScriptBlockCustomComponentPlayerPlaceBeforeEvent(
66 );
67
68 MCAPI ScriptBlockCustomComponentPlayerPlaceBeforeEvent(
71 );
72 // NOLINTEND
73
74public:
75 // static functions
76 // NOLINTBEGIN
77 MCAPI static ::Scripting::ClassBinding bind();
78
81 void>>
82 tryGetComponentsToExecute(::BlockEvents::BlockPlayerPlacingEvent const& eventData);
83 // NOLINTEND
84
85public:
86 // constructor thunks
87 // NOLINTBEGIN
89
91
92 MCAPI void*
93 $ctor(::BlockEvents::BlockPlayerPlacingEvent const& engineEvent, ::Scripting::WeakLifetimeScope const& scope);
94 // NOLINTEND
95
96public:
97 // destructor thunk
98 // NOLINTBEGIN
99 MCAPI void $dtor();
100 // NOLINTEND
101
102public:
103 // virtual function thunks
104 // NOLINTBEGIN
105 MCAPI void $updateEngineEvent(::BlockEvents::BlockPlayerPlacingEvent& engineEvent) const;
106
107 MCFOLD bool $shouldCancel() const;
108
109
110 // NOLINTEND
111
112public:
113 // vftables
114 // NOLINTBEGIN
115 MCNAPI static void** $vftable();
116 // NOLINTEND
117};
118
119} // namespace ScriptModuleMinecraft
Definition BlockPlayerPlacingEvent.h:18
Definition ScriptBlockCustomComponentInterface.h:10
Definition ScriptBlockPermutation.h:23
Definition ScriptCustomComponentBeforeEvent.h:8
Definition ScriptCustomComponentToExecute.h:8
Definition ScriptPlayer.h:54
Definition WeakLifetimeScope.h:7
Definition ScriptBlockCustomComponentPlayerPlaceBeforeEvent.h:26
Definition ScriptBlockEvent.h:17
Definition ClassBinding.h:19