Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
HorseEquipContainerValidation.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/inventory/simulation/validation/ContainerValidationBase.h"
7
8// auto generated forward declare list
9// clang-format off
10class Container;
12class ItemDescriptor;
13class ItemStackBase;
14// clang-format on
15
16class HorseEquipContainerValidation : public ::ContainerValidationBase {
17public:
18 // member variables
19 // NOLINTBEGIN
20 ::ll::TypedStorage<8, 24, ::std::vector<::ItemDescriptor>> mArmorAllowedItems;
21 ::ll::TypedStorage<8, 24, ::std::vector<::ItemDescriptor>> mSaddleAllowedItems;
22 // NOLINTEND
23
24public:
25 // prevent constructor by default
26 HorseEquipContainerValidation();
27
28public:
29 // virtual functions
30 // NOLINTBEGIN
31 virtual int getAvailableSetCount(int slot, ::ItemStackBase const& item) const /*override*/;
32
33 virtual int getAllowedAddCount(::ContainerScreenContext const&, ::ItemStackBase const&) const /*override*/;
34
35 virtual bool isItemAllowedInSlot(
37 int const slot,
38 ::ItemStackBase const& item,
39 int const amount,
40 bool
41 ) const /*override*/;
42
43 virtual int getContainerSize(::ContainerScreenContext const& screenContext, ::Container const& container) const
44 /*override*/;
45 // NOLINTEND
46
47public:
48 // member functions
49 // NOLINTBEGIN
50 MCNAPI explicit HorseEquipContainerValidation(::ContainerScreenContext const& screenContext);
51 // NOLINTEND
52
53public:
54 // constructor thunks
55 // NOLINTBEGIN
56 MCNAPI void* $ctor(::ContainerScreenContext const& screenContext);
57 // NOLINTEND
58
59public:
60 // virtual function thunks
61 // NOLINTBEGIN
62 MCNAPI int $getAvailableSetCount(int slot, ::ItemStackBase const& item) const;
63
65
68 int const slot,
69 ::ItemStackBase const& item,
70 int const amount,
71 bool
72 ) const;
73
74 MCNAPI int $getContainerSize(::ContainerScreenContext const& screenContext, ::Container const& container) const;
75
76
77 // NOLINTEND
78
79public:
80 // vftables
81 // NOLINTBEGIN
82 MCNAPI static void** $vftable();
83 // NOLINTEND
84};
Definition ContainerScreenContext.h:16
Definition ContainerValidationBase.h:12
Definition Container.h:36
MCAPI int $getAvailableSetCount(int slot, ::ItemStackBase const &item) const
static MCAPI void ** $vftable()
MCAPI bool $isItemAllowedInSlot(::ContainerScreenContext const &, int const slot, ::ItemStackBase const &item, int const amount, bool) const
MCAPI void * $ctor(::ContainerScreenContext const &screenContext)
MCAPI int $getContainerSize(::ContainerScreenContext const &screenContext, ::Container const &container) const
MCAPI HorseEquipContainerValidation(::ContainerScreenContext const &screenContext)
MCAPI int $getAllowedAddCount(::ContainerScreenContext const &, ::ItemStackBase const &) const
Definition ItemDescriptor.h:24
Definition ItemStackBase.h:45