Skip to content
LeviMC
English
AutoLightDark
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 MCNAPI void growDown(::BlockSource& region, ::BlockPos const& pos, int spawnFacings) const;
66
67 MCNAPI void growSideways(::BlockSource& region, ::BlockPos const& pos, int testDirection) const;
68
69 MCNAPI void growUp(::BlockSource& region, ::BlockPos const& pos, int spawnFacings) const;
70
71 MCNAPI void randomTick(::BlockEvents::BlockRandomTickEvent& eventData) const;
72
73 MCNAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
74 // NOLINTEND
75
76public:
77 // static functions
78 // NOLINTBEGIN
79 MCNAPI static int _nextVineDirections(::BlockSource& region, ::BlockPos const& pos);
80
81 MCNAPI static ::Block const& getBlockForFace(uchar face);
82
83 MCNAPI static bool isAcceptableNeighbour(::Block const& block);
84 // NOLINTEND
85
86public:
87 // static variables
88 // NOLINTBEGIN
89 MCNAPI static int const& VINE_ALL();
90
91 MCNAPI static int const& VINE_EAST();
92
93 MCNAPI static int const& VINE_NORTH();
94
95 MCNAPI static int const& VINE_SOUTH();
96
97 MCNAPI static int const& VINE_WEST();
98 // NOLINTEND
99
100public:
101 // virtual function thunks
102 // NOLINTBEGIN
103 MCNAPI ::AABB const& $getVisualShapeInWorld(
104 ::Block const& block,
105 ::IConstBlockSource const& region,
106 ::BlockPos const& pos,
107 ::AABB& bufferAABB
108 ) const;
109
110 MCNAPI ::AABB $getCollisionShape(
111 ::Block const&,
112 ::IConstBlockSource const&,
113 ::BlockPos const&,
115 ) const;
116
117 MCNAPI ::AABB const& $getOutline(
118 ::Block const& block,
119 ::IConstBlockSource const& region,
120 ::BlockPos const& pos,
121 ::AABB& bufferValue
122 ) const;
123
124 MCNAPI bool $mayPlace(::BlockSource& region, ::BlockPos const& pos, uchar face) const;
125
126 MCNAPI void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
127
128 MCNAPI ::Block const& $getPlacementBlock(
129 ::Actor const& by,
130 ::BlockPos const& pos,
131 uchar face,
132 ::Vec3 const& clickPos,
133 int itemValue
134 ) const;
135
136 MCNAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
137
138 MCNAPI ::Block const& $sanitizeFillBlock(::Block const& block) const;
139
140
141 // NOLINTEND
142
143public:
144 // vftables
145 // NOLINTBEGIN
146 MCNAPI static void** $vftable();
147 // NOLINTEND
148};
Definition AABB.h:18
Definition Actor.h:116
Definition BlockQueuedTickEvent.h:16
Definition BlockRandomTickEvent.h:16
Definition BlockPos.h:14
Definition BlockSource.h:72
Definition Block.h:42
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:25
Definition Vec3.h:10
Definition VineBlock.h:23
MCAPI void growSideways(::BlockSource &region, ::BlockPos const &pos, int testDirection) const
static MCAPI int const & VINE_NORTH()
static MCAPI void ** $vftable()
static MCAPI int _nextVineDirections(::BlockSource &region, ::BlockPos const &pos)
static MCAPI int const & VINE_ALL()
MCAPI::AABB $getCollisionShape(::Block const &, ::IConstBlockSource const &, ::BlockPos const &, ::optional_ref<::GetCollisionShapeInterface const >) const
MCAPI void randomTick(::BlockEvents::BlockRandomTickEvent &eventData) const
static MCAPI bool isAcceptableNeighbour(::Block const &block)
static MCAPI int const & VINE_SOUTH()
MCAPI void tick(::BlockEvents::BlockQueuedTickEvent &eventData) const
MCAPI::AABB const & $getOutline(::Block const &block, ::IConstBlockSource const &region, ::BlockPos const &pos, ::AABB &bufferValue) const
static MCAPI ::Block const & getBlockForFace(uchar face)
static MCAPI int const & VINE_WEST()
MCAPI::Block const & $sanitizeFillBlock(::Block const &block) const
static MCAPI int const & VINE_EAST()
MCAPI::Block const & $getPlacementBlock(::Actor const &by, ::BlockPos const &pos, uchar face, ::Vec3 const &clickPos, int itemValue) const
MCAPI void growUp(::BlockSource &region, ::BlockPos const &pos, int spawnFacings) const
MCAPI void growDown(::BlockSource &region, ::BlockPos const &pos, int spawnFacings) const
MCAPI bool $mayPlace(::BlockSource &region, ::BlockPos const &pos, uchar face) const
MCAPI bool $canSurvive(::BlockSource &region, ::BlockPos const &pos) const
MCAPI void $neighborChanged(::BlockSource &region, ::BlockPos const &pos, ::BlockPos const &neighborPos) const
MCAPI::AABB const & $getVisualShapeInWorld(::Block const &block, ::IConstBlockSource const &region, ::BlockPos const &pos, ::AABB &bufferAABB) const
Definition optional_ref.h:10