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/BlockLegacy.h"
7
8// auto generated forward declare list
9// clang-format off
10class BaseGameVersion;
11class Block;
12class BlockActor;
13class BlockPos;
14class BlockSource;
15class Container;
16class Experiments;
17class ItemInstance;
18class Vec3;
19namespace BlockEvents { class BlockPlaceEvent; }
20// clang-format on
21
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<1, 1, bool> mLit;
27 ::ll::TypedStorage<1, 1, bool> mCarved;
28 // NOLINTEND
29
30public:
31 // virtual functions
32 // NOLINTBEGIN
33 // vIndex: 78
34 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
35
36 // vIndex: 117
37 virtual int getVariant(::Block const& block) const /*override*/;
38
39 // vIndex: 120
40 virtual uchar getMappedFace(uchar face, ::Block const& block) const /*override*/;
41
42 // vIndex: 89
43 virtual ::ItemInstance asItemInstance(::Block const&, ::BlockActor const*) const /*override*/;
44
45 // vIndex: 58
46 virtual bool dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const
47 /*override*/;
48
49 // vIndex: 24
50 virtual bool canConnect(::Block const&, uchar, ::Block const&) const /*override*/;
51
52 // vIndex: 130
53 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
54
55 // vIndex: 0
56 virtual ~PumpkinBlock() /*override*/ = default;
57 // NOLINTEND
58
59public:
60 // member functions
61 // NOLINTBEGIN
62 MCAPI bool _canDispense(::BlockSource& region, ::Vec3 const& pos, uchar) const;
63
64 MCAPI bool _canSpawnGolem(::BlockSource& region, ::BlockPos const& pos) const;
65
66 MCAPI void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
67 // NOLINTEND
68
69public:
70 // static functions
71 // NOLINTBEGIN
72 MCAPI static bool _isGolemHeadBlock(::BlockSource& region, ::BlockPos const&, ::Block const& block);
73 // NOLINTEND
74
75public:
76 // static variables
77 // NOLINTBEGIN
78 MCAPI static ::BaseGameVersion const& GOLEM_ONLY_FROM_CARVED_PUMPKINS_VERSION();
79 // NOLINTEND
80
81public:
82 // virtual function thunks
83 // NOLINTBEGIN
84 MCAPI bool $mayPlace(::BlockSource& region, ::BlockPos const& pos) const;
85
86 MCAPI int $getVariant(::Block const& block) const;
87
88 MCAPI uchar $getMappedFace(uchar face, ::Block const& block) const;
89
90 MCAPI ::ItemInstance $asItemInstance(::Block const&, ::BlockActor const*) const;
91
92 MCAPI bool $dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const;
93
94 MCFOLD bool $canConnect(::Block const&, uchar, ::Block const&) const;
95
96 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
97 // NOLINTEND
98
99public:
100 // vftables
101 // NOLINTBEGIN
102 MCNAPI static void** $vftable();
103 // NOLINTEND
104};
Definition BaseGameVersion.h:8
Definition BlockActor.h:32
Definition BlockPlaceEvent.h:16
Definition BlockLegacy.h:88
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:38
Definition Container.h:30
Definition Experiments.h:14
Definition ItemInstance.h:16
Definition PumpkinBlock.h:22
static MCAPI void ** $vftable()
Definition Vec3.h:10