LeviLamina
Loading...
Searching...
No Matches
FireBlock.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/optional_ref.h"
7#include "mc/world/level/block/BlockType.h"
8
9// auto generated forward declare list
10// clang-format off
11class AABB;
12class Actor;
13class Block;
14class BlockPos;
15class BlockSource;
18class IRandom;
20namespace BlockEvents { class BlockPlaceEvent; }
21namespace BlockEvents { class BlockQueuedTickEvent; }
22// clang-format on
23
24class FireBlock : public ::BlockType {
25public:
26 // virtual functions
27 // NOLINTBEGIN
28 virtual ::AABB getCollisionShape(
29 ::Block const&,
31 ::BlockPos const&,
33 ) const /*override*/;
34
35 virtual ::AABB const&
36 getOutline(::Block const&, ::IConstBlockSource const&, ::BlockPos const&, ::AABB& bufferValue) const /*override*/;
37
38 virtual void animateTickBedrockLegacy(::BlockAnimateTickData const& tickData) const /*override*/;
39
40 virtual bool mayPick() const /*override*/;
41
42 virtual void entityInside(::BlockSource&, ::BlockPos const&, ::Actor& entity) const /*override*/;
43
44 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
45
46 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
47 /*override*/;
48
49 virtual bool checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const
50 /*override*/;
51 // NOLINTEND
52
53public:
54 // member functions
55 // NOLINTBEGIN
56 MCAPI void checkBurn(
57 ::BlockSource& region,
58 ::BlockPos const& pos,
59 int chance,
60 ::IRandom& random,
61 int age,
62 ::BlockPos const& firePos
63 ) const;
64
65 MCAPI void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
66
67 MCAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
68 // NOLINTEND
69
70public:
71 // static functions
72 // NOLINTBEGIN
73 MCAPI static bool _trySpawnSoulFire(::BlockSource& region, ::BlockPos const& pos);
74
75 MCAPI static bool isValidFireLocation(::BlockSource& region, ::BlockPos const& pos);
76 // NOLINTEND
77
78public:
79 // virtual function thunks
80 // NOLINTBEGIN
81 MCFOLD ::AABB $getCollisionShape(
82 ::Block const&,
84 ::BlockPos const&,
86 ) const;
87
88 MCFOLD ::AABB const&
89 $getOutline(::Block const&, ::IConstBlockSource const&, ::BlockPos const&, ::AABB& bufferValue) const;
90
91 MCAPI void $animateTickBedrockLegacy(::BlockAnimateTickData const& tickData) const;
92
93 MCFOLD bool $mayPick() const;
94
95 MCAPI void $entityInside(::BlockSource&, ::BlockPos const&, ::Actor& entity) const;
96
97 MCAPI bool $mayPlace(::BlockSource& region, ::BlockPos const& pos) const;
98
99 MCAPI void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
100
101 MCAPI bool $checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const;
102
103
104 // NOLINTEND
105
106public:
107 // vftables
108 // NOLINTBEGIN
109 MCAPI static void** $vftable();
110 // NOLINTEND
111};
Definition AABB.h:18
Definition Actor.h:113
Definition BlockPlaceEvent.h:16
Definition BlockQueuedTickEvent.h:16
Definition BlockPos.h:17
Definition BlockSource.h:71
Definition Block.h:41
Definition FireBlock.h:24
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:25
Definition IRandom.h:10
Definition optional_ref.h:10
Definition BlockAnimateTickData.h:14