Skip to content
LeviMC
English
AutoLightDark
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 MCNAPI WeepingVinesBlock(::std::string const& nameId, int id);
65
66 MCNAPI void onPlace(::BlockEvents::BlockPlaceEvent& eventData) const;
67
68 MCNAPI void tick(::BlockEvents::BlockQueuedTickEvent& eventData) const;
69
70 MCNAPI void use(::BlockEvents::BlockPlayerInteractEvent& eventData) const;
71 // NOLINTEND
72
73public:
74 // static functions
75 // NOLINTBEGIN
76 MCNAPI static void _tryGrow(::BlockSource& region, ::BlockPos const& pos, int age);
77
78 MCNAPI 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 MCNAPI void* $ctor(::std::string const& nameId, int id);
92 // NOLINTEND
93
94public:
95 // virtual function thunks
96 // NOLINTBEGIN
97 MCNAPI void $onRemove(::BlockSource& region, ::BlockPos const& pos) const;
98
99 MCNAPI bool $mayPlace(::BlockSource& region, ::BlockPos const& pos) const;
100
101 MCNAPI bool $canSurvive(::BlockSource& region, ::BlockPos const& pos) const;
102
103 MCNAPI void $neighborChanged(::BlockSource& region, ::BlockPos const& pos, ::BlockPos const& neighborPos) const;
104
105 MCNAPI ::AABB $getCollisionShape(
106 ::Block const&,
107 ::IConstBlockSource const&,
108 ::BlockPos const&,
110 ) const;
111
112 MCNAPI ::AABB const&
113 $getOutline(::Block const&, ::IConstBlockSource const& region, ::BlockPos const& pos, ::AABB& bufferValue) const;
114
115 MCNAPI bool
116 $onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* actor, ::FertilizerType fType) const;
117
118 MCNAPI bool $canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const;
119
120
121 // NOLINTEND
122
123public:
124 // vftables
125 // NOLINTBEGIN
126 MCNAPI static void** $vftable();
127 // NOLINTEND
128};
Definition AABB.h:18
Definition Actor.h:116
Definition BlockPlaceEvent.h:16
Definition BlockPlayerInteractEvent.h:18
Definition BlockQueuedTickEvent.h:16
Definition BlockPos.h:14
Definition BlockSource.h:72
Definition Block.h:42
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:25
Definition Random.h:10
MCAPI void use(::BlockEvents::BlockPlayerInteractEvent &eventData) const
MCAPI bool $mayPlace(::BlockSource &region, ::BlockPos const &pos) const
MCAPI void * $ctor(::std::string const &nameId, int id)
static MCAPI void ** $vftable()
MCAPI WeepingVinesBlock(::std::string const &nameId, int id)
MCAPI::AABB $getCollisionShape(::Block const &, ::IConstBlockSource const &, ::BlockPos const &, ::optional_ref<::GetCollisionShapeInterface const >) const
MCAPI::AABB const & $getOutline(::Block const &, ::IConstBlockSource const &region, ::BlockPos const &pos, ::AABB &bufferValue) const
MCAPI bool $canBeFertilized(::BlockSource &region, ::BlockPos const &pos, ::Block const &aboveBlock) const
MCAPI void $onRemove(::BlockSource &region, ::BlockPos const &pos) const
MCAPI void onPlace(::BlockEvents::BlockPlaceEvent &eventData) const
static MCAPI void _tryGrow(::BlockSource &region, ::BlockPos const &pos, int age)
MCAPI void tick(::BlockEvents::BlockQueuedTickEvent &eventData) const
MCAPI void $neighborChanged(::BlockSource &region, ::BlockPos const &pos, ::BlockPos const &neighborPos) const
MCAPI bool $canSurvive(::BlockSource &region, ::BlockPos const &pos) const
MCAPI bool $onFertilized(::BlockSource &region, ::BlockPos const &pos, ::Actor *actor, ::FertilizerType fType) const
static MCAPI void placeVineString(::BlockSource &region, ::Random &random, ::BlockPos const &vinePos, int vineHeight, int minAge, int maxAge)
Definition optional_ref.h:10