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: 79
34 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
35
36 // vIndex: 118
37 virtual int getVariant(::Block const& block) const /*override*/;
38
39 // vIndex: 121
40 virtual uchar getMappedFace(uchar face, ::Block const& block) const /*override*/;
41
42 // vIndex: 90
43 virtual ::ItemInstance asItemInstance(::Block const&, ::BlockActor const*) const /*override*/;
44
45 // vIndex: 59
46 virtual bool dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const
47 /*override*/;
48
49 // vIndex: 25
50 virtual bool canConnect(::Block const&, uchar, ::Block const&) const /*override*/;
51
52 // vIndex: 131
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 // destructor thunk
83 // NOLINTBEGIN
84
85 // NOLINTEND
86
87public:
88 // virtual function thunks
89 // NOLINTBEGIN
90 MCAPI bool $mayPlace(::BlockSource& region, ::BlockPos const& pos) const;
91
92 MCAPI int $getVariant(::Block const& block) const;
93
94 MCAPI uchar $getMappedFace(uchar face, ::Block const& block) const;
95
96 MCAPI ::ItemInstance $asItemInstance(::Block const&, ::BlockActor const*) const;
97
98 MCAPI bool $dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const;
99
100 MCFOLD bool $canConnect(::Block const&, uchar, ::Block const&) const;
101
102 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
103 // NOLINTEND
104
105public:
106 // vftables
107 // NOLINTBEGIN
108 MCAPI static void** $vftable();
109 // NOLINTEND
110};
Definition BaseGameVersion.h:13
Definition BlockActor.h:32
Definition BlockPlaceEvent.h:15
Definition BlockLegacy.h:88
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:36
Definition Container.h:30
Definition Experiments.h:14
Definition ItemInstance.h:16
Definition PumpkinBlock.h:22
Definition Vec3.h:10