Package net.minecraft.world
Interface RandomizableContainer
- All Known Implementing Classes:
BarrelBlockEntity
,ChestBlockEntity
,CrafterBlockEntity
,DecoratedPotBlockEntity
,DispenserBlockEntity
,DropperBlockEntity
,HopperBlockEntity
,RandomizableContainerBlockEntity
,ShulkerBoxBlockEntity
,TrappedChestBlockEntity
-
Field Summary
Fields inherited from interface net.minecraft.world.Container
DEFAULT_DISTANCE_LIMIT, LARGE_MAX_STACK_SIZE
-
Method Summary
Modifier and TypeMethodDescriptiongetLevel()
long
static void
setBlockEntityLootTable
(BlockGetter p_312806_, RandomSource p_311284_, BlockPos p_311567_, ResourceLocation p_311477_) void
setLootTable
(ResourceLocation p_312096_) default void
setLootTable
(ResourceLocation p_310188_, long p_312787_) void
setLootTableSeed
(long p_309671_) default boolean
tryLoadLootTable
(CompoundTag p_310316_) default boolean
trySaveLootTable
(CompoundTag p_311616_) default void
unpackLootTable
(Player p_309552_) Methods inherited from interface net.minecraft.world.Clearable
clearContent
Methods inherited from interface net.minecraft.world.Container
canPlaceItem, canTakeItem, countItem, getContainerSize, getItem, getMaxStackSize, hasAnyMatching, hasAnyOf, isEmpty, removeItem, removeItemNoUpdate, setChanged, setItem, startOpen, stillValid, stopOpen
-
Field Details
-
LOOT_TABLE_TAG
- See Also:
-
LOOT_TABLE_SEED_TAG
- See Also:
-
-
Method Details
-
getLootTable
-
setLootTable
-
setLootTable
-
getLootTableSeed
long getLootTableSeed() -
setLootTableSeed
void setLootTableSeed(long p_309671_) -
getBlockPos
BlockPos getBlockPos() -
getLevel
-
setBlockEntityLootTable
static void setBlockEntityLootTable(BlockGetter p_312806_, RandomSource p_311284_, BlockPos p_311567_, ResourceLocation p_311477_) -
tryLoadLootTable
-
trySaveLootTable
-
unpackLootTable
-