Skip to content
LeviMC
English
AutoLightDark
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 MCNAPI void randomTick(::BlockEvents::BlockRandomTickEvent& eventData) const;
62
63 MCNAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
64 // NOLINTEND
65
66public:
67 // virtual function thunks
68 // NOLINTBEGIN
69 MCNAPI ::AABB $getCollisionShape(
70 ::Block const&,
72 ::BlockPos const& pos,
74 ) const;
75
76 MCNAPI ::AABB const&
77 $getOutline(::Block const&, ::IConstBlockSource const&, ::BlockPos const& pos, ::AABB& bufferValue) const;
78
80
81 MCNAPI bool $mayPlace(::BlockSource& region, ::BlockPos const& pos) const;
82
83 MCNAPI void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
84
85 MCNAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
86
87 MCNAPI bool $isValidAuxValue(int value) const;
88
89 MCNAPI bool $dealsContactDamage(::Actor const& actor, ::Block const& block, bool isPathFinding) const;
90
91
92 // NOLINTEND
93
94public:
95 // vftables
96 // NOLINTBEGIN
97 MCNAPI static void** $vftable();
98 // NOLINTEND
99};
Definition AABB.h:18
Definition Actor.h:116
Definition BlockQueuedTickEvent.h:16
Definition BlockRandomTickEvent.h:16
Definition BlockPos.h:14
Definition BlockSource.h:72
Definition Block.h:42
Definition CactusBlock.h:23
MCAPI::AABB $getCollisionShape(::Block const &, ::IConstBlockSource const &, ::BlockPos const &pos, ::optional_ref<::GetCollisionShapeInterface const >) const
MCAPI void $neighborChanged(::BlockSource &region, ::BlockPos const &pos, ::BlockPos const &neighborPos) const
MCAPI::AABB const & $getOutline(::Block const &, ::IConstBlockSource const &, ::BlockPos const &pos, ::AABB &bufferValue) const
MCAPI bool $canSurvive(::BlockSource &region, ::BlockPos const &pos) const
MCAPI void $onGraphicsModeChanged(::BlockGraphicsModeChangeContext const &context)
MCAPI void randomTick(::BlockEvents::BlockRandomTickEvent &eventData) const
MCAPI bool $mayPlace(::BlockSource &region, ::BlockPos const &pos) const
MCAPI void tick(::BlockEvents::BlockQueuedTickEvent &eventData) const
MCAPI bool $isValidAuxValue(int value) const
static MCAPI void ** $vftable()
MCAPI bool $dealsContactDamage(::Actor const &actor, ::Block const &block, bool isPathFinding) const
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:25
Definition optional_ref.h:10
Definition BlockGraphicsModeChangeContext.h:5
Definition context.h:5