net.minecraft.inventory

public interface LootableInventory

extends Inventory

net.minecraft.world.RandomizableContainer
net.minecraft.class_8934
net.minecraft.inventory.LootableInventory

Field summary

Modifier and TypeField
String
LOOT_TABLE_TAG
field_47154
LOOT_TABLE_KEY
String
LOOT_TABLE_SEED_TAG
field_47155
LOOT_TABLE_SEED_KEY

Method summary

Modifier and TypeMethod
RegistryKey<LootTable>
getLootTable()
method_54869()
getLootTable()
void
setLootTable(ResourceKey<LootTable> lootTable)
method_11285(class_5321<class_52> arg0)
setLootTable(RegistryKey<LootTable> lootTable)
default void
setLootTable(ResourceKey<LootTable> lootTable, long seed)
method_54867(class_5321<class_52> arg0, long arg1)
setLootTable(RegistryKey<LootTable> lootTableId, long lootTableSeed)
long
getLootTableSeed()
method_54870()
getLootTableSeed()
void
setLootTableSeed(long lootTableSeed)
method_54866(long arg0)
setLootTableSeed(long lootTableSeed)
BlockPos
getBlockPos()
method_11016()
getPos()
World
getLevel()
method_10997()
getWorld()
static void
setBlockEntityLootTable(BlockGetter level, RandomSource random, BlockPos blockEntityPos, ResourceKey<LootTable> lootTable)
method_54868(class_1922 arg0, class_5819 arg1, class_2338 arg2, class_5321<class_52> arg3)
setLootTable(BlockView world, Random random, BlockPos pos, RegistryKey<LootTable> lootTableId)
default boolean
tryLoadLootTable(ValueInput base)
method_54871(class_11368 arg0)
readLootTable(ReadView view)
default boolean
trySaveLootTable(ValueOutput base)
method_54872(class_11372 arg0)
writeLootTable(WriteView view)
default void
unpackLootTable(Player player)
method_54873(class_1657 arg0)
generateLoot(PlayerEntity player)