LeviLamina
Loading...
Searching...
No Matches
VineBlock.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;
18class Vec3;
19namespace BlockEvents { class BlockQueuedTickEvent; }
20namespace BlockEvents { class BlockRandomTickEvent; }
21// clang-format on
22
23class VineBlock : public ::BlockType {
24public:
25 // virtual functions
26 // NOLINTBEGIN
27 virtual ::AABB const& getVisualShapeInWorld(
28 ::Block const& block,
29 ::IConstBlockSource const& region,
30 ::BlockPos const& pos,
31 ::AABB& bufferAABB
32 ) const /*override*/;
33
34 virtual ::AABB getCollisionShape(
35 ::Block const&,
37 ::BlockPos const&,
39 ) const /*override*/;
40
41 virtual ::AABB const& getOutline(
42 ::Block const& block,
43 ::IConstBlockSource const& region,
44 ::BlockPos const& pos,
45 ::AABB& bufferValue
46 ) const /*override*/;
47
48 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos, uchar face) const /*override*/;
49
50 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
51 /*override*/;
52
53 virtual ::Block const&
54 getPlacementBlock(::Actor const& by, ::BlockPos const& pos, uchar face, ::Vec3 const& clickPos, int itemValue) const
55 /*override*/;
56
57 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
58
59 virtual ::Block const& sanitizeFillBlock(::Block const& block) const /*override*/;
60 // NOLINTEND
61
62public:
63 // member functions
64 // NOLINTBEGIN
65 MCAPI void growDown(::BlockSource& region, ::BlockPos const& pos, int spawnFacings) const;
66
67 MCAPI void growSideways(::BlockSource& region, ::BlockPos const& pos, int testDirection) const;
68
69 MCAPI void growUp(::BlockSource& region, ::BlockPos const& pos, int spawnFacings) const;
70
71 MCAPI void randomTick(::BlockEvents::BlockRandomTickEvent& eventData) const;
72
73 MCFOLD void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
74 // NOLINTEND
75
76public:
77 // static functions
78 // NOLINTBEGIN
79 MCAPI static int _nextVineDirections(::BlockSource& region, ::BlockPos const& pos);
80
81 MCAPI static ::Block const& getBlockForFace(uchar face);
82 // NOLINTEND
83
84public:
85 // static variables
86 // NOLINTBEGIN
87 MCAPI static int const& VINE_ALL();
88
89 MCAPI static int const& VINE_EAST();
90
91 MCAPI static int const& VINE_NORTH();
92
93 MCAPI static int const& VINE_SOUTH();
94
95 MCAPI static int const& VINE_WEST();
96 // NOLINTEND
97
98public:
99 // virtual function thunks
100 // NOLINTBEGIN
101 MCAPI ::AABB const& $getVisualShapeInWorld(
102 ::Block const& block,
103 ::IConstBlockSource const& region,
104 ::BlockPos const& pos,
105 ::AABB& bufferAABB
106 ) const;
107
108 MCFOLD ::AABB $getCollisionShape(
109 ::Block const&,
110 ::IConstBlockSource const&,
111 ::BlockPos const&,
113 ) const;
114
115 MCFOLD ::AABB const& $getOutline(
116 ::Block const& block,
117 ::IConstBlockSource const& region,
118 ::BlockPos const& pos,
119 ::AABB& bufferValue
120 ) const;
121
122 MCAPI bool $mayPlace(::BlockSource& region, ::BlockPos const& pos, uchar face) const;
123
124 MCAPI void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
125
126 MCAPI ::Block const& $getPlacementBlock(
127 ::Actor const& by,
128 ::BlockPos const& pos,
129 uchar face,
130 ::Vec3 const& clickPos,
131 int itemValue
132 ) const;
133
134 MCAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
135
136 MCAPI ::Block const& $sanitizeFillBlock(::Block const& block) const;
137
138
139 // NOLINTEND
140
141public:
142 // vftables
143 // NOLINTBEGIN
144 MCAPI static void** $vftable();
145 // NOLINTEND
146};
Definition AABB.h:18
Definition Actor.h:113
Definition BlockQueuedTickEvent.h:16
Definition BlockRandomTickEvent.h:16
Definition BlockPos.h:17
Definition BlockSource.h:71
Definition Block.h:41
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:25
Definition Vec3.h:10
Definition VineBlock.h:23
Definition optional_ref.h:10