26class FurnaceContainerManagerModel :
public ::ContainerManagerModel {
29 using FilterFunction = ::std::function<::FilterResult(
::ItemInstance const&,
bool)>;
34 ::ll::TypedStorage<4, 12, ::BlockPos> mBlockPos;
35 ::ll::TypedStorage<4, 4, int> mLastTickCount;
36 ::ll::TypedStorage<4, 4, int> mLastLitTime;
37 ::ll::TypedStorage<4, 4, int> mLastLitDuration;
38 ::ll::TypedStorage<4, 4, int> mLastStoredXP;
39 ::ll::TypedStorage<4, 4, int> mLastInputId;
40 ::ll::TypedStorage<4, 4, int> mLastInputAux;
41 ::ll::TypedStorage<1, 1, ::BlockActorType const> mBlockActorType;
42 ::ll::TypedStorage<1, 1, ::ContainerEnumName const> mIngredientContainerName;
43 ::ll::TypedStorage<8, 48, ::HashedString const> mRecipeTag;
44 ::ll::TypedStorage<8, 24, ::std::vector<::std::shared_ptr<::Recipe>>> mRecipeBook;
45 ::ll::TypedStorage<1, 1, bool> mSmeltableFilterOn;
46 ::ll::TypedStorage<8, 32, ::std::string> mSearchString;
47 ::ll::TypedStorage<8, 32, ::std::string> mCaseFoldedSearchString;
48 ::ll::TypedStorage<4, 4, int> mNumFoodRecipes;
49 ::ll::TypedStorage<4, 4, int> mNumBlocksRecipes;
50 ::ll::TypedStorage<4, 4, int> mNumItemsRecipes;
55 FurnaceContainerManagerModel();
60 virtual ~FurnaceContainerManagerModel() ;
62 virtual ::std::vector<::ItemStack> getItemCopies()
const ;
64 virtual void setSlot(
int slot,
::ItemStack const& item,
bool fromNetwork) ;
66 virtual ::ItemStack
const& getSlot(
int slot)
const ;
68 virtual void setData(
int id,
int value) ;
70 virtual bool isValid(
float pickRange) ;
72 virtual void broadcastChanges() ;
74 virtual ::ContainerScreenContext _postInit() ;
76 virtual void _onDynamicContainerContentsChanged() ;
82 MCAPI FurnaceContainerManagerModel(
84 ::SharedTypes::Legacy::ContainerType containerType,
85 ::BlockActorType blockActorType,
86 ::ContainerID containerId,
98 MCNAPI
int getBurnProgress(
int max);
100 MCNAPI
int getLitProgress(
int max);
102 MCNAPI ::std::vector<::ItemInstance> getUnlockedRecipeIngredientsForResult(
::ItemInstance const& item)
const;
104 MCNAPI
bool isFinished(::std::string& outputName,
int& outputId,
int& outputAuxValue);
106 MCNAPI ::IngredientSearchInfo searchIngredientInContainers(
108 ::std::vector<::ContainerModel*>
const& containers
111 MCNAPI
void setIsFiltering(
bool smeltableFilterOn);
113 MCNAPI
void setSearchString(::std::string
const& searchString);
122 ::SharedTypes::Legacy::ContainerType containerType,
123 ::BlockActorType blockActorType,
124 ::ContainerID containerId,
143 MCNAPI ::ItemStack
const&
$getSlot(
int slot)
const;
Definition ContainerScreenContext.h:16