LeviLamina
Loading...
Searching...
No Matches
ChorusPlantBlock.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/BlockSupportType.h"
8#include "mc/world/level/block/BlockType.h"
9
10// auto generated forward declare list
11// clang-format off
12class AABB;
13class Actor;
14class Block;
15class BlockPos;
16class BlockSource;
17class Experiments;
20namespace BlockEvents { class BlockQueuedTickEvent; }
21// clang-format on
22
23class ChorusPlantBlock : public ::BlockType {
24public:
25 // virtual functions
26 // NOLINTBEGIN
27 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
28
29 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
30 /*override*/;
31
32 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
33
34 virtual bool checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const
35 /*override*/;
36
37 virtual ::AABB getCollisionShape(
38 ::Block const&,
39 ::IConstBlockSource const& region,
40 ::BlockPos const& pos,
42 ) const /*override*/;
43
44 virtual ::AABB const&
45 getOutline(::Block const&, ::IConstBlockSource const& region, ::BlockPos const& pos, ::AABB& bufferValue) const
46 /*override*/;
47
48 virtual bool isLavaBlocking() const /*override*/;
49
50 virtual bool canProvideSupport(::Block const&, uchar, ::BlockSupportType) const /*override*/;
51
52 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
53
54 virtual ~ChorusPlantBlock() /*override*/ = default;
55 // NOLINTEND
56
57public:
58 // member functions
59 // NOLINTBEGIN
60 MCAPI ::AABB const& _getShape(::IConstBlockSource const& region, ::BlockPos const& pos, ::AABB& bufferValue) const;
61
62 MCFOLD void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
63 // NOLINTEND
64
65public:
66 // virtual function thunks
67 // NOLINTBEGIN
68 MCFOLD bool $mayPlace(::BlockSource& region, ::BlockPos const& pos) const;
69
70 MCFOLD void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
71
72 MCAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
73
74 MCFOLD bool $checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const;
75
76 MCAPI ::AABB $getCollisionShape(
77 ::Block const&,
78 ::IConstBlockSource const& region,
79 ::BlockPos const& pos,
81 ) const;
82
83 MCAPI ::AABB const&
84 $getOutline(::Block const&, ::IConstBlockSource const& region, ::BlockPos const& pos, ::AABB& bufferValue) const;
85
86 MCFOLD bool $isLavaBlocking() const;
87
88 MCFOLD bool $canProvideSupport(::Block const&, uchar, ::BlockSupportType) const;
89
90 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
91
92
93 // NOLINTEND
94
95public:
96 // vftables
97 // NOLINTBEGIN
98 MCAPI static void** $vftable();
99 // NOLINTEND
100};
Definition AABB.h:18
Definition Actor.h:106
Definition BlockQueuedTickEvent.h:16
Definition BlockPos.h:19
Definition BlockSource.h:71
Definition Block.h:43
Definition ChorusPlantBlock.h:23
Definition Experiments.h:14
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:25
Definition optional_ref.h:10