Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
CaveVinesBlock.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#include "mc/world/level/block/CaveVinesVariant.h"
10
11// auto generated forward declare list
12// clang-format off
13class AABB;
14class Actor;
15class Block;
16class BlockActor;
17class BlockPos;
18class BlockSource;
21class ItemInstance;
22namespace BlockEvents { class ActorInternalEvent; }
23namespace BlockEvents { class BlockPlaceEvent; }
24namespace BlockEvents { class BlockPlayerInteractEvent; }
25namespace BlockEvents { class BlockQueuedTickEvent; }
26namespace BlockEvents { class BlockRandomTickEvent; }
27// clang-format on
28
29class CaveVinesBlock : public ::BlockType {
30public:
31 // member variables
32 // NOLINTBEGIN
33 ::ll::TypedStorage<1, 1, bool const> mHasBerries;
34 // NOLINTEND
35
36public:
37 // prevent constructor by default
38 CaveVinesBlock();
39
40public:
41 // virtual functions
42 // NOLINTBEGIN
43 virtual int getVariant(::Block const& block) const /*override*/;
44
45 virtual void onRemove(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
46
47 virtual bool mayPlace(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
48
49 virtual bool canSurvive(::BlockSource& region, ::BlockPos const& pos) const /*override*/;
50
51 virtual void neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const
52 /*override*/;
53
54 virtual ::AABB getCollisionShape(
55 ::Block const&,
57 ::BlockPos const&,
59 ) const /*override*/;
60
61 virtual ::AABB const&
62 getOutline(::Block const&, ::IConstBlockSource const&, ::BlockPos const& pos, ::AABB& bufferValue) const
63 /*override*/;
64
65 virtual bool
66 onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fType) const
67 /*override*/;
68
69 virtual bool canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const
70 /*override*/;
71
72 virtual ::ItemInstance asItemInstance(::Block const&, ::BlockActor const*) const /*override*/;
73
74 virtual bool
75 hasTag(::BlockSource& region, ::BlockPos const& pos, ::Block const& block, ::std::string const& tagName) const
76 /*override*/;
77 // NOLINTEND
78
79public:
80 // member functions
81 // NOLINTBEGIN
82 MCNAPI CaveVinesBlock(::std::string const& nameId, int id, ::CaveVinesVariant variant);
83
84 MCNAPI void onEvent(::BlockEvents::ActorInternalEvent& event) const;
85
86 MCNAPI void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
87
88 MCNAPI void randomTick(::BlockEvents::BlockRandomTickEvent& eventData) const;
89
90 MCNAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
91
92 MCNAPI void use(::BlockEvents::BlockPlayerInteractEvent& eventData) const;
93 // NOLINTEND
94
95public:
96 // static functions
97 // NOLINTBEGIN
98 MCNAPI static bool _pickBerries(::BlockSource& region, ::BlockPos const& pos, ::Actor& sourceEntity);
99 // NOLINTEND
100
101public:
102 // constructor thunks
103 // NOLINTBEGIN
104 MCNAPI void* $ctor(::std::string const& nameId, int id, ::CaveVinesVariant variant);
105 // NOLINTEND
106
107public:
108 // virtual function thunks
109 // NOLINTBEGIN
110 MCNAPI int $getVariant(::Block const& block) const;
111
112 MCNAPI void $onRemove(::BlockSource& region, ::BlockPos const& pos) const;
113
114 MCNAPI bool $mayPlace(::BlockSource& region, ::BlockPos const& pos) const;
115
116 MCNAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
117
118 MCNAPI void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
119
120 MCNAPI ::AABB $getCollisionShape(
121 ::Block const&,
122 ::IConstBlockSource const&,
123 ::BlockPos const&,
125 ) const;
126
127 MCNAPI ::AABB const&
128 $getOutline(::Block const&, ::IConstBlockSource const&, ::BlockPos const& pos, ::AABB& bufferValue) const;
129
130 MCNAPI bool
131 $onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fType) const;
132
133 MCNAPI bool $canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const;
134
135 MCNAPI ::ItemInstance $asItemInstance(::Block const&, ::BlockActor const*) const;
136
137 MCNAPI bool
138 $hasTag(::BlockSource& region, ::BlockPos const& pos, ::Block const& block, ::std::string const& tagName) const;
139
140
141 // NOLINTEND
142
143public:
144 // vftables
145 // NOLINTBEGIN
146 MCNAPI static void** $vftable();
147 // NOLINTEND
148};
Definition AABB.h:18
Definition Actor.h:116
Definition BlockActor.h:30
Definition ActorInternalEvent.h:17
Definition BlockPlaceEvent.h:16
Definition BlockPlayerInteractEvent.h:18
Definition BlockQueuedTickEvent.h:16
Definition BlockRandomTickEvent.h:16
Definition BlockPos.h:14
Definition BlockSource.h:72
Definition Block.h:42
MCAPI::ItemInstance $asItemInstance(::Block const &, ::BlockActor const *) const
MCAPI bool $hasTag(::BlockSource &region, ::BlockPos const &pos, ::Block const &block, ::std::string const &tagName) const
MCAPI bool $canSurvive(::BlockSource &region, ::BlockPos const &pos) const
MCAPI::AABB $getCollisionShape(::Block const &, ::IConstBlockSource const &, ::BlockPos const &, ::optional_ref<::GetCollisionShapeInterface const >) const
MCAPI int $getVariant(::Block const &block) const
MCAPI CaveVinesBlock(::std::string const &nameId, int id, ::CaveVinesVariant variant)
static MCAPI bool _pickBerries(::BlockSource &region, ::BlockPos const &pos, ::Actor &sourceEntity)
MCAPI void * $ctor(::std::string const &nameId, int id, ::CaveVinesVariant variant)
MCAPI void $onRemove(::BlockSource &region, ::BlockPos const &pos) const
MCAPI void onEvent(::BlockEvents::ActorInternalEvent &event) const
MCAPI void randomTick(::BlockEvents::BlockRandomTickEvent &eventData) const
MCAPI void use(::BlockEvents::BlockPlayerInteractEvent &eventData) const
MCAPI bool $canBeFertilized(::BlockSource &region, ::BlockPos const &pos, ::Block const &aboveBlock) const
MCAPI bool $onFertilized(::BlockSource &region, ::BlockPos const &pos, ::Actor *actor, ::FertilizerType fType) const
MCAPI void tick(::BlockEvents::BlockQueuedTickEvent &eventData) const
MCAPI void onPlace(::BlockEvents::BlockPlaceEvent &eventData) const
MCAPI void $neighborChanged(::BlockSource &region, ::BlockPos const &pos, ::BlockPos const &neighborPos) const
MCAPI bool $mayPlace(::BlockSource &region, ::BlockPos const &pos) const
MCAPI::AABB const & $getOutline(::Block const &, ::IConstBlockSource const &, ::BlockPos const &pos, ::AABB &bufferValue) const
static MCAPI void ** $vftable()
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:25
Definition ItemInstance.h:15
Definition optional_ref.h:10