LeviLamina
Loading...
Searching...
No Matches
PlayerActionComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/math/Vec2.h"
7#include "mc/entity/components/PackedItemUseLegacyInventoryTransaction.h"
8#include "mc/entity/components/PlayerBlockActions.h"
9#include "mc/network/packet/PlayerActionType.h"
10
11// auto generated forward declare list
12// clang-format off
13class BlockPos;
15// clang-format on
16
17struct PlayerActionComponent {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<8, 8, ::std::bitset<38>> mPlayerActions;
22 ::ll::TypedStorage<8, 312, ::std::optional<::PackedItemUseLegacyInventoryTransaction>> mItemUseTransaction;
23 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ItemStackRequestData>> mItemStackRequest;
24 ::ll::TypedStorage<8, 24, ::PlayerBlockActions> mPlayerBlockActions;
25 ::ll::TypedStorage<4, 8, ::Vec2> mPreSimulationRotation;
26 // NOLINTEND
27
28public:
29 // prevent constructor by default
30 PlayerActionComponent& operator=(PlayerActionComponent const&);
31 PlayerActionComponent(PlayerActionComponent const&);
32
33public:
34 // member functions
35 // NOLINTBEGIN
36 MCAPI PlayerActionComponent();
37
38 MCAPI PlayerActionComponent(::PlayerActionComponent&&);
39
40#ifdef LL_PLAT_C
41 MCAPI void addAbortDestroyBlock(::BlockPos const& pos, int data);
42#endif
43
44 MCAPI void addAction(::PlayerActionType action);
45
46#ifdef LL_PLAT_C
47 MCAPI void addContinueDestroyBlock(::BlockPos const& pos, int facing);
48
49 MCAPI void addCrackBlock(::BlockPos const& pos, int facing);
50
51 MCAPI void addItemStackRequest(::std::unique_ptr<::ItemStackRequestData> request);
52
53 MCAPI void addPredictDestroyBlock(::BlockPos const& pos, int facing);
54
55 MCAPI void addStartDestroyBlock(::BlockPos const& pos, int facing);
56
57 MCAPI void addStopDestroyBlock();
58#endif
59
60 MCAPI void clear();
61
62 MCAPI ::PlayerActionComponent& operator=(::PlayerActionComponent&&);
63
64 MCAPI ~PlayerActionComponent();
65 // NOLINTEND
66
67public:
68 // constructor thunks
69 // NOLINTBEGIN
70 MCAPI void* $ctor();
71
72 MCAPI void* $ctor(::PlayerActionComponent&&);
73 // NOLINTEND
74
75public:
76 // destructor thunk
77 // NOLINTBEGIN
78 MCAPI void $dtor();
79 // NOLINTEND
80};
Definition BlockPos.h:21
Definition ItemStackRequestData.h:20