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