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
10// auto generated forward declare list
11// clang-format off
12class BlockPos;
14// clang-format on
15
16struct PlayerActionComponent {
17public:
18 // member variables
19 // NOLINTBEGIN
20 ::ll::TypedStorage<8, 8, ::std::bitset<39>> mPlayerActions;
21 ::ll::TypedStorage<8, 320, ::std::optional<::PackedItemUseLegacyInventoryTransaction>> mItemUseTransaction;
22 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ItemStackRequestData>> mItemStackRequest;
23 ::ll::TypedStorage<8, 24, ::PlayerBlockActions> mPlayerBlockActions;
24 ::ll::TypedStorage<4, 8, ::Vec2> mPreSimulationRotation;
25 // NOLINTEND
26
27public:
28 // prevent constructor by default
29 PlayerActionComponent& operator=(PlayerActionComponent const&);
30 PlayerActionComponent(PlayerActionComponent const&);
31 PlayerActionComponent();
32
33public:
34 // member functions
35 // NOLINTBEGIN
36 MCAPI PlayerActionComponent(::PlayerActionComponent&&);
37
38#ifdef LL_PLAT_C
39 MCAPI void addAbortDestroyBlock(::BlockPos const& pos, int data);
40
41 MCAPI void addContinueDestroyBlock(::BlockPos const& pos, int facing);
42
43 MCAPI void addCrackBlock(::BlockPos const& pos, int facing);
44
45 MCAPI void addItemStackRequest(::std::unique_ptr<::ItemStackRequestData> request);
46
47 MCAPI void addPredictDestroyBlock(::BlockPos const& pos, int facing);
48
49 MCAPI void addStartDestroyBlock(::BlockPos const& pos, int facing);
50
51 MCAPI void addStopDestroyBlock();
52
53 MCAPI void clear();
54#endif
55
56 MCAPI ::PlayerActionComponent& operator=(::PlayerActionComponent&&);
57
58 MCAPI ~PlayerActionComponent();
59 // NOLINTEND
60
61public:
62 // constructor thunks
63 // NOLINTBEGIN
64 MCAPI void* $ctor(::PlayerActionComponent&&);
65 // NOLINTEND
66
67public:
68 // destructor thunk
69 // NOLINTBEGIN
70 MCAPI void $dtor();
71 // NOLINTEND
72};
Definition BlockPos.h:17
Definition ItemStackRequestData.h:15