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& region, ::IConstBlockSource const& pos, ::BlockPos const& bufferValue, ::AABB&) const
51 /*override*/;
52
53 virtual bool onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor*, ::FertilizerType) const
54 /*override*/;
55
56 virtual bool canBeFertilized(::BlockSource&, ::BlockPos const&, ::Block const&) const /*override*/;
57 // NOLINTEND
58
59public:
60 // member functions
61 // NOLINTBEGIN
62 MCAPI WeepingVinesBlock(::std::string const& nameId, int id);
63
64 MCAPI void _tryGrow(::BlockSource& region, ::BlockPos const& pos, int age) const;
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 placeVineString(
77 ::BlockSource& region,
78 ::Random& random,
79 ::BlockPos const& vinePos,
80 int vineHeight,
81 int minAge,
82 int maxAge
83 );
84 // NOLINTEND
85
86public:
87 // constructor thunks
88 // NOLINTBEGIN
89 MCAPI void* $ctor(::std::string const& nameId, int id);
90 // NOLINTEND
91
92public:
93 // virtual function thunks
94 // NOLINTBEGIN
95 MCFOLD void $onRemove(::BlockSource& region, ::BlockPos const& pos) const;
96
97 MCAPI bool $mayPlace(::BlockSource& region, ::BlockPos const& pos) const;
98
99 MCFOLD bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
100
101 MCAPI void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
102
103 MCFOLD ::AABB $getCollisionShape(
104 ::Block const&,
105 ::IConstBlockSource const&,
106 ::BlockPos const&,
108 ) const;
109
110 MCAPI ::AABB const&
111 $getOutline(::Block const& region, ::IConstBlockSource const& pos, ::BlockPos const& bufferValue, ::AABB&) const;
112
113 MCAPI bool $onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor*, ::FertilizerType) const;
114
115 MCFOLD bool $canBeFertilized(::BlockSource&, ::BlockPos const&, ::Block const&) const;
116
117
118 // NOLINTEND
119
120public:
121 // vftables
122 // NOLINTBEGIN
123 MCAPI static void** $vftable();
124 // NOLINTEND
125};
Definition AABB.h:18
Definition Actor.h:125
Definition BlockPlaceEvent.h:18
Definition BlockPlayerInteractEvent.h:20
Definition BlockQueuedTickEvent.h:18
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition Block.h:69
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:24
Definition Random.h:10
Definition optional_ref.h:10