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 MCNAPI ~LruCache();
50 // NOLINTEND
51
52 public:
53 // destructor thunk
54 // NOLINTBEGIN
55 MCNAPI 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 // prevent constructor by default
70
71public:
72 // virtual functions
73 // NOLINTBEGIN
74 // vIndex: 27
75 virtual ::std::string getName() const /*override*/;
76
77 // vIndex: 32
78 virtual bool canPushInItem(int slot, int, ::ItemStack const& item) const /*override*/;
79
80 // vIndex: 43
81 virtual bool isSlotDisabled(int slot) const /*override*/;
82
83 // vIndex: 1
84 virtual void load(::ILevel& level, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper) /*override*/;
85
86 // vIndex: 2
87 virtual bool save(::CompoundTag& tag, ::SaveContext const& saveContext) const /*override*/;
88
89 // vIndex: 8
90 virtual void tick(::BlockSource& region) /*override*/;
91
92 // vIndex: 44
93 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(::BlockSource&) /*override*/;
94
95 // vIndex: 45
96 virtual void _onUpdatePacket(::CompoundTag const& data, ::BlockSource&) /*override*/;
97
98 // vIndex: 0
99 virtual ~CrafterBlockActor() /*override*/ = default;
100 // NOLINTEND
101
102public:
103 // member functions
104 // NOLINTBEGIN
105 MCNAPI explicit CrafterBlockActor(::BlockPos pos);
106
107 MCNAPI bool tryMoveItemsIntoContainer(::BlockSource& region, ::std::vector<::ItemInstance>& items);
108 // NOLINTEND
109
110public:
111 // static functions
112 // NOLINTBEGIN
113 MCNAPI static ::std::vector<::Recipe const*>
114 _getRecipesForCraftingGrid(::Level& level, ::CraftingContainer& craftingContainer);
115
116 MCNAPI static ::std::vector<::ItemInstance> getCraftableItem(::CraftingContainer& craftingGrid, ::Level& level);
117 // NOLINTEND
118
119public:
120 // constructor thunks
121 // NOLINTBEGIN
122 MCNAPI void* $ctor(::BlockPos pos);
123 // NOLINTEND
124
125public:
126 // virtual function thunks
127 // NOLINTBEGIN
128 MCNAPI ::std::string $getName() const;
129
130 MCNAPI bool $canPushInItem(int slot, int, ::ItemStack const& item) const;
131
132 MCNAPI bool $isSlotDisabled(int slot) const;
133
134 MCNAPI void $load(::ILevel& level, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
135
136 MCNAPI bool $save(::CompoundTag& tag, ::SaveContext const& saveContext) const;
137
138 MCNAPI void $tick(::BlockSource& region);
139
141
142 MCNAPI void $_onUpdatePacket(::CompoundTag const& data, ::BlockSource&);
143 // NOLINTEND
144
145public:
146 // vftables
147 // NOLINTBEGIN
149
150 MCNAPI static void** $vftableForContainer();
151 // NOLINTEND
152};
Definition BlockActorDataPacket.h:19
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition CompoundTag.h:13
Definition CrafterBlockActor.h:32
Definition CrafterBlockActor.h:24
MCAPI void $_onUpdatePacket(::CompoundTag const &data, ::BlockSource &)
MCAPI void * $ctor(::BlockPos pos)
MCAPI ::std::unique_ptr<::BlockActorDataPacket > $_getUpdatePacket(::BlockSource &)
static MCAPI ::std::vector<::ItemInstance > getCraftableItem(::CraftingContainer &craftingGrid, ::Level &level)
MCAPI bool $canPushInItem(int slot, int, ::ItemStack const &item) const
static MCAPI ::std::vector<::Recipe const * > _getRecipesForCraftingGrid(::Level &level, ::CraftingContainer &craftingContainer)
MCAPI void $tick(::BlockSource &region)
MCAPI bool $isSlotDisabled(int slot) const
MCAPI void $load(::ILevel &level, ::CompoundTag const &tag, ::DataLoadHelper &dataLoadHelper)
MCAPI bool $save(::CompoundTag &tag, ::SaveContext const &saveContext) const
MCAPI bool tryMoveItemsIntoContainer(::BlockSource &region, ::std::vector<::ItemInstance > &items)
MCAPI::std::string $getName() const
static MCAPI void ** $vftableForRandomizableBlockActorContainerBase()
static MCAPI void ** $vftableForContainer()
Definition CraftingContainer.h:14
Definition DataLoadHelper.h:20
Definition DispenserBlockActor.h:24
Definition ILevel.h:205
Definition ItemInstance.h:16
Definition ItemStack.h:25
Definition Level.h:238
Definition Recipe.h:29
Definition SaveContext.h:5
STL namespace.
Definition Alias.h:14