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