LeviLamina
Loading...
Searching...
No Matches
PumpkinBlock.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/block/BlockType.h"
7
8// auto generated forward declare list
9// clang-format off
10class Block;
11class BlockActor;
12class BlockPos;
13class BlockSource;
14class Container;
15class Experiments;
16class ItemInstance;
17class Vec3;
18namespace BlockEvents { class BlockPlaceEvent; }
19// clang-format on
20
21class PumpkinBlock : public ::BlockType {
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<1, 1, bool> mLit;
26 ::ll::TypedStorage<1, 1, bool> mCarved;
27 // NOLINTEND
28
29public:
30 // virtual functions
31 // NOLINTBEGIN
32 // vIndex: 79
33 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
34
35 // vIndex: 118
36 virtual int getVariant(::Block const& block) const /*override*/;
37
38 // vIndex: 121
39 virtual uchar getMappedFace(uchar face, ::Block const& block) const /*override*/;
40
41 // vIndex: 90
42 virtual ::ItemInstance asItemInstance(::Block const&, ::BlockActor const*) const /*override*/;
43
44 // vIndex: 59
45 virtual bool dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const
46 /*override*/;
47
48 // vIndex: 24
49 virtual bool canConnect(::Block const&, uchar, ::Block const&) const /*override*/;
50
51 // vIndex: 131
52 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
53
54 // vIndex: 0
55 virtual ~PumpkinBlock() /*override*/ = default;
56 // NOLINTEND
57
58public:
59 // member functions
60 // NOLINTBEGIN
61 MCAPI void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
62 // NOLINTEND
63
64public:
65 // virtual function thunks
66 // NOLINTBEGIN
67 MCAPI bool $mayPlace(::BlockSource& region, ::BlockPos const& pos) const;
68
69 MCAPI int $getVariant(::Block const& block) const;
70
71 MCAPI uchar $getMappedFace(uchar face, ::Block const& block) const;
72
73 MCAPI ::ItemInstance $asItemInstance(::Block const&, ::BlockActor const*) const;
74
75 MCAPI bool $dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const;
76
77 MCFOLD bool $canConnect(::Block const&, uchar, ::Block const&) const;
78
79 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
80 // NOLINTEND
81
82public:
83 // vftables
84 // NOLINTBEGIN
85 MCNAPI static void** $vftable();
86 // NOLINTEND
87};
Definition BlockActor.h:32
Definition BlockPlaceEvent.h:16
Definition BlockPos.h:17
Definition BlockSource.h:66
Definition BlockType.h:84
Definition Block.h:37
Definition Container.h:31
Definition Experiments.h:14
Definition ItemInstance.h:15
Definition PumpkinBlock.h:21
static MCAPI void ** $vftable()
Definition Vec3.h:10