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