LeviLamina
Loading...
Searching...
No Matches
SugarCaneBlock.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/BlockLegacy.h"
9
10
// auto generated forward declare list
11
// clang-format off
12
class
AABB
;
13
class
Actor
;
14
class
Block
;
15
class
BlockActor
;
16
class
BlockPos
;
17
class
BlockSource
;
18
class
Experiments
;
19
class
GetCollisionShapeInterface
;
20
class
IConstBlockSource
;
21
class
ItemInstance
;
22
class
Random
;
23
struct
BlockGraphicsModeChangeContext
;
24
namespace
BlockEvents {
class
BlockQueuedTickEvent; }
25
// clang-format on
26
27
class
SugarCaneBlock
:
public
::BlockLegacy
{
28
public
:
29
// virtual functions
30
// NOLINTBEGIN
31
// vIndex: 137
32
virtual
void
randomTick(
::BlockSource
& region,
::BlockPos
const
& pos,
::Random
& random)
const
/*override*/
;
33
34
// vIndex: 79
35
virtual
bool
mayPlace(
::BlockSource
& region,
::BlockPos
const
& pos)
const
/*override*/
;
36
37
// vIndex: 87
38
virtual
void
neighborChanged(
::BlockSource
& region,
::BlockPos
const
& pos,
::BlockPos
const
& neighborPos)
const
39
/*override*/
;
40
41
// vIndex: 74
42
virtual
bool
43
onFertilized(
::BlockSource
& region,
::BlockPos
const
& pos,
::Actor
* actor, ::FertilizerType fType)
const
44
/*override*/
;
45
46
// vIndex: 76
47
virtual
bool
canBeFertilized(
::BlockSource
& region,
::BlockPos
const
& pos,
::Block
const
& aboveBlock)
const
48
/*override*/
;
49
50
// vIndex: 142
51
virtual
bool
canSurvive(
::BlockSource
& region,
::BlockPos
const
& pos)
const
/*override*/
;
52
53
// vIndex: 5
54
virtual ::AABB
55
getCollisionShape(
::Block
const
&,
::IConstBlockSource
const
&,
::BlockPos
const
&,
::optional_ref<::GetCollisionShapeInterface const>
)
56
const
/*override*/
;
57
58
// vIndex: 90
59
virtual ::ItemInstance asItemInstance(
::Block
const
&,
::BlockActor
const
*)
const
/*override*/
;
60
61
// vIndex: 115
62
virtual
void
onGraphicsModeChanged(
::BlockGraphicsModeChangeContext
const
&
context
)
/*override*/
;
63
64
// vIndex: 131
65
virtual
void
_addHardCodedBlockComponents(
::Experiments
const
&)
/*override*/
;
66
67
// vIndex: 0
68
virtual
~SugarCaneBlock
()
/*override*/
=
default
;
69
// NOLINTEND
70
71
public
:
72
// member functions
73
// NOLINTBEGIN
74
MCAPI
void
tick(
::BlockEvents::BlockQueuedTickEvent
& eventData)
const
;
75
// NOLINTEND
76
77
public
:
78
// destructor thunk
79
// NOLINTBEGIN
80
81
// NOLINTEND
82
83
public
:
84
// virtual function thunks
85
// NOLINTBEGIN
86
MCAPI
void
$randomTick(
::BlockSource
& region,
::BlockPos
const
& pos,
::Random
& random)
const
;
87
88
MCAPI
bool
$mayPlace(
::BlockSource
& region,
::BlockPos
const
& pos)
const
;
89
90
MCFOLD
void
$neighborChanged(
::BlockSource
& region,
::BlockPos
const
& pos,
::BlockPos
const
& neighborPos)
const
;
91
92
MCAPI
bool
93
$onFertilized(
::BlockSource
& region,
::BlockPos
const
& pos,
::Actor
* actor, ::FertilizerType fType)
const
;
94
95
MCFOLD
bool
$canBeFertilized(
::BlockSource
& region,
::BlockPos
const
& pos,
::Block
const
& aboveBlock)
const
;
96
97
MCFOLD
bool
$canSurvive(
::BlockSource
& region,
::BlockPos
const
& pos)
const
;
98
99
MCFOLD ::AABB
100
$getCollisionShape(
::Block
const
&,
::IConstBlockSource
const
&,
::BlockPos
const
&,
::optional_ref<::GetCollisionShapeInterface const>
)
101
const
;
102
103
MCAPI ::ItemInstance $asItemInstance(
::Block
const
&,
::BlockActor
const
*)
const
;
104
105
MCFOLD
void
$onGraphicsModeChanged(
::BlockGraphicsModeChangeContext
const
&
context
);
106
107
MCAPI
void
$_addHardCodedBlockComponents(
::Experiments
const
&);
108
// NOLINTEND
109
110
public
:
111
// vftables
112
// NOLINTBEGIN
113
MCAPI
static
void
** $vftable();
114
// NOLINTEND
115
};
AABB
Definition
AABB.h:16
Actor
Definition
Actor.h:104
BlockActor
Definition
BlockActor.h:32
BlockEvents::BlockQueuedTickEvent
Definition
BlockQueuedTickEvent.h:15
BlockLegacy
Definition
BlockLegacy.h:88
BlockPos
Definition
BlockPos.h:18
BlockSource
Definition
BlockSource.h:67
Block
Definition
Block.h:36
Experiments
Definition
Experiments.h:14
GetCollisionShapeInterface
Definition
GetCollisionShapeInterface.h:13
IConstBlockSource
Definition
IConstBlockSource.h:24
ItemInstance
Definition
ItemInstance.h:16
Random
Definition
Random.h:16
SugarCaneBlock
Definition
SugarCaneBlock.h:27
optional_ref
Definition
optional_ref.h:10
BlockGraphicsModeChangeContext
Definition
BlockGraphicsModeChangeContext.h:5
context
Definition
context.h:5
src
mc
world
level
block
SugarCaneBlock.h
Generated on Sat Apr 26 2025 05:56:22 for LeviLamina by
1.12.0