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
11
class
Actor
;
12
class
Block
;
13
class
BlockPos
;
14
class
BlockSource
;
15
class
IRandom
;
16
namespace
BlockEvents {
class
BlockRandomTickEvent
; }
17
// clang-format on
18
19
class
NyliumBlock :
public
::BlockType {
20
public
:
21
// NyliumBlock inner types declare
22
// clang-format off
23
struct
CrimsonNyliumBlockVegetationProbabilities
;
24
struct
WarpedNyliumBlockVegetationProbabilities
;
25
// clang-format on
26
27
// NyliumBlock inner types define
28
struct
CrimsonNyliumBlockVegetationProbabilities
{};
29
30
struct
WarpedNyliumBlockVegetationProbabilities
{};
31
32
public
:
33
// prevent constructor by default
34
NyliumBlock();
35
36
public
:
37
// virtual functions
38
// NOLINTBEGIN
39
virtual
bool
canBeFertilized(
::BlockSource
& aboveBlock,
::BlockPos
const
&,
::Block
const
&)
const
/*override*/
;
40
41
virtual
bool
onFertilized(
::BlockSource
& region,
::BlockPos
const
& pos,
::Actor
*, ::FertilizerType)
const
42
/*override*/
;
43
// NOLINTEND
44
45
public
:
46
// member functions
47
// NOLINTBEGIN
48
MCAPI NyliumBlock(::std::string
const
& nameId,
int
id
);
49
50
MCAPI
void
randomTick(
::BlockEvents::BlockRandomTickEvent
& eventData)
const
;
51
// NOLINTEND
52
53
public
:
54
// static functions
55
// NOLINTBEGIN
56
MCAPI
static
bool
_isGrowthBlockingHalfSlabBlock(
::Block
const
& block);
57
58
MCAPI
static
bool
_isGrowthBlockingStairBlock(
::Block
const
& block);
59
60
MCAPI static ::Block
const
& crimsonBlockProvider(
::IRandom
& random);
61
62
MCAPI static ::Block
const
& netherSproutBlockProvider(
::IRandom
&);
63
64
MCAPI static ::Block
const
& warpedBlockProvider(
::IRandom
& random);
65
// NOLINTEND
66
67
public
:
68
// constructor thunks
69
// NOLINTBEGIN
70
MCAPI
void
* $ctor(::std::string
const
& nameId,
int
id
);
71
// NOLINTEND
72
73
public
:
74
// virtual function thunks
75
// NOLINTBEGIN
76
MCFOLD
bool
$canBeFertilized(
::BlockSource
& aboveBlock,
::BlockPos
const
&,
::Block
const
&)
const
;
77
78
MCAPI
bool
$onFertilized(
::BlockSource
& region,
::BlockPos
const
& pos,
::Actor
*, ::FertilizerType)
const
;
79
80
81
// NOLINTEND
82
83
public
:
84
// vftables
85
// NOLINTBEGIN
86
MCAPI
static
void
** $vftable();
87
// NOLINTEND
88
};
Actor
Definition
Actor.h:125
BlockEvents::BlockRandomTickEvent
Definition
BlockRandomTickEvent.h:17
BlockPos
Definition
BlockPos.h:21
BlockSource
Definition
BlockSource.h:73
Block
Definition
Block.h:69
IRandom
Definition
IRandom.h:10
NyliumBlock::CrimsonNyliumBlockVegetationProbabilities
Definition
NyliumBlock.h:28
NyliumBlock::WarpedNyliumBlockVegetationProbabilities
Definition
NyliumBlock.h:30
src
mc
world
level
block
NyliumBlock.h
Generated on
for LeviLamina by
1.16.1