Skip to content
LeviMC
English
AutoLightDark
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;
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& block,
39 ::IConstBlockSource const& region,
40 ::BlockPos const& pos,
42 ) const /*override*/;
43
44 virtual ::AABB const& getOutline(
45 ::Block const& block,
46 ::IConstBlockSource const& region,
47 ::BlockPos const& pos,
48 ::AABB& bufferValue
49 ) const /*override*/;
50
51 virtual bool isLavaBlocking() const /*override*/;
52
53 virtual bool canProvideSupport(::Block const&, uchar, ::BlockSupportType) const /*override*/;
54 // NOLINTEND
55
56public:
57 // member functions
58 // NOLINTBEGIN
59#ifdef LL_PLAT_S
60 MCNAPI ::AABB const&
61 _getShape(::Block const& block, ::IConstBlockSource const&, ::BlockPos const& pos, ::AABB& bufferValue) const;
62#endif
63
64 MCNAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
65 // NOLINTEND
66
67public:
68 // static functions
69 // NOLINTBEGIN
70 MCNAPI static ::Block const& getConnectedBlock(
71 ::IConstBlockSource const& region,
72 ::Block const& block,
73 ::BlockPos const& pos,
74 ::NeighborBlockDirections directionsToCheck
75 );
76
77#ifdef LL_PLAT_C
78 MCNAPI static ::NeighborBlockDirections getConnectionsFromState(::Block const& block);
79#endif
80 // NOLINTEND
81
82public:
83 // virtual function thunks
84 // NOLINTBEGIN
85 MCNAPI bool $mayPlace(::BlockSource& region, ::BlockPos const& pos) const;
86
87 MCNAPI void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
88
89 MCNAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
90
91 MCNAPI bool $checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const;
92
93 MCNAPI ::AABB $getCollisionShape(
94 ::Block const& block,
95 ::IConstBlockSource const& region,
96 ::BlockPos const& pos,
98 ) const;
99
100 MCNAPI ::AABB const& $getOutline(
101 ::Block const& block,
102 ::IConstBlockSource const& region,
103 ::BlockPos const& pos,
104 ::AABB& bufferValue
105 ) const;
106
107 MCNAPI bool $isLavaBlocking() const;
108
109 MCNAPI bool $canProvideSupport(::Block const&, uchar, ::BlockSupportType) const;
110
111
112 // NOLINTEND
113
114public:
115 // vftables
116 // NOLINTBEGIN
117 MCNAPI static void** $vftable();
118 // NOLINTEND
119};
Definition AABB.h:18
Definition Actor.h:116
Definition BlockQueuedTickEvent.h:16
Definition BlockPos.h:14
Definition BlockSource.h:72
Definition Block.h:42
Definition ChorusPlantBlock.h:23
MCAPI::AABB const & $getOutline(::Block const &block, ::IConstBlockSource const &region, ::BlockPos const &pos, ::AABB &bufferValue) const
MCAPI void tick(::BlockEvents::BlockQueuedTickEvent &eventData) const
MCAPI bool $canSurvive(::BlockSource &region, ::BlockPos const &pos) const
MCAPI::AABB $getCollisionShape(::Block const &block, ::IConstBlockSource const &region, ::BlockPos const &pos, ::optional_ref<::GetCollisionShapeInterface const >) const
MCAPI bool $checkIsPathable(::Actor &entity, ::BlockPos const &lastPathPos, ::BlockPos const &pathPos) const
static MCAPI ::Block const & getConnectedBlock(::IConstBlockSource const &region, ::Block const &block, ::BlockPos const &pos, ::NeighborBlockDirections directionsToCheck)
MCAPI bool $isLavaBlocking() const
MCAPI bool $canProvideSupport(::Block const &, uchar, ::BlockSupportType) const
MCAPI bool $mayPlace(::BlockSource &region, ::BlockPos const &pos) const
MCAPI void $neighborChanged(::BlockSource &region, ::BlockPos const &pos, ::BlockPos const &neighborPos) const
static MCAPI void ** $vftable()
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:25
Definition NeighborBlockDirections.h:14
Definition optional_ref.h:10