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 IRandom;
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&, ::IRandom&, ::ResourceDropsContext const&)> dropStrategy);
21
22MCAPI void dropOther(
23 ::HashedString const& blockId,
24 ::HashedString const& itemId,
25 ::std::function<int(::Block const&, ::IRandom&, ::ResourceDropsContext const&)> countProvider
26);
27
28MCAPI void dropSelf(
29 ::HashedString const& blockId,
30 ::std::function<int(::Block const&, ::IRandom&, ::ResourceDropsContext const&)> countProvider
31);
32
33MCAPI void dropWhenSilkTouch(::HashedString const& blockId, ::std::vector<::BlockState const*> statesToKeep);
34// NOLINTEND
35
36} // namespace VanillaBlockDrops::Registration
Definition BlockState.h:14
Definition Block.h:69
Definition HashedString.h:5
Definition IRandom.h:10
Definition ResourceDropsContext.h:19
Definition ResourceDrops.h:10