LeviLamina
Loading...
Searching...
No Matches
CrafterBlockActor.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/block/actor/DispenserBlockActor.h"
7
8// auto generated forward declare list
9// clang-format off
11class BlockPos;
12class BlockSource;
13class CompoundTag;
15class DataLoadHelper;
16class ILevel;
17class ItemInstance;
18class ItemStack;
19class Level;
20class Recipe;
21class SaveContext;
22// clang-format on
23
25public:
26 // CrafterBlockActor inner types declare
27 // clang-format off
28 class LruCache;
29 // clang-format on
30
31 // CrafterBlockActor inner types define
32 class LruCache {
33 public:
34 // member variables
35 // NOLINTBEGIN
38 // NOLINTEND
39
40 public:
41 // prevent constructor by default
42 LruCache& operator=(LruCache const&);
43 LruCache(LruCache const&);
44 LruCache();
45
46 public:
47 // member functions
48 // NOLINTBEGIN
49 MCAPI ~LruCache();
50 // NOLINTEND
51
52 public:
53 // destructor thunk
54 // NOLINTBEGIN
55 MCAPI void $dtor();
56 // NOLINTEND
57 };
58
59public:
60 // member variables
61 // NOLINTBEGIN
62 ::ll::TypedStorage<4, 4, ::std::bitset<9>> mDisabledSlots;
63 ::ll::TypedStorage<8, 48, ::CrafterBlockActor::LruCache> mCraftedRecipesCache;
64 ::ll::TypedStorage<4, 4, int> mTicksLeftInCraftingState;
65 // NOLINTEND
66
67public:
68 // virtual functions
69 // NOLINTBEGIN
70 // vIndex: 26
71 virtual ::std::string getName() const /*override*/;
72
73 // vIndex: 29
74 virtual bool canPushInItem(int slot, int, ::ItemStack const& item) const /*override*/;
75
76 // vIndex: 40
77 virtual bool isSlotDisabled(int slot) const /*override*/;
78
79 // vIndex: 1
80 virtual void load(::ILevel& level, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper) /*override*/;
81
82 // vIndex: 2
83 virtual bool save(::CompoundTag& tag, ::SaveContext const& saveContext) const /*override*/;
84
85 // vIndex: 7
86 virtual void tick(::BlockSource& region) /*override*/;
87
88 // vIndex: 43
89 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(::BlockSource&) /*override*/;
90
91 // vIndex: 44
92 virtual void _onUpdatePacket(::CompoundTag const& data, ::BlockSource&) /*override*/;
93
94 // vIndex: 0
95 virtual ~CrafterBlockActor() /*override*/ = default;
96 // NOLINTEND
97
98public:
99 // member functions
100 // NOLINTBEGIN
101 MCAPI explicit CrafterBlockActor(::BlockPos pos);
102
103 MCAPI bool tryMoveItemsIntoContainer(::BlockSource& region, ::std::vector<::ItemInstance>& items);
104 // NOLINTEND
105
106public:
107 // static functions
108 // NOLINTBEGIN
109 MCAPI static ::std::vector<::Recipe const*>
110 _getRecipesForCraftingGrid(::Level& level, ::CraftingContainer& craftingContainer);
111
112 MCAPI static ::std::vector<::ItemInstance> getCraftableItem(::CraftingContainer& craftingGrid, ::Level& level);
113 // NOLINTEND
114
115public:
116 // constructor thunks
117 // NOLINTBEGIN
118 MCAPI void* $ctor(::BlockPos pos);
119 // NOLINTEND
120
121public:
122 // destructor thunk
123 // NOLINTBEGIN
124
125 // NOLINTEND
126
127public:
128 // virtual function thunks
129 // NOLINTBEGIN
130 MCAPI ::std::string $getName() const;
131
132 MCAPI bool $canPushInItem(int slot, int, ::ItemStack const& item) const;
133
134 MCAPI bool $isSlotDisabled(int slot) const;
135
136 MCAPI void $load(::ILevel& level, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
137
138 MCAPI bool $save(::CompoundTag& tag, ::SaveContext const& saveContext) const;
139
140 MCAPI void $tick(::BlockSource& region);
141
142 MCAPI ::std::unique_ptr<::BlockActorDataPacket> $_getUpdatePacket(::BlockSource&);
143
144 MCAPI void $_onUpdatePacket(::CompoundTag const& data, ::BlockSource&);
145 // NOLINTEND
146
147public:
148 // vftables
149 // NOLINTBEGIN
150 MCAPI static void** $vftableForRandomizableBlockActorContainerBase();
151
152 MCAPI static void** $vftableForContainer();
153 // NOLINTEND
154};
Definition BlockActorDataPacket.h:19
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition CompoundTag.h:13
Definition CrafterBlockActor.h:32
Definition CrafterBlockActor.h:24
Definition CraftingContainer.h:14
Definition DataLoadHelper.h:20
Definition DispenserBlockActor.h:24
Definition ILevel.h:203
Definition ItemInstance.h:16
Definition ItemStack.h:25
Definition Level.h:234
Definition Recipe.h:29
Definition SaveContext.h:5
STL namespace.
Definition Alias.h:14