LeviLamina
Loading...
Searching...
No Matches
Registration.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
// auto generated forward declare list
6
// clang-format off
7
class
Block
;
8
class
BlockState
;
9
class
HashedString
;
10
class
Randomize
;
11
struct
ResourceDrops
;
12
struct
ResourceDropsContext
;
13
// clang-format on
14
15
namespace
VanillaBlockDrops::Registration {
16
// functions
17
// NOLINTBEGIN
18
MCAPI
void
19
add(
::HashedString
const
& blockId,
20
::std::function<
::ResourceDrops
(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)> dropStrategy);
21
22
MCAPI
void
dropExperience(
::HashedString
const
& blockId);
23
24
MCAPI
void
dropNothing(
::HashedString
const
& blockId);
25
26
MCAPI
void
dropOther(
27
::HashedString
const
& blockId,
28
::HashedString
const
& itemId,
29
::std::function<
int
(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)> countProvider
30
);
31
32
MCAPI
void
dropOtherNoExplosionDecay(
33
::HashedString
const
& blockId,
34
::HashedString
const
& itemId,
35
::std::function<
int
(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)> countProvider
36
);
37
38
MCAPI
void
dropOtherWhenSilkTouch(
::HashedString
const
& blockId,
::HashedString
const
& itemId);
39
40
MCAPI
void
dropSelf(
41
::HashedString
const
& blockId,
42
::std::function<
int
(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)> countProvider
43
);
44
45
MCAPI
void
dropSelfNoExplosionDecay(
46
::HashedString
const
& blockId,
47
::std::function<
int
(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)> countProvider
48
);
49
50
MCAPI
void
dropWhenSilkTouch(
::HashedString
const
& blockId, ::std::vector<::BlockState const*> statesToKeep);
51
// NOLINTEND
52
53
}
// namespace VanillaBlockDrops::Registration
BlockState
Definition
BlockState.h:11
Block
Definition
Block.h:36
HashedString
Definition
HashedString.h:5
Randomize
Definition
Randomize.h:13
ResourceDropsContext
Definition
ResourceDropsContext.h:5
ResourceDrops
Definition
ResourceDrops.h:10
src
mc
world
level
block
vanilla_block_drops
Registration.h
Generated on Sat Apr 26 2025 05:56:22 for LeviLamina by
1.12.0