LeviLamina
Loading...
Searching...
No Matches
BrewingStandContainerManagerModel.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/ContainerID.h"
7#include "mc/world/containers/managers/models/ContainerManagerModel.h"
8#include "mc/world/level/BlockPos.h"
9
10// auto generated forward declare list
11// clang-format off
13class ItemDescriptor;
14class ItemInstance;
15class ItemStack;
16class Player;
17// clang-format on
18
19class BrewingStandContainerManagerModel : public ::ContainerManagerModel {
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<4, 12, ::BlockPos> mBlockPos;
24 ::ll::TypedStorage<4, 4, int> mLastTickCount;
25 ::ll::TypedStorage<4, 4, int> mLastFuelAmount;
26 ::ll::TypedStorage<4, 4, int> mLastFuelTotal;
27 // NOLINTEND
28
29public:
30 // prevent constructor by default
31 BrewingStandContainerManagerModel();
32
33public:
34 // virtual functions
35 // NOLINTBEGIN
36 virtual ~BrewingStandContainerManagerModel() /*override*/ = default;
37
38 virtual ::std::vector<::ItemStack> getItemCopies() const /*override*/;
39
40 virtual void setSlot(int slot, ::ItemStack const& item, bool) /*override*/;
41
42 virtual ::ItemStack const& getSlot(int slot) const /*override*/;
43
44 virtual void setData(int id, int value) /*override*/;
45
46 virtual bool isValid(float pickRange) /*override*/;
47
48 virtual void broadcastChanges() /*override*/;
49
50 virtual ::ContainerScreenContext _postInit() /*override*/;
51 // NOLINTEND
52
53public:
54 // member functions
55 // NOLINTBEGIN
56 MCAPI BrewingStandContainerManagerModel(::ContainerID containerId, ::Player& player, ::BlockPos const& blockPos);
57
58#ifdef LL_PLAT_C
59 MCAPI void fireItemAcquiredEvent(::ItemInstance const& item, int count);
60
61 MCAPI void firePotionBrewedEvent(::ItemDescriptor const& item, int count);
62
63 MCAPI int getBrewProgress(int max);
64
65 MCAPI int getBubbleProgress(int);
66
67 MCAPI int getFuelProgress(int max);
68
69 MCAPI bool isFinished(int& outputId, int& outputAuxValue, int outputSlot);
70#endif
71 // NOLINTEND
72
73public:
74 // constructor thunks
75 // NOLINTBEGIN
76 MCAPI void* $ctor(::ContainerID containerId, ::Player& player, ::BlockPos const& blockPos);
77 // NOLINTEND
78
79public:
80 // virtual function thunks
81 // NOLINTBEGIN
82 MCAPI ::std::vector<::ItemStack> $getItemCopies() const;
83
84 MCAPI void $setSlot(int slot, ::ItemStack const& item, bool);
85
86 MCAPI ::ItemStack const& $getSlot(int slot) const;
87
88 MCAPI void $setData(int id, int value);
89
90 MCAPI bool $isValid(float pickRange);
91
92 MCAPI void $broadcastChanges();
93
94 MCAPI ::ContainerScreenContext $_postInit();
95
96
97 // NOLINTEND
98
99public:
100 // vftables
101 // NOLINTBEGIN
102 MCAPI static void** $vftable();
103 // NOLINTEND
104};
Definition BlockPos.h:21
Definition ContainerScreenContext.h:19
Definition ItemDescriptor.h:25
Definition ItemInstance.h:15
Definition ItemStack.h:35
Definition Player.h:137