3#include "mc/_HeaderOutputPredefine.h"
15namespace VanillaBlockDrops::Drop {
18MCAPI ::std::function<::ResourceDrops(::Block
const&, ::Randomize&, ::ResourceDropsContext
const&)> customWhenSilkTouch(
19 ::std::function<::ResourceDrops(::Block
const&, ::Randomize&, ::ResourceDropsContext
const&)> dropStrategy
22MCAPI ::std::function<::ResourceDrops(::Block
const&, ::Randomize&, ::ResourceDropsContext
const&)>
23customWhenSilkTouchOrToolOtherwise(
24 ::HashedString
const& toolItemId,
25 ::std::function<::ResourceDrops(::Block
const&, ::Randomize&, ::ResourceDropsContext
const&)> dropStrategy,
26 ::std::function<::ResourceDrops(::Block
const&, ::Randomize&, ::ResourceDropsContext
const&)> otherDropStrategy
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
35MCAPI ::std::function<::ResourceDrops(::Block
const&, ::Randomize&, ::ResourceDropsContext
const&)> customWhenTool(
36 ::HashedString
const& toolItemId,
37 ::std::function<::ResourceDrops(::Block
const&, ::Randomize&, ::ResourceDropsContext
const&)> dropStrategy
40MCAPI ::std::function<::ResourceDrops(::Block
const&, ::Randomize&, ::ResourceDropsContext
const&)>
41customWhenToolOtherwise(
42 ::HashedString
const& toolItemId,
43 ::std::function<::ResourceDrops(::Block
const&, ::Randomize&, ::ResourceDropsContext
const&)> dropStrategy,
44 ::std::function<::ResourceDrops(::Block
const&, ::Randomize&, ::ResourceDropsContext
const&)> otherDropStrategy
47MCAPI ::std::function<::ResourceDrops(::Block
const&, ::Randomize&, ::ResourceDropsContext
const&)> item(
48 ::HashedString
const& itemId,
49 ::std::function<
int(::Block
const&, ::Randomize&, ::ResourceDropsContext
const&)> countProvider
52MCAPI ::std::function<::ResourceDrops(::Block
const&, ::Randomize&, ::ResourceDropsContext
const&)>
53self(::std::function<
int(::Block
const&, ::Randomize&, ::ResourceDropsContext
const&)> countProvider);
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
60MCAPI ::std::function<::ResourceDrops(::Block
const&, ::Randomize&, ::ResourceDropsContext
const&)>
61selfWhenSilkTouch(::std::vector<::BlockState const*> statesToKeep);
63MCAPI ::std::function<::ResourceDrops(::Block
const&, ::Randomize&, ::ResourceDropsContext
const&)>
64selfWhenSilkTouchOrTool(::HashedString
const& toolItemId, ::std::vector<::BlockState const*> statesToKeep);
66MCAPI ::std::function<::ResourceDrops(::Block
const&, ::Randomize&, ::ResourceDropsContext
const&)>
67selfWhenSilkTouchOrToolOtherwise(
68 ::HashedString
const& toolItemId,
69 ::std::function<::ResourceDrops(::Block
const&, ::Randomize&, ::ResourceDropsContext
const&)> otherDropStrategy
72MCAPI ::std::function<::ResourceDrops(::Block
const&, ::Randomize&, ::ResourceDropsContext
const&)>
73selfWhenSilkTouchOtherwise(
74 ::std::function<::ResourceDrops(::Block
const&, ::Randomize&, ::ResourceDropsContext
const&)> otherDropStrategy
Definition BlockState.h:13
Definition HashedString.h:5
Definition Randomize.h:13
Definition ResourceDropsContext.h:17
Definition ResourceDrops.h:10