LeviLamina
Loading...
Searching...
No Matches
ItemReplacementCommandUtil.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/shared_types/legacy/item/EquipmentSlot.h"
7
8// auto generated forward declare list
9// clang-format off
10class Actor;
11class ItemStack;
12namespace Util { struct ActorReplacementParams; }
13namespace Util { struct ContainerReplacementParams; }
14namespace Util { struct ReplacementResults; }
15// clang-format on
16
17namespace Util {
18
20public:
21 // static functions
22 // NOLINTBEGIN
23 MCAPI static void _replaceArmorSlots(
24 ::Util::ReplacementResults& replacementResults,
25 ::Actor& entity,
26 ::gsl::span<::ItemStack const> itemSpan,
27 ::SharedTypes::Legacy::EquipmentSlot slotType,
28 int count
29 );
30
31 MCAPI static bool _slotBoundsValid(
32 ::Util::ReplacementResults& replacementResults,
33 int slotId,
34 int sizeForSlotIdCheck,
35 ::std::optional<int> consecutiveSlotFillCount,
36 ::std::optional<int> sizeForCountCheck
37 );
38
39 MCAPI static ::Util::ReplacementResults replaceActorSlotsOrError(::Util::ActorReplacementParams& actorParams);
40
41 MCAPI static ::Util::ReplacementResults
42 replaceContainerSlotsOrError(::Util::ContainerReplacementParams& containerParams);
43 // NOLINTEND
44};
45
46} // namespace Util
Definition Actor.h:104
Definition ItemStack.h:25
Definition ItemReplacementCommandUtil.h:19
Definition ActorReplacementParams.h:10
Definition ContainerReplacementParams.h:10
Definition ReplacementResults.h:7