LeviLamina
Loading...
Searching...
No Matches
VanillaBlockDrops.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
// auto generated forward declare list
6
// clang-format off
7
class
BaseGameVersion
;
8
class
Block
;
9
class
Experiments
;
10
class
Randomize
;
11
struct
ResourceDrops
;
12
struct
ResourceDropsContext
;
13
// clang-format on
14
15
namespace
VanillaBlockDrops {
16
// functions
17
// NOLINTBEGIN
18
MCNAPI ::std::function<int(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)>
19
addUniformFortuneBonus(::std::function<
int
(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)> countProvider);
20
21
MCNAPI ::std::function<int(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)>
22
between(
int
minInclusive,
int
maxInclusive);
23
24
MCNAPI ::std::function<
::ResourceDrops
(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)> combine(
25
::std::function<
::ResourceDrops
(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)> dropStrategyA,
26
::std::function<
::ResourceDrops
(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)> dropStrategyB
27
);
28
29
MCNAPI
void
configureBlockDrops(
::BaseGameVersion
const
& baseGameVersion,
::Experiments
const
& experiments);
30
31
MCNAPI ::std::function<int(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)> exactly(
int
value);
32
33
MCNAPI ::std::function<int(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)>
34
limitCount(
int
max, ::std::function<
int
(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)> countProvider);
35
36
MCNAPI ::std::function<
::ResourceDrops
(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)> when(
37
::std::function<
bool
(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)> condition,
38
::std::function<
::ResourceDrops
(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)> trueStrategy
39
);
40
41
MCNAPI ::std::function<
::ResourceDrops
(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)> when(
42
::std::function<
bool
(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)> condition,
43
::std::function<
::ResourceDrops
(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)> trueStrategy,
44
::std::function<
::ResourceDrops
(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)> falseStrategy
45
);
46
// NOLINTEND
47
48
}
// namespace VanillaBlockDrops
BaseGameVersion
Definition
BaseGameVersion.h:8
Block
Definition
Block.h:38
Experiments
Definition
Experiments.h:14
Randomize
Definition
Randomize.h:13
ResourceDropsContext
Definition
ResourceDropsContext.h:12
ResourceDrops
Definition
ResourceDrops.h:10
src
mc
world
level
block
VanillaBlockDrops.h
Generated on Fri Jun 13 2025 05:05:16 for LeviLamina by
1.12.0