Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
VanillaBlockDrops.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/platform/brstd/move_only_function.h"
7
8// auto generated forward declare list
9// clang-format off
10class BaseGameVersion;
11class Block;
12class Experiments;
13class IRandom;
14struct ResourceDrops;
16// clang-format on
17
18namespace VanillaBlockDrops {
19// functions
20// NOLINTBEGIN
21MCNAPI ::brstd::move_only_function<::ResourceDrops(::Block const&, ::IRandom&, ::ResourceDropsContext const&) const>
22combine(
23 ::brstd::move_only_function<::ResourceDrops(::Block const&, ::IRandom&, ::ResourceDropsContext const&) const>
24 dropStrategyA,
25 ::brstd::move_only_function<::ResourceDrops(::Block const&, ::IRandom&, ::ResourceDropsContext const&) const>
26 dropStrategyB
27);
28
29MCNAPI void configureBlockDrops(::BaseGameVersion const& baseGameVersion, ::Experiments const& experiments);
30
31MCNAPI ::brstd::move_only_function<int(::Block const&, ::IRandom&, ::ResourceDropsContext const&) const> limitCount(
32 int max,
33 ::brstd::move_only_function<int(::Block const&, ::IRandom&, ::ResourceDropsContext const&) const> countProvider
34);
35
36MCNAPI ::brstd::move_only_function<::ResourceDrops(::Block const&, ::IRandom&, ::ResourceDropsContext const&) const>
37when(
38 ::brstd::move_only_function<bool(::Block const&, ::IRandom&, ::ResourceDropsContext const&) const> condition,
39 ::brstd::move_only_function<::ResourceDrops(::Block const&, ::IRandom&, ::ResourceDropsContext const&) const>
40 trueStrategy
41);
42
43MCNAPI ::brstd::move_only_function<::ResourceDrops(::Block const&, ::IRandom&, ::ResourceDropsContext const&) const>
44when(
45 ::brstd::move_only_function<bool(::Block const&, ::IRandom&, ::ResourceDropsContext const&) const> condition,
46 ::brstd::move_only_function<::ResourceDrops(::Block const&, ::IRandom&, ::ResourceDropsContext const&) const>
47 trueStrategy,
48 ::brstd::move_only_function<::ResourceDrops(::Block const&, ::IRandom&, ::ResourceDropsContext const&) const>
49 falseStrategy
50);
51// NOLINTEND
52
53} // namespace VanillaBlockDrops
Definition BaseGameVersion.h:8
Definition Block.h:42
Definition Experiments.h:14
Definition IRandom.h:10
Definition ResourceDropsContext.h:16
Definition ResourceDrops.h:10