LeviLamina
Loading...
Searching...
No Matches
ContainerValidationBase.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class Container;
9class ItemStackBase;
10// clang-format on
11
13public:
14 // virtual functions
15 // NOLINTBEGIN
16 // vIndex: 0
17 virtual ~ContainerValidationBase() = default;
18
19 // vIndex: 1
20 virtual bool
21 isValidSlotForContainer(::ContainerScreenContext const& screenContext, ::Container const& container, int const slot)
22 const;
23
24 // vIndex: 2
25 virtual bool isItemAllowedInSlot(
26 ::ContainerScreenContext const& screenContext,
27 int const slot,
28 ::ItemStackBase const& item,
29 int const amount,
30 bool
31 ) const;
32
33 // vIndex: 3
34 virtual int getAvailableSetCount(int const slot, ::ItemStackBase const& item) const;
35
36 // vIndex: 4
37 virtual int getAllowedAddCount(::ContainerScreenContext const&, ::ItemStackBase const& item) const;
38
39 // vIndex: 5
40 virtual bool
41 isItemAllowedToRemove(::ContainerScreenContext const& screenContext, ::ItemStackBase const& item) const;
42
43 // vIndex: 6
44 virtual bool canItemMoveToContainer(::ItemStackBase const& item) const;
45
46 // vIndex: 7
47 virtual bool canDestroy(::ContainerScreenContext const& screenContext) const;
48
49 // vIndex: 8
50 virtual int getContainerOffset(::ContainerScreenContext const& screenContext) const;
51
52 // vIndex: 9
53 virtual int getContainerSize(::ContainerScreenContext const& screenContext, ::Container const& container) const;
54 // NOLINTEND
55
56public:
57 // destructor thunk
58 // NOLINTBEGIN
59
60 // NOLINTEND
61
62public:
63 // virtual function thunks
64 // NOLINTBEGIN
65 MCAPI bool $isValidSlotForContainer(
66 ::ContainerScreenContext const& screenContext,
67 ::Container const& container,
68 int const slot
69 ) const;
70
71 MCFOLD bool $isItemAllowedInSlot(
72 ::ContainerScreenContext const& screenContext,
73 int const slot,
74 ::ItemStackBase const& item,
75 int const amount,
76 bool
77 ) const;
78
79 MCAPI int $getAvailableSetCount(int const slot, ::ItemStackBase const& item) const;
80
81 MCAPI int $getAllowedAddCount(::ContainerScreenContext const&, ::ItemStackBase const& item) const;
82
83 MCFOLD bool
84 $isItemAllowedToRemove(::ContainerScreenContext const& screenContext, ::ItemStackBase const& item) const;
85
86 MCAPI bool $canItemMoveToContainer(::ItemStackBase const& item) const;
87
88 MCAPI bool $canDestroy(::ContainerScreenContext const& screenContext) const;
89
90 MCFOLD int $getContainerOffset(::ContainerScreenContext const& screenContext) const;
91
92 MCFOLD int $getContainerSize(::ContainerScreenContext const& screenContext, ::Container const& container) const;
93 // NOLINTEND
94};
Definition ContainerScreenContext.h:11
Definition ContainerValidationBase.h:12
Definition Container.h:30
Definition ItemStackBase.h:35