LeviLamina
Loading...
Searching...
No Matches
Registration.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::Registration {
16// functions
17// NOLINTBEGIN
18MCNAPI void
19add(::HashedString const& blockId,
20 ::std::function<::ResourceDrops(::Block const&, ::Randomize&, ::ResourceDropsContext const&)> dropStrategy);
21
22MCNAPI void dropExperience(::HashedString const& blockId);
23
24MCNAPI void dropNothing(::HashedString const& blockId);
25
26MCNAPI void dropOther(
27 ::HashedString const& blockId,
28 ::HashedString const& itemId,
29 ::std::function<int(::Block const&, ::Randomize&, ::ResourceDropsContext const&)> countProvider
30);
31
32MCNAPI void dropOtherNoExplosionDecay(
33 ::HashedString const& blockId,
34 ::HashedString const& itemId,
35 ::std::function<int(::Block const&, ::Randomize&, ::ResourceDropsContext const&)> countProvider
36);
37
38MCNAPI void dropOtherWhenSilkTouch(::HashedString const& blockId, ::HashedString const& itemId);
39
40MCNAPI void dropSelf(
41 ::HashedString const& blockId,
42 ::std::function<int(::Block const&, ::Randomize&, ::ResourceDropsContext const&)> countProvider
43);
44
45MCNAPI void dropSelfNoExplosionDecay(
46 ::HashedString const& blockId,
47 ::std::function<int(::Block const&, ::Randomize&, ::ResourceDropsContext const&)> countProvider
48);
49
50MCNAPI void dropWhenSilkTouch(::HashedString const& blockId, ::std::vector<::BlockState const*> statesToKeep);
51// NOLINTEND
52
53} // namespace VanillaBlockDrops::Registration
Definition BlockState.h:13
Definition Block.h:38
Definition HashedString.h:5
Definition Randomize.h:13
Definition ResourceDropsContext.h:12
Definition ResourceDrops.h:10