Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
Util::LootTableUtils Class Reference

Static Public Member Functions

static MCAPI ::std::string convertFromJavaLootTableName (::std::string const &lootTableName)
static MCAPI void fillContainer (::Level &level, ::Container &container, ::Random &random, ::std::string const &tableName, ::DimensionType dimensionId, ::Actor *entity)
static MCAPI ::std::vector<::ItemStack > generateRandomDeathLoot (::LootTable const &table, ::Actor &lootSourceEntity, ::ActorDamageSource const *damageSource, ::ItemStack const *tool, ::Player *killer, float luck)
static MCAPI ::std::vector<::ItemStack > getRandomItems (::std::string const &tableName, ::Random &random, ::LootTableContext &context)
static MCAPI int givePlayer (::Player &player, ::std::vector<::ItemStack > &items, bool shouldAddWhenFull)

Member Function Documentation

◆ convertFromJavaLootTableName()

MCAPI ::std::string Util::LootTableUtils::convertFromJavaLootTableName ( ::std::string const & lootTableName)
static
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.

◆ getRandomItems()

MCAPI ::std::vector<::ItemStack > Util::LootTableUtils::getRandomItems ( ::std::string const & tableName,
::Random & random,
::LootTableContext & context )
static
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: