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