Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
Recipes Class Reference

Classes

struct  NormalizedRectangularRecipeResults
class  Type
struct  Buffers

Public Types

using TypeList = ::std::vector<::Recipes::Type>

Public Member Functions

MCAPI Recipes (::ILevel *level)
MCAPI void _loadHardcodedRecipes (::BaseGameVersion const &baseGameVersion, ::Experiments const &experiments)
MCAPI::RecipeIngredient const _loadIngredientFromJson (::Json::Value const &obj, ::MolangVersion molangVersion, bool allowItemCount, bool allowItemGroup) const
MCAPI::RecipeIngredient const _loadInputIngredientFromJson (::Json::Value const &obj, ::MinEngineVersion const &minEngineVersion) const
MCAPI bool _loadRecipe (::std::string const &recipeId, ::RecipeType type, ::Json::Value const &objData, ::MinEngineVersion const &minEngineVersion, ::SemVersion const &formatVersion, bool isBaseGamePack, ::Recipes::Buffers &buffers)
MCAPI ::std::optional<::RecipeUnlockingRequirement > _loadUnlockingRequirementFromJson (::Json::Value const &obj, ::MolangVersion molangVersion, ::std::string const &recipeId) const
MCAPI void addDyedItemRecipe (::std::string recipeId, ::ItemInstance const &result, ::RecipeIngredient const itemToDye, ::RecipeIngredient const dye, ::RecipeUnlockingRequirement const unlockingReq, int const priority, ::SemVersion const &formatVersion)
MCAPI void addShapedRecipe (::std::string recipeId, ::ItemInstance const &result, ::std::string const &r0, ::std::vector<::Recipes::Type > const &types, ::std::vector<::HashedString > const &tags, int const priority, ::std::function<::std::unique_ptr<::ShapedRecipe >(::std::string, int, int, ::std::vector<::RecipeIngredient > const &, ::std::vector<::ItemInstance > const &, ::HashedString, bool, int, ::mce::UUID const *, ::RecipeUnlockingRequirement const &, ::SemVersion const &)> constructor, ::RecipeUnlockingRequirement const &unlockingReq, ::SemVersion const &formatVersion, bool const assumeSymmetry)
MCAPI void addShapedRecipe (::std::string recipeId, ::std::vector<::ItemInstance > const &result, ::std::vector<::std::string > const &rows, ::std::vector<::Recipes::Type > const &types, ::std::vector<::HashedString > const &tags, int const priority, ::std::function<::std::unique_ptr<::ShapedRecipe >(::std::string, int, int, ::std::vector<::RecipeIngredient > const &, ::std::vector<::ItemInstance > const &, ::HashedString, bool, int, ::mce::UUID const *, ::RecipeUnlockingRequirement const &, ::SemVersion const &)> constructor, ::RecipeUnlockingRequirement const &unlockingReq, ::SemVersion const &formatVersion, bool const assumeSymmetry)
MCAPI void addShapedRecipe (::std::string recipeId, ::ItemInstance const &result, ::std::vector<::std::string > const &rows, ::std::vector<::Recipes::Type > const &types, ::std::vector<::HashedString > const &tags, int const priority, ::std::function<::std::unique_ptr<::ShapedRecipe >(::std::string, int, int, ::std::vector<::RecipeIngredient > const &, ::std::vector<::ItemInstance > const &, ::HashedString, bool, int, ::mce::UUID const *, ::RecipeUnlockingRequirement const &, ::SemVersion const &)> constructor, ::RecipeUnlockingRequirement const &unlockingReq, ::SemVersion const &formatVersion, bool const assumeSymmetry)
MCAPI void addShapedRecipe (::std::string recipeId, ::ItemInstance const &result, ::std::string const &r0, ::std::string const &r1, ::std::vector<::Recipes::Type > const &types, ::std::vector<::HashedString > const &tags, int priority, ::std::function<::std::unique_ptr<::ShapedRecipe >(::std::string, int, int, ::std::vector<::RecipeIngredient > const &, ::std::vector<::ItemInstance > const &, ::HashedString, bool, int, ::mce::UUID const *, ::RecipeUnlockingRequirement const &, ::SemVersion const &)> constructor, ::RecipeUnlockingRequirement const &unlockingReq, ::SemVersion const &formatVersion, bool assumeSymmetry)
MCAPI void addShapedRecipe (::std::string recipeId, ::ItemInstance const &result, ::std::string const &r0, ::std::string const &r1, ::std::string const &r2, ::std::vector<::Recipes::Type > const &types, ::std::vector<::HashedString > const &tags, int priority, ::std::function<::std::unique_ptr<::ShapedRecipe >(::std::string, int, int, ::std::vector<::RecipeIngredient > const &, ::std::vector<::ItemInstance > const &, ::HashedString, bool, int, ::mce::UUID const *, ::RecipeUnlockingRequirement const &, ::SemVersion const &)> constructor, ::RecipeUnlockingRequirement const &unlockingReq, ::SemVersion const &formatVersion, bool assumeSymmetry)
MCAPI void addShapelessRecipe (::std::string recipeId, ::ItemInstance const &result, ::std::vector<::Recipes::Type > const &types, ::std::vector<::HashedString > const &tags, int priority, ::std::function<::std::unique_ptr<::ShapelessRecipe >(::std::string, ::std::vector<::RecipeIngredient > const &, ::std::vector<::ItemInstance > const &, ::HashedString, int, ::mce::UUID const *, ::RecipeUnlockingRequirement const &, ::SemVersion const &)> constructor, ::RecipeUnlockingRequirement const &unlockingReq, ::SemVersion const &formatVersion)
MCAPI void addShulkerBoxRecipe (::std::string &recipeId, ::ItemInstance const &result, ::std::vector<::Recipes::Type > const &types, ::std::vector<::HashedString > const &tags, ::RecipeUnlockingRequirement const &unlockingReq, ::SemVersion const &formatVersion)
MCAPI void clearRecipes ()
MCAPI void forEachRecipeFor (::HashedString const &tag, ::brstd::function_ref< void(::Recipe const &)> callback) const
MCAPI void forEachUnlockableRecipeForIngredients (::std::vector<::RecipeIngredient > const &ingredients, ::brstd::function_ref< void(::Recipe const &)> callback) const
MCAPI::ItemInstance getFurnaceRecipeResult (::ItemStackBase const &item, ::HashedString const &tag) const
MCAPI::Recipe const * getRecipeByNetId (::RecipeNetId const &netId) const
MCAPI::Recipe * getRecipeFor (::ItemInstance const &result, ::HashedString const &tag) const
MCAPI void init (::ResourcePackManager &resourcePackManager, ::ExternalRecipeStore &recipeStorage, ::IAssetLoadWorkQueue &queue, ::BaseGameVersion const &baseGameVersion, ::Experiments const &experiments, ::IEducationOptions const &educationOptions)
MCAPI void * $ctor (::ILevel *level)
MCAPI void $dtor ()

Public Attributes

::ll::TypedStorage< 8, 8, ::ResourcePackManager * > mResourcePackManager
::ll::TypedStorage< 8, 8, ::ExternalRecipeStore > mExternalRecipeStore
::ll::TypedStorage< 8, 16, ::std::map<::HashedString, ::std::map<::std::string, ::std::shared_ptr<::Recipe > > > > mRecipes
::ll::TypedStorage< 1, 1, bool > mInitializing
::ll::TypedStorage< 8, 16, ::std::map<::ItemInstance, ::std::unordered_map<::std::string, ::Recipe * >, ::SortItemInstanceIdAux > > mRecipesByOutput
::ll::TypedStorage< 8, 64, ::std::unordered_map<::RecipeNetId, ::Recipe * > > mRecipesByNetId
::ll::TypedStorage< 8, 64, ::std::unordered_map< uint64, ::std::unordered_map< uint64, ::std::shared_ptr<::std::vector<::ItemInstance > > > > > mRecipesByInput
::ll::TypedStorage< 8, 24, ::std::vector<::gsl::not_null<::Recipe * > > > mUnlockableRecipes
::ll::TypedStorage< 8, 64, ::std::unordered_map< short, ::std::vector< uint64 > > > mUnlockableRecipeIndicesByItem
::ll::TypedStorage< 8, 24, ::std::vector< uint64 > > mUnindexedUnlockableRecipeIndices
::ll::TypedStorage< 8, 64, ::std::unordered_set<::std::string > > mUniqueUnlockableRecipeIds
::ll::TypedStorage< 8, 64, ::std::unordered_map< int, ::std::unordered_map< int, ::ItemInstance > > > mFurnaceResults
::ll::TypedStorage< 8, 24, ::std::vector<::std::pair<::std::weak_ptr< bool >, ::std::function< void()> > > > mListeners
::ll::TypedStorage< 8, 8, ::ILevel * > mLevel

Constructor & Destructor Documentation

◆ Recipes()

MCAPI Recipes::Recipes ( ::ILevel * level)
explicit
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

Member Function Documentation

◆ _loadIngredientFromJson()

MCAPI::RecipeIngredient const Recipes::_loadIngredientFromJson ( ::Json::Value const & obj,
::MolangVersion molangVersion,
bool allowItemCount,
bool allowItemGroup ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _loadInputIngredientFromJson()

MCAPI::RecipeIngredient const Recipes::_loadInputIngredientFromJson ( ::Json::Value const & obj,
::MinEngineVersion const & minEngineVersion ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ _loadUnlockingRequirementFromJson()

MCAPI ::std::optional<::RecipeUnlockingRequirement > Recipes::_loadUnlockingRequirementFromJson ( ::Json::Value const & obj,
::MolangVersion molangVersion,
::std::string const & recipeId ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ addDyedItemRecipe()

MCAPI void Recipes::addDyedItemRecipe ( ::std::string recipeId,
::ItemInstance const & result,
::RecipeIngredient const itemToDye,
::RecipeIngredient const dye,
::RecipeUnlockingRequirement const unlockingReq,
int const priority,
::SemVersion const & formatVersion )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ addShapedRecipe() [1/4]

MCAPI void Recipes::addShapedRecipe ( ::std::string recipeId,
::ItemInstance const & result,
::std::string const & r0,
::std::vector<::Recipes::Type > const & types,
::std::vector<::HashedString > const & tags,
int const priority,
::std::function<::std::unique_ptr<::ShapedRecipe >(::std::string, int, int, ::std::vector<::RecipeIngredient > const &, ::std::vector<::ItemInstance > const &, ::HashedString, bool, int, ::mce::UUID const *, ::RecipeUnlockingRequirement const &, ::SemVersion const &)> constructor,
::RecipeUnlockingRequirement const & unlockingReq,
::SemVersion const & formatVersion,
bool const assumeSymmetry )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ addShapedRecipe() [2/4]

MCAPI void Recipes::addShapedRecipe ( ::std::string recipeId,
::std::vector<::ItemInstance > const & result,
::std::vector<::std::string > const & rows,
::std::vector<::Recipes::Type > const & types,
::std::vector<::HashedString > const & tags,
int const priority,
::std::function<::std::unique_ptr<::ShapedRecipe >(::std::string, int, int, ::std::vector<::RecipeIngredient > const &, ::std::vector<::ItemInstance > const &, ::HashedString, bool, int, ::mce::UUID const *, ::RecipeUnlockingRequirement const &, ::SemVersion const &)> constructor,
::RecipeUnlockingRequirement const & unlockingReq,
::SemVersion const & formatVersion,
bool const assumeSymmetry )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ addShapedRecipe() [3/4]

MCAPI void Recipes::addShapedRecipe ( ::std::string recipeId,
::ItemInstance const & result,
::std::string const & r0,
::std::string const & r1,
::std::vector<::Recipes::Type > const & types,
::std::vector<::HashedString > const & tags,
int priority,
::std::function<::std::unique_ptr<::ShapedRecipe >(::std::string, int, int, ::std::vector<::RecipeIngredient > const &, ::std::vector<::ItemInstance > const &, ::HashedString, bool, int, ::mce::UUID const *, ::RecipeUnlockingRequirement const &, ::SemVersion const &)> constructor,
::RecipeUnlockingRequirement const & unlockingReq,
::SemVersion const & formatVersion,
bool assumeSymmetry )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ addShapedRecipe() [4/4]

MCAPI void Recipes::addShapedRecipe ( ::std::string recipeId,
::ItemInstance const & result,
::std::string const & r0,
::std::string const & r1,
::std::string const & r2,
::std::vector<::Recipes::Type > const & types,
::std::vector<::HashedString > const & tags,
int priority,
::std::function<::std::unique_ptr<::ShapedRecipe >(::std::string, int, int, ::std::vector<::RecipeIngredient > const &, ::std::vector<::ItemInstance > const &, ::HashedString, bool, int, ::mce::UUID const *, ::RecipeUnlockingRequirement const &, ::SemVersion const &)> constructor,
::RecipeUnlockingRequirement const & unlockingReq,
::SemVersion const & formatVersion,
bool assumeSymmetry )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ addShapelessRecipe()

MCAPI void Recipes::addShapelessRecipe ( ::std::string recipeId,
::ItemInstance const & result,
::std::vector<::Recipes::Type > const & types,
::std::vector<::HashedString > const & tags,
int priority,
::std::function<::std::unique_ptr<::ShapelessRecipe >(::std::string, ::std::vector<::RecipeIngredient > const &, ::std::vector<::ItemInstance > const &, ::HashedString, int, ::mce::UUID const *, ::RecipeUnlockingRequirement const &, ::SemVersion const &)> constructor,
::RecipeUnlockingRequirement const & unlockingReq,
::SemVersion const & formatVersion )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ addShulkerBoxRecipe()

MCAPI void Recipes::addShulkerBoxRecipe ( ::std::string & recipeId,
::ItemInstance const & result,
::std::vector<::Recipes::Type > const & types,
::std::vector<::HashedString > const & tags,
::RecipeUnlockingRequirement const & unlockingReq,
::SemVersion const & formatVersion )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ forEachUnlockableRecipeForIngredients()

MCAPI void Recipes::forEachUnlockableRecipeForIngredients ( ::std::vector<::RecipeIngredient > const & ingredients,
::brstd::function_ref< void(::Recipe const &)> callback ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ getRecipeFor()

MCAPI::Recipe * Recipes::getRecipeFor ( ::ItemInstance const & result,
::HashedString const & tag ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $ctor()

MCAPI void * Recipes::$ctor ( ::ILevel * level)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

The documentation for this class was generated from the following file: