LeviLamina
Loading...
Searching...
No Matches
ScriptPlayerPlaceBlockBeforeEvent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/math/Vec3.h"
7#include "mc/deps/scripting/lifetime_registry/StrongTypedObjectHandle.h"
8#include "mc/scripting/modules/minecraft/ScriptFacing.h"
9#include "mc/scripting/modules/minecraft/events/ScriptBlockEvent.h"
10
11// auto generated forward declare list
12// clang-format off
13class Block;
14class BlockPos;
15class Dimension;
16class Player;
17namespace ScriptModuleMinecraft { class ScriptBlockPermutation; }
18namespace ScriptModuleMinecraft { class ScriptPlayer; }
19namespace Scripting { class WeakLifetimeScope; }
20namespace Scripting { struct ClassBinding; }
21// clang-format on
22
23namespace ScriptModuleMinecraft {
24
25struct ScriptPlayerPlaceBlockBeforeEvent : public ::ScriptModuleMinecraft::ScriptBlockEvent {
26public:
27 // member variables
28 // NOLINTBEGIN
29 ::ll::TypedStorage<8, 32, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayer>> mPlayer;
30 ::ll::TypedStorage<4, 4, ::ScriptModuleMinecraft::ScriptFacing> mFace;
31 ::ll::TypedStorage<4, 12, ::Vec3> mFaceLocation;
32 ::ll::TypedStorage<1, 1, bool> mCancel;
33 ::ll::TypedStorage<8, 32, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptBlockPermutation>>
34 mPermutation;
35 // NOLINTEND
36
37public:
38 // prevent constructor by default
39 ScriptPlayerPlaceBlockBeforeEvent();
40
41public:
42 // member functions
43 // NOLINTBEGIN
44 MCAPI ScriptPlayerPlaceBlockBeforeEvent(
45 ::Player const& player,
46 ::Dimension& dimension,
47 ::BlockPos const& pos,
48 uchar face,
49 ::Vec3 const& faceLocation,
50 ::Block const& permutationToPlace,
52 );
53 // NOLINTEND
54
55public:
56 // static functions
57 // NOLINTBEGIN
58 MCAPI static ::Scripting::ClassBinding bind();
59 // NOLINTEND
60
61public:
62 // constructor thunks
63 // NOLINTBEGIN
64 MCAPI void* $ctor(
65 ::Player const& player,
66 ::Dimension& dimension,
67 ::BlockPos const& pos,
68 uchar face,
69 ::Vec3 const& faceLocation,
70 ::Block const& permutationToPlace,
72 );
73 // NOLINTEND
74};
75
76} // namespace ScriptModuleMinecraft
Definition BlockPos.h:21
Definition Block.h:69
Definition Dimension.h:89
Definition Player.h:137
Definition ScriptBlockPermutation.h:24
Definition ScriptPlayer.h:56
Definition WeakLifetimeScope.h:14
Definition Vec3.h:10
Definition ScriptBlockEvent.h:20
Definition ClassBinding.h:19