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