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& region, ::IConstBlockSource const& pos, ::BlockPos const& bufferValue, ::AABB&) const
50 /*override*/;
51
52 virtual bool onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor*, ::FertilizerType) const
53 /*override*/;
54
55 virtual bool canBeFertilized(::BlockSource&, ::BlockPos const&, ::Block const&) const /*override*/;
56 // NOLINTEND
57
58public:
59 // member functions
60 // NOLINTBEGIN
61 MCAPI TwistingVinesBlock(::std::string const& nameId, int id);
62
63 MCAPI void _tryGrow(::BlockSource& region, ::BlockPos const& pos, int age) const;
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 // constructor thunks
74 // NOLINTBEGIN
75 MCAPI void* $ctor(::std::string const& nameId, int id);
76 // NOLINTEND
77
78public:
79 // virtual function thunks
80 // NOLINTBEGIN
81 MCFOLD void $onRemove(::BlockSource& region, ::BlockPos const& pos) const;
82
83 MCAPI bool $mayPlace(::BlockSource& region, ::BlockPos const& pos) const;
84
85 MCFOLD bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
86
87 MCAPI void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
88
89 MCFOLD ::AABB $getCollisionShape(
90 ::Block const&,
92 ::BlockPos const&,
94 ) const;
95
96 MCAPI ::AABB const&
97 $getOutline(::Block const& region, ::IConstBlockSource const& pos, ::BlockPos const& bufferValue, ::AABB&) const;
98
99 MCAPI bool $onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor*, ::FertilizerType) const;
100
101 MCFOLD bool $canBeFertilized(::BlockSource&, ::BlockPos const&, ::Block const&) const;
102
103
104 // NOLINTEND
105
106public:
107 // vftables
108 // NOLINTBEGIN
109 MCAPI static void** $vftable();
110 // NOLINTEND
111};
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 optional_ref.h:10