Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ScriptPlayerItemAttackEntityBeforeEvent.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/script_core/lifetime_registry/scripting/StrongTypedObjectHandle.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class Player;
14namespace ScriptModuleMinecraft { class ScriptActor; }
15namespace ScriptModuleMinecraft { class ScriptItemStack; }
16namespace ScriptModuleMinecraft { class ScriptPlayer; }
17namespace Scripting { class WeakLifetimeScope; }
18namespace Scripting { struct ClassBinding; }
19// clang-format on
20
21namespace ScriptModuleMinecraft {
22
23struct ScriptPlayerItemAttackEntityBeforeEvent {
24public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<8, 32, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptPlayer>> mPlayer;
28 ::ll::TypedStorage<8, 32, ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptActor>> mTarget;
29 ::ll::TypedStorage<
30 8,
31 40,
32 ::std::optional<::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptItemStack>>>
33 mItemStack;
34 ::ll::TypedStorage<4, 16, ::std::optional<::Vec3>> mAimDirection;
35 ::ll::TypedStorage<1, 1, bool> mCancel;
36 // NOLINTEND
37
38public:
39 // prevent constructor by default
40 ScriptPlayerItemAttackEntityBeforeEvent();
41
42public:
43 // member functions
44 // NOLINTBEGIN
46 ::Player& player,
47 ::Actor& target,
50 );
51 // NOLINTEND
52
53public:
54 // static functions
55 // NOLINTBEGIN
56 MCNAPI static ::Scripting::ClassBinding bind();
57 // NOLINTEND
58
59public:
60 // constructor thunks
61 // NOLINTBEGIN
62 MCNAPI void* $ctor(
63 ::Player& player,
64 ::Actor& target,
67 );
68 // NOLINTEND
69};
70
71} // namespace ScriptModuleMinecraft
Definition Actor.h:116
Definition Player.h:131
Definition ScriptActor.h:64
Definition ScriptItemStack.h:30
Definition ScriptPlayer.h:42
Definition WeakLifetimeScope.h:12
Definition PlayerItemAttackEntityBeforeEvent.h:14
MCAPI void * $ctor(::Player &player, ::Actor &target, ::PlayerItemAttackEntityBeforeEvent const &eventData, ::Scripting::WeakLifetimeScope &scope)
MCAPI ScriptPlayerItemAttackEntityBeforeEvent(::Player &player, ::Actor &target, ::PlayerItemAttackEntityBeforeEvent const &eventData, ::Scripting::WeakLifetimeScope &scope)
Definition ClassBinding.h:10