LeviLamina
Loading...
Searching...
No Matches
BlockPlayerPlacingEvent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/block/block_events/BlockCancellableEventBase.h"
7
8// auto generated forward declare list
9// clang-format off
10class Actor;
11class Block;
12class BlockPos;
13class BlockSource;
14class Item;
15class RenderParams;
16// clang-format on
17
18namespace BlockEvents {
19
20class BlockPlayerPlacingEvent : public ::BlockEvents::BlockCancellableEventBase {
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<8, 8, ::BlockSource&> mRegion;
25 ::ll::TypedStorage<8, 8, ::Actor&> mActor;
26 ::ll::TypedStorage<8, 8, ::gsl::not_null<::Block const*>> mPermutationToPlace;
27 ::ll::TypedStorage<8, 8, ::Item const&> mItem;
28 ::ll::TypedStorage<1, 1, uchar const> mFace;
29 // NOLINTEND
30
31public:
32 // prevent constructor by default
33 BlockPlayerPlacingEvent& operator=(BlockPlayerPlacingEvent const&);
34 BlockPlayerPlacingEvent(BlockPlayerPlacingEvent const&);
35 BlockPlayerPlacingEvent();
36
37public:
38 // virtual functions
39 // NOLINTBEGIN
40 virtual ::BlockSource const& getBlockSource() const /*override*/;
41 // NOLINTEND
42
43public:
44 // member functions
45 // NOLINTBEGIN
46 MCAPI BlockPlayerPlacingEvent(
47 ::BlockSource& region,
48 ::BlockPos pos,
49 ::Actor& actor,
50 uchar face,
51 ::gsl::not_null<::Block const*> permutationToPlace,
52 ::Item const& item
53 );
54
55 MCAPI void configureRenderParamsForTrigger(::RenderParams& params);
56
57 MCFOLD ::Actor const& getActor() const;
58
59 MCFOLD ::Item const& getItemUsed() const;
60
61 MCFOLD ::Block const& getPermutationToPlace() const;
62
63 MCFOLD bool isClientSide() const;
64
65 MCFOLD void setPermutationToPlace(::Block const& perm);
66 // NOLINTEND
67
68public:
69 // constructor thunks
70 // NOLINTBEGIN
71 MCAPI void* $ctor(
72 ::BlockSource& region,
73 ::BlockPos pos,
74 ::Actor& actor,
75 uchar face,
76 ::gsl::not_null<::Block const*> permutationToPlace,
77 ::Item const& item
78 );
79 // NOLINTEND
80
81public:
82 // virtual function thunks
83 // NOLINTBEGIN
84 MCFOLD ::BlockSource const& $getBlockSource() const;
85
86
87 // NOLINTEND
88
89public:
90 // vftables
91 // NOLINTBEGIN
92 MCNAPI static void** $vftable();
93 // NOLINTEND
94};
95
96} // namespace BlockEvents
Definition Actor.h:125
Definition BlockCancellableEventBase.h:15
static MCAPI void ** $vftable()
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition Block.h:69
Definition Item.h:71
Definition RenderParams.h:30