LeviLamina
Loading...
Searching...
No Matches
FurnaceContainerManagerModel.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/string/HashedString.h"
7#include "mc/deps/shared_types/legacy/ContainerType.h"
8#include "mc/world/ContainerID.h"
9#include "mc/world/containers/ContainerEnumName.h"
10#include "mc/world/containers/managers/models/ContainerManagerModel.h"
11#include "mc/world/level/BlockPos.h"
12#include "mc/world/level/block/actor/BlockActorType.h"
13
14// auto generated forward declare list
15// clang-format off
18class ItemInstance;
19class ItemStack;
20class Player;
21// clang-format on
22
23class FurnaceContainerManagerModel : public ::ContainerManagerModel {
24public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<4, 12, ::BlockPos> mBlockPos;
28 ::ll::TypedStorage<4, 4, int> mLastTickCount;
29 ::ll::TypedStorage<4, 4, int> mLastLitTime;
30 ::ll::TypedStorage<4, 4, int> mLastLitDuration;
31 ::ll::TypedStorage<4, 4, int> mLastStoredXP;
32 ::ll::TypedStorage<4, 4, int> mLastInputId;
33 ::ll::TypedStorage<4, 4, int> mLastInputAux;
34 ::ll::TypedStorage<8, 32, ::std::string> mLastOutputName;
35 ::ll::TypedStorage<4, 4, int> mLastResultDisplayId;
36 ::ll::TypedStorage<1, 1, ::BlockActorType const> mBlockActorType;
37 ::ll::TypedStorage<1, 1, ::ContainerEnumName const> mIngredientContainerName;
38 ::ll::TypedStorage<8, 48, ::HashedString const> mRecipeTag;
39 // NOLINTEND
40
41public:
42 // prevent constructor by default
43 FurnaceContainerManagerModel();
44
45public:
46 // virtual functions
47 // NOLINTBEGIN
48 virtual ~FurnaceContainerManagerModel() /*override*/;
49
50 virtual ::std::vector<::ItemStack> getItemCopies() const /*override*/;
51
52 virtual void setSlot(int slot, ::ItemStack const& item, bool fromNetwork) /*override*/;
53
54 virtual ::ItemStack const& getSlot(int slot) const /*override*/;
55
56 virtual void setData(int id, int value) /*override*/;
57
58 virtual bool isValid(float pickRange) /*override*/;
59
60 virtual void broadcastChanges() /*override*/;
61
62 virtual ::ContainerScreenContext _postInit() /*override*/;
63 // NOLINTEND
64
65public:
66 // member functions
67 // NOLINTBEGIN
68 MCAPI FurnaceContainerManagerModel(
69 ::HashedString const& recipeTag,
70 ::SharedTypes::Legacy::ContainerType containerType,
71 ::BlockActorType blockActorType,
72 ::ContainerID containerId,
73 ::Player& player,
74 ::BlockPos const& blockPos
75 );
76
77 MCAPI ::FurnaceBlockActor* _getFurnaceEntity();
78
79 MCAPI void _updateResultSlotInfo();
80
81 MCAPI_C void fireItemAcquiredEvent(::ItemInstance const& itemInstance, int count);
82
83 MCAPI_C bool isFinished(::std::string& outputName, int& outputId, int& outputAuxValue);
84 // NOLINTEND
85
86public:
87 // constructor thunks
88 // NOLINTBEGIN
89 MCAPI void* $ctor(
90 ::HashedString const& recipeTag,
91 ::SharedTypes::Legacy::ContainerType containerType,
92 ::BlockActorType blockActorType,
93 ::ContainerID containerId,
94 ::Player& player,
95 ::BlockPos const& blockPos
96 );
97 // NOLINTEND
98
99public:
100 // destructor thunk
101 // NOLINTBEGIN
102 MCAPI void $dtor();
103 // NOLINTEND
104
105public:
106 // virtual function thunks
107 // NOLINTBEGIN
108 MCAPI ::std::vector<::ItemStack> $getItemCopies() const;
109
110 MCAPI void $setSlot(int slot, ::ItemStack const& item, bool fromNetwork);
111
112 MCAPI ::ItemStack const& $getSlot(int slot) const;
113
114 MCAPI void $setData(int id, int value);
115
116 MCAPI bool $isValid(float pickRange);
117
118 MCAPI void $broadcastChanges();
119
120 MCAPI ::ContainerScreenContext $_postInit();
121
122
123 // NOLINTEND
124
125public:
126 // vftables
127 // NOLINTBEGIN
128 MCAPI static void** $vftable();
129 // NOLINTEND
130};
Definition BlockPos.h:19
Definition ContainerScreenContext.h:17
Definition FurnaceBlockActor.h:33
Definition HashedString.h:5
static MCAPI void ** $vftable()
MCAPI void $dtor()
Definition ItemInstance.h:15
Definition ItemStack.h:26
Definition Player.h:125