LeviLamina
Loading...
Searching...
No Matches
CactusBlock.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;
18namespace BlockEvents { class BlockQueuedTickEvent; }
19namespace BlockEvents { class BlockRandomTickEvent; }
21// clang-format on
22
23class CactusBlock : public ::BlockType {
24public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<1, 1, bool> mGrowCactusFlowers;
28 // NOLINTEND
29
30public:
31 // virtual functions
32 // NOLINTBEGIN
33 virtual ::AABB getCollisionShape(
34 ::Block const&,
36 ::BlockPos const& pos,
38 ) const /*override*/;
39
40 virtual ::AABB const&
41 getOutline(::Block const&, ::IConstBlockSource const&, ::BlockPos const& pos, ::AABB& bufferValue) const
42 /*override*/;
43
44 virtual void onGraphicsModeChanged(::BlockGraphicsModeChangeContext const& context) /*override*/;
45
46 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
47
48 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
49 /*override*/;
50
51 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
52
53 virtual bool isValidAuxValue(int value) const /*override*/;
54
55 virtual bool dealsContactDamage(::Actor const& actor, ::Block const& block, bool isPathFinding) const /*override*/;
56 // NOLINTEND
57
58public:
59 // member functions
60 // NOLINTBEGIN
61 MCAPI void randomTick(::BlockEvents::BlockRandomTickEvent& eventData) const;
62
63 MCFOLD void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
64 // NOLINTEND
65
66public:
67 // virtual function thunks
68 // NOLINTBEGIN
69 MCAPI ::AABB $getCollisionShape(
70 ::Block const&,
72 ::BlockPos const& pos,
74 ) const;
75
76 MCFOLD ::AABB const&
77 $getOutline(::Block const&, ::IConstBlockSource const&, ::BlockPos const& pos, ::AABB& bufferValue) const;
78
79 MCAPI void $onGraphicsModeChanged(::BlockGraphicsModeChangeContext const& context);
80
81 MCAPI bool $mayPlace(::BlockSource& region, ::BlockPos const& pos) const;
82
83 MCFOLD void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
84
85 MCAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
86
87 MCFOLD bool $isValidAuxValue(int value) const;
88
89 MCFOLD bool $dealsContactDamage(::Actor const& actor, ::Block const& block, bool isPathFinding) const;
90
91
92 // NOLINTEND
93
94public:
95 // vftables
96 // NOLINTBEGIN
97 MCAPI static void** $vftable();
98 // NOLINTEND
99};
Definition AABB.h:18
Definition Actor.h:113
Definition BlockQueuedTickEvent.h:16
Definition BlockRandomTickEvent.h:16
Definition BlockPos.h:17
Definition BlockSource.h:71
Definition Block.h:41
Definition CactusBlock.h:23
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:25
Definition optional_ref.h:10
Definition BlockGraphicsModeChangeContext.h:5
Definition context.h:5