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/BlockType.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
GetCollisionShapeInterface
;
19
class
IConstBlockSource
;
20
class
ItemInstance
;
21
namespace
BlockEvents {
class
BlockQueuedTickEvent
; }
22
namespace
BlockEvents {
class
BlockRandomTickEvent
; }
23
struct
BlockGraphicsModeChangeContext
;
24
// clang-format on
25
26
class
SugarCaneBlock :
public
::BlockType {
27
public
:
28
// prevent constructor by default
29
SugarCaneBlock();
30
31
public
:
32
// virtual functions
33
// NOLINTBEGIN
34
virtual
bool
mayPlace(
::BlockSource
& region,
::BlockPos
const
& pos)
const
/*override*/
;
35
36
virtual
void
neighborChanged(
::BlockSource
& region,
::BlockPos
const
& pos,
::BlockPos
const
& neighborPos)
const
37
/*override*/
;
38
39
virtual
bool
onFertilized(
::BlockSource
& region,
::BlockPos
const
& pos,
::Actor
*, ::FertilizerType)
const
40
/*override*/
;
41
42
virtual
bool
canBeFertilized(
::BlockSource
&,
::BlockPos
const
&,
::Block
const
&)
const
/*override*/
;
43
44
virtual
bool
canSurvive(
::BlockSource
& region,
::BlockPos
const
& pos)
const
/*override*/
;
45
46
virtual ::AABB getCollisionShape(
47
::Block
const
&,
48
::IConstBlockSource
const
&,
49
::BlockPos
const
&,
50
::optional_ref<::GetCollisionShapeInterface const>
51
)
const
/*override*/
;
52
53
virtual ::ItemInstance asItemInstance(
::Block
const
&,
::BlockActor
const
*)
const
/*override*/
;
54
55
virtual
void
onGraphicsModeChanged(
::BlockGraphicsModeChangeContext
const
&
context
)
/*override*/
;
56
// NOLINTEND
57
58
public
:
59
// member functions
60
// NOLINTBEGIN
61
MCAPI SugarCaneBlock(::std::string
const
& nameId,
int
id
);
62
63
MCAPI
void
randomTick(
::BlockEvents::BlockRandomTickEvent
& eventData)
const
;
64
65
MCAPI
void
tick(
::BlockEvents::BlockQueuedTickEvent
& eventData)
const
;
66
// NOLINTEND
67
68
public
:
69
// constructor thunks
70
// NOLINTBEGIN
71
MCAPI
void
* $ctor(::std::string
const
& nameId,
int
id
);
72
// NOLINTEND
73
74
public
:
75
// virtual function thunks
76
// NOLINTBEGIN
77
MCAPI
bool
$mayPlace(
::BlockSource
& region,
::BlockPos
const
& pos)
const
;
78
79
MCFOLD
void
$neighborChanged(
::BlockSource
& region,
::BlockPos
const
& pos,
::BlockPos
const
& neighborPos)
const
;
80
81
MCAPI
bool
$onFertilized(
::BlockSource
& region,
::BlockPos
const
& pos,
::Actor
*, ::FertilizerType)
const
;
82
83
MCFOLD
bool
$canBeFertilized(
::BlockSource
&,
::BlockPos
const
&,
::Block
const
&)
const
;
84
85
MCFOLD
bool
$canSurvive(
::BlockSource
& region,
::BlockPos
const
& pos)
const
;
86
87
MCFOLD ::AABB $getCollisionShape(
88
::Block
const
&,
89
::IConstBlockSource
const
&,
90
::BlockPos
const
&,
91
::optional_ref<::GetCollisionShapeInterface const>
92
)
const
;
93
94
MCAPI ::ItemInstance $asItemInstance(
::Block
const
&,
::BlockActor
const
*)
const
;
95
96
MCFOLD
void
$onGraphicsModeChanged(
::BlockGraphicsModeChangeContext
const
&
context
);
97
98
99
// NOLINTEND
100
101
public
:
102
// vftables
103
// NOLINTBEGIN
104
MCAPI
static
void
** $vftable();
105
// NOLINTEND
106
};
AABB
Definition
AABB.h:18
Actor
Definition
Actor.h:125
BlockActor
Definition
BlockActor.h:30
BlockEvents::BlockQueuedTickEvent
Definition
BlockQueuedTickEvent.h:18
BlockEvents::BlockRandomTickEvent
Definition
BlockRandomTickEvent.h:17
BlockPos
Definition
BlockPos.h:21
BlockSource
Definition
BlockSource.h:73
Block
Definition
Block.h:69
GetCollisionShapeInterface
Definition
GetCollisionShapeInterface.h:13
IConstBlockSource
Definition
IConstBlockSource.h:24
ItemInstance
Definition
ItemInstance.h:15
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
for LeviLamina by
1.16.1