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
7class Block;
8class BlockState;
9class HashedString;
10class IRandom;
11struct ResourceDrops;
13// clang-format on
14
15namespace VanillaBlockDrops::Drop {
16// functions
17// NOLINTBEGIN
18MCAPI ::std::function<::ResourceDrops(::Block const&, ::IRandom&, ::ResourceDropsContext const&)>
19customWhenSilkTouchOrToolOtherwise(
20 ::HashedString const& toolItemId,
21 ::std::function<::ResourceDrops(::Block const&, ::IRandom&, ::ResourceDropsContext const&)> dropStrategy,
22 ::std::function<::ResourceDrops(::Block const&, ::IRandom&, ::ResourceDropsContext const&)> otherDropStrategy
23);
24
25MCAPI ::std::function<::ResourceDrops(::Block const&, ::IRandom&, ::ResourceDropsContext const&)>
26customWhenSilkTouchOtherwise(
27 ::std::function<::ResourceDrops(::Block const&, ::IRandom&, ::ResourceDropsContext const&)> dropStrategy,
28 ::std::function<::ResourceDrops(::Block const&, ::IRandom&, ::ResourceDropsContext const&)> otherDropStrategy
29);
30
31MCAPI ::std::function<::ResourceDrops(::Block const&, ::IRandom&, ::ResourceDropsContext const&)>
32customWhenToolOtherwise(
33 ::HashedString const& toolItemId,
34 ::std::function<::ResourceDrops(::Block const&, ::IRandom&, ::ResourceDropsContext const&)> dropStrategy,
35 ::std::function<::ResourceDrops(::Block const&, ::IRandom&, ::ResourceDropsContext const&)> otherDropStrategy
36);
37
38MCAPI ::std::function<::ResourceDrops(::Block const&, ::IRandom&, ::ResourceDropsContext const&)> item(
39 ::HashedString const& itemId,
40 ::std::function<int(::Block const&, ::IRandom&, ::ResourceDropsContext const&)> countProvider
41);
42
43MCAPI ::std::function<::ResourceDrops(::Block const&, ::IRandom&, ::ResourceDropsContext const&)>
44self(::std::function<int(::Block const&, ::IRandom&, ::ResourceDropsContext const&)> countProvider);
45
46MCAPI ::std::function<::ResourceDrops(::Block const&, ::IRandom&, ::ResourceDropsContext const&)> self(
47 ::std::vector<::BlockState const*> statesToKeep,
48 ::std::function<int(::Block const&, ::IRandom&, ::ResourceDropsContext const&)> countProvider
49);
50
51MCAPI ::std::function<::ResourceDrops(::Block const&, ::IRandom&, ::ResourceDropsContext const&)>
52selfWhenSilkTouch(::std::vector<::BlockState const*> statesToKeep);
53
54MCAPI ::std::function<::ResourceDrops(::Block const&, ::IRandom&, ::ResourceDropsContext const&)>
55selfWhenSilkTouchOrTool(::HashedString const& toolItemId, ::std::vector<::BlockState const*> statesToKeep);
56
57MCAPI ::std::function<::ResourceDrops(::Block const&, ::IRandom&, ::ResourceDropsContext const&)>
58selfWhenSilkTouchOrToolOtherwise(
59 ::HashedString const& toolItemId,
60 ::std::function<::ResourceDrops(::Block const&, ::IRandom&, ::ResourceDropsContext const&)> otherDropStrategy
61);
62
63MCAPI ::std::function<::ResourceDrops(::Block const&, ::IRandom&, ::ResourceDropsContext const&)>
64selfWhenSilkTouchOtherwise(
65 ::std::function<::ResourceDrops(::Block const&, ::IRandom&, ::ResourceDropsContext const&)> otherDropStrategy
66);
67// NOLINTEND
68
69} // namespace VanillaBlockDrops::Drop
Definition BlockState.h:14
Definition Block.h:69
Definition HashedString.h:5
Definition IRandom.h:10
Definition ResourceDropsContext.h:19
Definition ResourceDrops.h:10