LeviLamina
Loading...
Searching...
No Matches
NyliumBlock.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/item/FertilizerType.h"
7#include "mc/world/level/block/BlockLegacy.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class Block;
13class BlockPos;
14class BlockSource;
15class Experiments;
16class Random;
17class Randomize;
18namespace BlockEvents { class BlockRandomTickEvent; }
19// clang-format on
20
21class NyliumBlock : public ::BlockLegacy {
22public:
23 // NyliumBlock inner types declare
24 // clang-format off
27 // clang-format on
28
29 // NyliumBlock inner types define
30 using RandomPlantProvider = ::std::function<::Block const&(::Randomize const&)>;
31
33
35
36public:
37 // virtual functions
38 // NOLINTBEGIN
39 // vIndex: 75
40 virtual bool canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const
41 /*override*/;
42
43 // vIndex: 73
44 virtual bool
45 onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* entity, ::FertilizerType fType) const
46 /*override*/;
47
48 // vIndex: 130
49 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
50
51 // vIndex: 0
52 virtual ~NyliumBlock() /*override*/ = default;
53 // NOLINTEND
54
55public:
56 // member functions
57 // NOLINTBEGIN
58 MCAPI bool _scatterVegetation(
59 ::BlockSource& region,
60 ::BlockPos const& pos,
61 ::Random& random,
62 ::std::function<::Block const&(::Randomize const&)> plantProvider
63 ) const;
64
65 MCAPI void randomTick(::BlockEvents::BlockRandomTickEvent& eventData) const;
66 // NOLINTEND
67
68public:
69 // static functions
70 // NOLINTBEGIN
71 MCAPI static bool canBeNylium(::BlockSource const& region, ::BlockPos const& pos);
72
73 MCAPI static ::Block const& crimsonBlockProvider(::Randomize const& randomize);
74
75 MCAPI static ::Block const& netherSproutBlockProvider(::Randomize const& randomize);
76
77 MCAPI static ::Block const& warpedBlockProvider(::Randomize const& randomize);
78 // NOLINTEND
79
80public:
81 // virtual function thunks
82 // NOLINTBEGIN
83 MCFOLD bool $canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const;
84
85 MCAPI bool
86 $onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* entity, ::FertilizerType fType) const;
87
88 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
89 // NOLINTEND
90
91public:
92 // vftables
93 // NOLINTBEGIN
94 MCNAPI static void** $vftable();
95 // NOLINTEND
96};
Definition Actor.h:103
Definition BlockRandomTickEvent.h:16
Definition BlockLegacy.h:88
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:38
Definition Experiments.h:14
Definition NyliumBlock.h:21
static MCAPI void ** $vftable()
Definition Random.h:11
Definition Randomize.h:13
Definition BlockRandomTickEvent.h:13