Skip to content
LeviMC
Home
Projects
Docs
6
LeviLamina
Mod loader for Minecraft Bedrock Edition
LegacyScriptEngine
Runs LLSE script plugins on LeviLamina
lip
General package installer
LeviLauncher
Bedrock launcher for Windows and Android
Be.D.D.
Scripted client input for mod tests
bedboo
Bedrock bots with a mineflayer-compatible API
All repositories on GitHub
Mods
Blog
Community
About
English
English
简体中文
繁體中文
Auto
Light
Dark
Auto
Light
Dark
LeviLamina
User Guides
Developer Guides
API Guides
API Reference
Maintainer Guides
Resources
LeviLamina on GitHub
LeviMC
Home
Projects
Docs
6
LeviLamina
Mod loader for Minecraft Bedrock Edition
LegacyScriptEngine
Runs LLSE script plugins on LeviLamina
lip
General package installer
LeviLauncher
Bedrock launcher for Windows and Android
Be.D.D.
Scripted client input for mod tests
bedboo
Bedrock bots with a mineflayer-compatible API
All repositories on GitHub
Mods
Blog
Community
About
API Reference
On this page
LeviLamina
User Guides
Developer Guides
API Guides
API Reference
Maintainer Guides
Search
Ctrl
K
Loading...
Searching...
No Matches
CrackingIceBlock.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
// auto generated inclusion list
6
#include "mc/world/level/block/BlockType.h"
7
8
// auto generated forward declare list
9
// clang-format off
10
class
Actor
;
11
class
Block
;
12
class
BlockPos
;
13
class
BlockSource
;
14
class
EntityContext
;
15
class
HashedString
;
16
class
Player
;
17
class
Random
;
18
namespace
BlockEvents {
class
BlockPlaceEvent
; }
19
namespace
BlockEvents {
class
BlockQueuedTickEvent
; }
20
// clang-format on
21
22
class
CrackingIceBlock :
public
::BlockType {
23
public
:
24
// member variables
25
// NOLINTBEGIN
26
::ll::TypedStorage<8, 8, ::HashedString const&> mOnDestroyBlock;
27
// NOLINTEND
28
29
public
:
30
// prevent constructor by default
31
CrackingIceBlock& operator=(CrackingIceBlock
const
&);
32
CrackingIceBlock(CrackingIceBlock
const
&);
33
CrackingIceBlock();
34
35
public
:
36
// virtual functions
37
// NOLINTBEGIN
38
virtual ::Block
const
* playerWillDestroy(
::Player
& player,
::BlockPos
const
& pos,
::Block
const
& block)
const
39
/*override*/
;
40
41
virtual
void
onStandOn(
::EntityContext
& entity,
::BlockPos
const
& pos)
const
/*override*/
;
42
43
virtual
bool
_shouldActorIncreaseCracking(
::Actor
const
&,
::BlockPos
const
&)
const
;
44
45
virtual
bool
_shouldEnvironmentIncreaseCracking(
46
::BlockSource
& region,
47
::BlockPos
const
& pos,
48
::Block
const
& block,
49
::Random
& random
50
)
const
;
51
// NOLINTEND
52
53
public
:
54
// member functions
55
// NOLINTBEGIN
56
MCNAPI
void
_increaseCracking
(
::BlockSource
& region,
::BlockPos
const
& pos,
::Random
& random,
bool
propagate)
const
;
57
58
MCNAPI
void
onPlace
(
::BlockEvents::BlockPlaceEvent
& eventData)
const
;
59
60
MCNAPI
void
tick
(
::BlockEvents::BlockQueuedTickEvent
& eventData)
const
;
61
// NOLINTEND
62
63
public
:
64
// virtual function thunks
65
// NOLINTBEGIN
66
MCNAPI ::Block
const
*
$playerWillDestroy
(
::Player
& player,
::BlockPos
const
& pos,
::Block
const
& block)
const
;
67
68
MCNAPI
bool
$_shouldActorIncreaseCracking
(
::Actor
const
&,
::BlockPos
const
&)
const
;
69
70
71
// NOLINTEND
72
};
Actor
Definition
Actor.h:116
BlockEvents::BlockPlaceEvent
Definition
BlockPlaceEvent.h:16
BlockEvents::BlockQueuedTickEvent
Definition
BlockQueuedTickEvent.h:16
BlockPos
Definition
BlockPos.h:14
BlockSource
Definition
BlockSource.h:72
Block
Definition
Block.h:42
CrackingIceBlock::$_shouldActorIncreaseCracking
MCAPI bool $_shouldActorIncreaseCracking(::Actor const &, ::BlockPos const &) const
CrackingIceBlock::onPlace
MCAPI void onPlace(::BlockEvents::BlockPlaceEvent &eventData) const
CrackingIceBlock::tick
MCAPI void tick(::BlockEvents::BlockQueuedTickEvent &eventData) const
CrackingIceBlock::$playerWillDestroy
MCAPI::Block const * $playerWillDestroy(::Player &player, ::BlockPos const &pos, ::Block const &block) const
CrackingIceBlock::_increaseCracking
MCAPI void _increaseCracking(::BlockSource ®ion, ::BlockPos const &pos, ::Random &random, bool propagate) const
EntityContext
Definition
EntityContext.h:15
HashedString
Definition
HashedString.h:5
Player
Definition
Player.h:131
Random
Definition
Random.h:10
src
mc
world
level
block
CrackingIceBlock.h
Generated on
for LeviLamina by
1.16.1