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