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;
19namespace BlockEvents { class BlockQueuedTickEvent; }
20// clang-format on
21
22class ChorusPlantBlock : public ::BlockType {
23public:
24 // prevent constructor by default
25 ChorusPlantBlock();
26
27public:
28 // virtual functions
29 // NOLINTBEGIN
30 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
31
32 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
33 /*override*/;
34
35 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
36
37 virtual bool checkIsPathable(::Actor&, ::BlockPos const&, ::BlockPos const&) const /*override*/;
38
39 virtual ::AABB getCollisionShape(
40 ::Block const& region,
41 ::IConstBlockSource const& pos,
42 ::BlockPos const&,
44 ) const /*override*/;
45
46 virtual ::AABB const&
47 getOutline(::Block const& region, ::IConstBlockSource const& pos, ::BlockPos const& bufferValue, ::AABB&) const
48 /*override*/;
49
50 virtual bool isLavaBlocking() const /*override*/;
51
52 virtual bool canProvideSupport(::Block const&, uchar, ::BlockSupportType) const /*override*/;
53 // NOLINTEND
54
55public:
56 // member functions
57 // NOLINTBEGIN
58 MCAPI ChorusPlantBlock(::std::string const& nameId, int id);
59
60 MCAPI ::AABB const& _getShape(::IConstBlockSource const& region, ::BlockPos const& pos, ::AABB& bufferValue) const;
61
62#ifdef LL_PLAT_C
63 MCAPI bool connectsTo(::IConstBlockSource const& region, ::BlockPos const&, ::BlockPos const& otherPos) const;
64#endif
65
66 MCFOLD void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
67 // NOLINTEND
68
69public:
70 // static variables
71 // NOLINTBEGIN
72 MCAPI static float const& PLANT_ITEM_DIMENSION();
73 // NOLINTEND
74
75public:
76 // constructor thunks
77 // NOLINTBEGIN
78 MCAPI void* $ctor(::std::string const& nameId, int id);
79 // NOLINTEND
80
81public:
82 // virtual function thunks
83 // NOLINTBEGIN
84 MCFOLD bool $mayPlace(::BlockSource& region, ::BlockPos const& pos) const;
85
86 MCFOLD void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
87
88 MCAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
89
90 MCFOLD bool $checkIsPathable(::Actor&, ::BlockPos const&, ::BlockPos const&) const;
91
92 MCAPI ::AABB $getCollisionShape(
93 ::Block const& region,
94 ::IConstBlockSource const& pos,
95 ::BlockPos const&,
97 ) const;
98
99 MCAPI ::AABB const&
100 $getOutline(::Block const& region, ::IConstBlockSource const& pos, ::BlockPos const& bufferValue, ::AABB&) const;
101
102 MCFOLD bool $isLavaBlocking() const;
103
104 MCFOLD bool $canProvideSupport(::Block const&, uchar, ::BlockSupportType) const;
105
106
107 // NOLINTEND
108
109public:
110 // vftables
111 // NOLINTBEGIN
112 MCAPI static void** $vftable();
113 // NOLINTEND
114};
Definition AABB.h:18
Definition Actor.h:125
Definition BlockQueuedTickEvent.h:18
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition Block.h:69
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:24
Definition optional_ref.h:10