LeviLamina
Loading...
Searching...
No Matches
Drop.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::Drop {
16
// functions
17
// NOLINTBEGIN
18
MCNAPI ::std::function<
::ResourceDrops
(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)>
19
customWhenSilkTouch(
20
::std::function<
::ResourceDrops
(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)> dropStrategy
21
);
22
23
MCNAPI ::std::function<
::ResourceDrops
(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)>
24
customWhenSilkTouchOrToolOtherwise(
25
::HashedString
const
& toolItemId,
26
::std::function<
::ResourceDrops
(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)> dropStrategy,
27
::std::function<
::ResourceDrops
(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)> otherDropStrategy
28
);
29
30
MCNAPI ::std::function<
::ResourceDrops
(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)>
31
customWhenSilkTouchOtherwise(
32
::std::function<
::ResourceDrops
(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)> dropStrategy,
33
::std::function<
::ResourceDrops
(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)> otherDropStrategy
34
);
35
36
MCNAPI ::std::function<
::ResourceDrops
(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)> customWhenTool(
37
::HashedString
const
& toolItemId,
38
::std::function<
::ResourceDrops
(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)> dropStrategy
39
);
40
41
MCNAPI ::std::function<
::ResourceDrops
(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)>
42
customWhenToolOtherwise(
43
::HashedString
const
& toolItemId,
44
::std::function<
::ResourceDrops
(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)> dropStrategy,
45
::std::function<
::ResourceDrops
(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)> otherDropStrategy
46
);
47
48
MCNAPI ::std::function<
::ResourceDrops
(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)> item(
49
::HashedString
const
& itemId,
50
::std::function<
int
(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)> countProvider
51
);
52
53
MCNAPI ::std::function<
::ResourceDrops
(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)>
54
self(::std::function<
int
(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)> countProvider);
55
56
MCNAPI ::std::function<
::ResourceDrops
(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)> self(
57
::std::vector<::BlockState const*> statesToKeep,
58
::std::function<
int
(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)> countProvider
59
);
60
61
MCNAPI ::std::function<
::ResourceDrops
(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)>
62
selfWhenSilkTouch(::std::vector<::BlockState const*> statesToKeep);
63
64
MCNAPI ::std::function<
::ResourceDrops
(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)>
65
selfWhenSilkTouchOrTool(
::HashedString
const
& toolItemId, ::std::vector<::BlockState const*> statesToKeep);
66
67
MCNAPI ::std::function<
::ResourceDrops
(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)>
68
selfWhenSilkTouchOrToolOtherwise(
69
::HashedString
const
& toolItemId,
70
::std::function<
::ResourceDrops
(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)> otherDropStrategy
71
);
72
73
MCNAPI ::std::function<
::ResourceDrops
(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)>
74
selfWhenSilkTouchOtherwise(
75
::std::function<
::ResourceDrops
(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)> otherDropStrategy
76
);
77
// NOLINTEND
78
79
}
// namespace VanillaBlockDrops::Drop
BlockState
Definition
BlockState.h:13
Block
Definition
Block.h:38
HashedString
Definition
HashedString.h:5
Randomize
Definition
Randomize.h:13
ResourceDropsContext
Definition
ResourceDropsContext.h:12
ResourceDrops
Definition
ResourceDrops.h:10
src
mc
world
level
block
vanilla_block_drops
Drop.h
Generated on Fri Jun 13 2025 13:06:05 for LeviLamina by
1.12.0