LeviLamina
Loading...
Searching...
No Matches
WeepingVinesBlock.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/item/FertilizerType.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;
17class Experiments;
20class Random;
21namespace BlockEvents { class BlockPlaceEvent; }
22namespace BlockEvents { class BlockPlayerInteractEvent; }
23namespace BlockEvents { class BlockQueuedTickEvent; }
24// clang-format on
25
27public:
28 // virtual functions
29 // NOLINTBEGIN
30 // vIndex: 132
31 virtual void onRemove(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
32
33 // vIndex: 79
34 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
35
36 // vIndex: 138
37 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
38
39 // vIndex: 87
40 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
41 /*override*/;
42
43 // vIndex: 5
44 virtual ::AABB getCollisionShape(
45 ::Block const&,
47 ::BlockPos const&,
49 ) const /*override*/;
50
51 // vIndex: 9
52 virtual ::AABB const&
53 getOutline(::Block const&, ::IConstBlockSource const& region, ::BlockPos const& pos, ::AABB& bufferValue) const
54 /*override*/;
55
56 // vIndex: 74
57 virtual bool
58 onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fType) const
59 /*override*/;
60
61 // vIndex: 76
62 virtual bool canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const
63 /*override*/;
64
65 // vIndex: 131
66 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
67
68 // vIndex: 0
69 virtual ~WeepingVinesBlock() /*override*/ = default;
70 // NOLINTEND
71
72public:
73 // member functions
74 // NOLINTBEGIN
75 MCAPI void _tryGrow(::BlockSource& region, ::BlockPos const& pos, int age) const;
76
77 MCAPI void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
78
79 MCAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
80
81 MCAPI void use(::BlockEvents::BlockPlayerInteractEvent& eventData) const;
82 // NOLINTEND
83
84public:
85 // static functions
86 // NOLINTBEGIN
87 MCAPI static void placeVineString(
88 ::BlockSource& region,
89 ::Random& random,
90 ::BlockPos const& vinePos,
91 int vineHeight,
92 int minAge,
93 int maxAge
94 );
95 // NOLINTEND
96
97public:
98 // virtual function thunks
99 // NOLINTBEGIN
100 MCFOLD void $onRemove(::BlockSource& region, ::BlockPos const& pos) const;
101
102 MCAPI bool $mayPlace(::BlockSource& region, ::BlockPos const& pos) const;
103
104 MCFOLD bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
105
106 MCAPI void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
107
108 MCFOLD ::AABB $getCollisionShape(
109 ::Block const&,
110 ::IConstBlockSource const&,
111 ::BlockPos const&,
113 ) const;
114
115 MCAPI ::AABB const&
116 $getOutline(::Block const&, ::IConstBlockSource const& region, ::BlockPos const& pos, ::AABB& bufferValue) const;
117
118 MCFOLD bool $canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const;
119
120 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
121 // NOLINTEND
122
123public:
124 // vftables
125 // NOLINTBEGIN
126 MCNAPI static void** $vftable();
127 // NOLINTEND
128};
Definition AABB.h:18
Definition Actor.h:102
Definition BlockPlaceEvent.h:16
Definition BlockPlayerInteractEvent.h:17
Definition BlockQueuedTickEvent.h:16
Definition BlockPos.h:17
Definition BlockSource.h:66
Definition BlockType.h:84
Definition Block.h:37
Definition Experiments.h:14
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:24
Definition Random.h:10
Definition WeepingVinesBlock.h:26
static MCAPI void ** $vftable()
Definition optional_ref.h:10