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 // virtual functions
25 // NOLINTBEGIN
26 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
27
28 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
29 /*override*/;
30
31 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
32
33 virtual bool checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const
34 /*override*/;
35
36 virtual ::AABB getCollisionShape(
37 ::Block const&,
38 ::IConstBlockSource const& region,
39 ::BlockPos const& pos,
41 ) const /*override*/;
42
43 virtual ::AABB const&
44 getOutline(::Block const&, ::IConstBlockSource const& region, ::BlockPos const& pos, ::AABB& bufferValue) const
45 /*override*/;
46
47 virtual bool isLavaBlocking() const /*override*/;
48
49 virtual bool canProvideSupport(::Block const&, uchar, ::BlockSupportType) const /*override*/;
50 // NOLINTEND
51
52public:
53 // member functions
54 // NOLINTBEGIN
55 MCFOLD void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
56 // NOLINTEND
57
58public:
59 // static functions
60 // NOLINTBEGIN
61 MCAPI static ::AABB const& _getShape(::IConstBlockSource const& region, ::BlockPos const& pos, ::AABB& bufferValue);
62 // NOLINTEND
63
64public:
65 // virtual function thunks
66 // NOLINTBEGIN
67 MCFOLD bool $mayPlace(::BlockSource& region, ::BlockPos const& pos) const;
68
69 MCFOLD void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
70
71 MCAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
72
73 MCFOLD bool $checkIsPathable(::Actor& entity, ::BlockPos const& lastPathPos, ::BlockPos const& pathPos) const;
74
75 MCAPI ::AABB $getCollisionShape(
76 ::Block const&,
77 ::IConstBlockSource const& region,
78 ::BlockPos const& pos,
80 ) const;
81
82 MCAPI ::AABB const&
83 $getOutline(::Block const&, ::IConstBlockSource const& region, ::BlockPos const& pos, ::AABB& bufferValue) const;
84
85 MCFOLD bool $isLavaBlocking() const;
86
87 MCFOLD bool $canProvideSupport(::Block const&, uchar, ::BlockSupportType) const;
88
89
90 // NOLINTEND
91
92public:
93 // vftables
94 // NOLINTBEGIN
95 MCAPI static void** $vftable();
96 // NOLINTEND
97};
Definition AABB.h:18
Definition Actor.h:113
Definition BlockQueuedTickEvent.h:16
Definition BlockPos.h:17
Definition BlockSource.h:71
Definition Block.h:41
Definition ChorusPlantBlock.h:22
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:25
Definition optional_ref.h:10