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
8class Block;
9class Experiments;
10class Randomize;
11struct ResourceDrops;
13// clang-format on
14
15namespace VanillaBlockDrops {
16// functions
17// NOLINTBEGIN
18MCAPI ::std::function<int(::Block const&, ::Randomize&, ::ResourceDropsContext const&)>
19addUniformFortuneBonus(::std::function<int(::Block const&, ::Randomize&, ::ResourceDropsContext const&)> countProvider);
20
21MCAPI ::std::function<int(::Block const&, ::Randomize&, ::ResourceDropsContext const&)>
22between(int minInclusive, int maxInclusive);
23
24MCAPI ::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
29MCAPI void configureBlockDrops(::BaseGameVersion const& baseGameVersion, ::Experiments const&);
30
31MCAPI ::std::function<int(::Block const&, ::Randomize&, ::ResourceDropsContext const&)> exactly(int value);
32
33MCAPI ::std::function<int(::Block const&, ::Randomize&, ::ResourceDropsContext const&)>
34limitCount(int max, ::std::function<int(::Block const&, ::Randomize&, ::ResourceDropsContext const&)> countProvider);
35
36MCAPI ::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
41MCAPI ::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
Definition BaseGameVersion.h:13
Definition Block.h:36
Definition Experiments.h:14
Definition Randomize.h:13
Definition ResourceDropsContext.h:5
Definition ResourceDrops.h:10