LeviLamina
Loading...
Searching...
No Matches
CandleBlock.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/block/AbstractCandleBlock.h"
7#include "mc/world/level/block/BlockSupportType.h"
8
9// auto generated forward declare list
10// clang-format off
11class AABB;
12class Actor;
13class Block;
14class BlockActor;
15class BlockPos;
16class BlockSource;
17class Experiments;
18class ItemInstance;
19class Vec3;
20namespace BlockEvents { class BlockPlayerInteractEvent; }
21// clang-format on
22
24public:
25 // virtual functions
26 // NOLINTBEGIN
27 // vIndex: 11
28 virtual ::AABB const& getVisualShape(::Block const& block, ::AABB& bufferAABB) const /*override*/;
29
30 // vIndex: 89
31 virtual ::ItemInstance asItemInstance(::Block const& block, ::BlockActor const*) const /*override*/;
32
33 // vIndex: 135
34 virtual bool isInteractiveBlock() const /*override*/;
35
36 // vIndex: 22
37 virtual bool canProvideSupport(::Block const&, uchar, ::BlockSupportType) const /*override*/;
38
39 // vIndex: 146
40 virtual int _getNumCandles(::Block const& block) const /*override*/;
41
42 // vIndex: 147
43 virtual void _iterateCandles(
44 ::Block const& block,
45 ::BlockPos const& pos,
46 ::std::function<void(::Vec3 const&, int)> callback
47 ) const /*override*/;
48
49 // vIndex: 148
50 virtual void _tryLightOnFire(::BlockSource& region, ::BlockPos const& pos, ::Actor* sourceActor) const /*override*/;
51
52 // vIndex: 130
53 virtual void _addHardCodedBlockComponents(::Experiments const& experiments) /*override*/;
54
55 // vIndex: 0
56 virtual ~CandleBlock() /*override*/ = default;
57 // NOLINTEND
58
59public:
60 // member functions
61 // NOLINTBEGIN
62 MCAPI void use(::BlockEvents::BlockPlayerInteractEvent& eventData) const;
63 // NOLINTEND
64
65public:
66 // static functions
67 // NOLINTBEGIN
68 MCAPI static void
69 _forEachCandle(::Block const& block, ::BlockPos const& pos, ::std::function<void(::Vec3 const&, int)> callback);
70
71 MCAPI static bool tryLightFire(::BlockSource& region, ::BlockPos const& pos, ::Actor* sourceActor);
72 // NOLINTEND
73
74public:
75 // virtual function thunks
76 // NOLINTBEGIN
77 MCAPI ::AABB const& $getVisualShape(::Block const& block, ::AABB& bufferAABB) const;
78
79 MCAPI ::ItemInstance $asItemInstance(::Block const& block, ::BlockActor const*) const;
80
81 MCFOLD bool $isInteractiveBlock() const;
82
83 MCAPI int $_getNumCandles(::Block const& block) const;
84
85 MCAPI void $_iterateCandles(
86 ::Block const& block,
87 ::BlockPos const& pos,
88 ::std::function<void(::Vec3 const&, int)> callback
89 ) const;
90
91 MCAPI void $_tryLightOnFire(::BlockSource& region, ::BlockPos const& pos, ::Actor* sourceActor) const;
92
93 MCAPI void $_addHardCodedBlockComponents(::Experiments const& experiments);
94 // NOLINTEND
95
96public:
97 // vftables
98 // NOLINTBEGIN
99 MCNAPI static void** $vftable();
100 // NOLINTEND
101};
Definition AABB.h:18
Definition AbstractCandleBlock.h:21
Definition Actor.h:103
Definition BlockActor.h:32
Definition BlockPlayerInteractEvent.h:18
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:38
Definition CandleBlock.h:23
static MCAPI void ** $vftable()
Definition Experiments.h:14
Definition ItemInstance.h:16
Definition Vec3.h:10