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
MCAPI ::std::function<int(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)>
19
addUniformFortuneBonus(::std::function<
int
(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)> countProvider);
20
21
MCAPI ::std::function<int(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)>
22
between(
int
minInclusive,
int
maxInclusive);
23
24
MCAPI ::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
MCAPI
void
configureBlockDrops(
::BaseGameVersion
const
& baseGameVersion,
::Experiments
const
&);
30
31
MCAPI ::std::function<int(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)> exactly(
int
value);
32
33
MCAPI ::std::function<int(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)>
34
limitCount(
int
max, ::std::function<
int
(
::Block
const
&,
::Randomize
&,
::ResourceDropsContext
const
&)> countProvider);
35
36
MCAPI ::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
MCAPI ::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:13
Block
Definition
Block.h:36
Experiments
Definition
Experiments.h:14
Randomize
Definition
Randomize.h:13
ResourceDropsContext
Definition
ResourceDropsContext.h:5
ResourceDrops
Definition
ResourceDrops.h:10
src
mc
world
level
block
VanillaBlockDrops.h
Generated on Sat Apr 26 2025 05:56:22 for LeviLamina by
1.12.0