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_BUFFER
-
Method Summary
Modifier and TypeMethodDescriptiongetLevel()
long
static void
setBlockEntityLootTable
(BlockGetter p_309623_, RandomSource p_309643_, BlockPos p_309644_, ResourceKey<LootTable> p_335924_) void
setLootTable
(ResourceKey<LootTable> p_335578_) default void
setLootTable
(ResourceKey<LootTable> p_335762_, long p_335967_) void
setLootTableSeed
(long p_309559_) default boolean
tryLoadLootTable
(CompoundTag p_309695_) default boolean
trySaveLootTable
(CompoundTag p_309634_) default void
unpackLootTable
(Player p_309628_) Methods inherited from interface net.minecraft.world.Clearable
clearContent
Methods inherited from interface net.minecraft.world.Container
canPlaceItem, canTakeItem, countItem, getContainerSize, getItem, getMaxStackSize, 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_309559_) -
getBlockPos
BlockPos getBlockPos() -
getLevel
-
setBlockEntityLootTable
static void setBlockEntityLootTable(BlockGetter p_309623_, RandomSource p_309643_, BlockPos p_309644_, ResourceKey<LootTable> p_335924_) -
tryLoadLootTable
-
trySaveLootTable
-
unpackLootTable
-