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 ItemInstance;
16class Vec3;
17namespace BlockEvents { class BlockPlaceEvent; }
18// clang-format on
19
20class PumpkinBlock : public ::BlockType {
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<1, 1, bool> mLit;
25 ::ll::TypedStorage<1, 1, bool> mCarved;
26 // NOLINTEND
27
28public:
29 // prevent constructor by default
30 PumpkinBlock();
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
36
37 virtual int getVariant(::Block const& block) const /*override*/;
38
39 virtual uchar getMappedFace(uchar face, ::Block const& block) const /*override*/;
40
41 virtual ::ItemInstance asItemInstance(::Block const&, ::BlockActor const*) const /*override*/;
42
43 virtual bool dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const
44 /*override*/;
45 // NOLINTEND
46
47public:
48 // member functions
49 // NOLINTBEGIN
50 MCAPI PumpkinBlock(::std::string const& nameId, int id, bool lit, bool carved);
51
52 MCAPI bool _canDispense(::BlockSource& region, ::Vec3 const& pos, uchar) const;
53
54 MCAPI bool _canSpawnGolem(::BlockSource& region, ::BlockPos const& pos) const;
55
56 MCAPI void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
57 // NOLINTEND
58
59public:
60 // constructor thunks
61 // NOLINTBEGIN
62 MCAPI void* $ctor(::std::string const& nameId, int id, bool lit, bool carved);
63 // NOLINTEND
64
65public:
66 // virtual function thunks
67 // NOLINTBEGIN
68 MCAPI bool $mayPlace(::BlockSource& region, ::BlockPos const& pos) const;
69
70 MCAPI int $getVariant(::Block const& block) const;
71
72 MCAPI uchar $getMappedFace(uchar face, ::Block const& block) const;
73
74 MCAPI ::ItemInstance $asItemInstance(::Block const&, ::BlockActor const*) const;
75
76 MCAPI bool $dispense(::BlockSource& region, ::Container& container, int slot, ::Vec3 const& pos, uchar face) const;
77
78
79 // NOLINTEND
80
81public:
82 // vftables
83 // NOLINTBEGIN
84 MCAPI static void** $vftable();
85 // NOLINTEND
86};
Definition BlockActor.h:30
Definition BlockPlaceEvent.h:18
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition Block.h:69
Definition Container.h:34
Definition ItemInstance.h:15
Definition Vec3.h:10