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/BlockType.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class Block;
13class BlockPos;
14class BlockSource;
15class Experiments;
16class IRandom;
17namespace BlockEvents { class BlockRandomTickEvent; }
18// clang-format on
19
20class NyliumBlock : public ::BlockType {
21public:
22 // NyliumBlock inner types declare
23 // clang-format off
26 // clang-format on
27
28 // NyliumBlock inner types define
30
32
33public:
34 // virtual functions
35 // NOLINTBEGIN
36 virtual bool canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const
37 /*override*/;
38
39 virtual bool
40 onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* entity, ::FertilizerType fType) const
41 /*override*/;
42
43 virtual void _addHardCodedBlockComponents(::Experiments const&) /*override*/;
44
45 virtual ~NyliumBlock() /*override*/ = default;
46 // NOLINTEND
47
48public:
49 // member functions
50 // NOLINTBEGIN
51 MCAPI void randomTick(::BlockEvents::BlockRandomTickEvent& eventData) const;
52 // NOLINTEND
53
54public:
55 // static functions
56 // NOLINTBEGIN
57 MCAPI static bool canBeNylium(::BlockSource const& region, ::BlockPos const& pos);
58
59 MCAPI static ::Block const& crimsonBlockProvider(::IRandom& random);
60
61 MCAPI static ::Block const& netherSproutBlockProvider(::IRandom& random);
62
63 MCAPI static ::Block const& warpedBlockProvider(::IRandom& random);
64 // NOLINTEND
65
66public:
67 // virtual function thunks
68 // NOLINTBEGIN
69 MCFOLD bool $canBeFertilized(::BlockSource& region, ::BlockPos const& pos, ::Block const& aboveBlock) const;
70
71 MCAPI bool
72 $onFertilized(::BlockSource& region, ::BlockPos const& pos, ::Actor* entity, ::FertilizerType fType) const;
73
74 MCAPI void $_addHardCodedBlockComponents(::Experiments const&);
75
76
77 // NOLINTEND
78
79public:
80 // vftables
81 // NOLINTBEGIN
82 MCAPI static void** $vftable();
83 // NOLINTEND
84};
Definition Actor.h:106
Definition BlockRandomTickEvent.h:16
Definition BlockPos.h:19
Definition BlockSource.h:71
Definition Block.h:43
Definition Experiments.h:14
Definition IRandom.h:10
Definition NyliumBlock.h:20