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_309623_, RandomSource p_309643_, BlockPos p_309644_, ResourceLocation p_309614_) void
setLootTable
(ResourceLocation p_309562_) default void
setLootTable
(ResourceLocation p_309569_, long p_309652_) 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, 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_, ResourceLocation p_309614_) -
tryLoadLootTable
-
trySaveLootTable
-
unpackLootTable
-