Class RandomizableContainerBlockEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.BaseContainerBlockEntity
net.minecraft.world.level.block.entity.RandomizableContainerBlockEntity
- All Implemented Interfaces:
- Clearable,- Container,- MenuConstructor,- MenuProvider,- Nameable,- RandomizableContainer,- ICapabilityProvider,- ICapabilityProviderImpl<BlockEntity>,- IForgeBlockEntity
- Direct Known Subclasses:
- BarrelBlockEntity,- ChestBlockEntity,- CrafterBlockEntity,- DispenserBlockEntity,- HopperBlockEntity,- ShulkerBoxBlockEntity
public abstract class RandomizableContainerBlockEntity
extends BaseContainerBlockEntity
implements RandomizableContainer
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.world.level.block.entity.BlockEntityBlockEntity.ComponentHelper, BlockEntity.DataComponentInputNested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProviderCapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
- 
Field SummaryFieldsFields inherited from class net.minecraft.world.level.block.entity.BlockEntitylevel, remove, worldPositionFields inherited from interface net.minecraft.world.ContainerDEFAULT_DISTANCE_BUFFERFields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntityINFINITE_EXTENT_AABBFields inherited from interface net.minecraft.world.RandomizableContainerLOOT_TABLE_SEED_TAG, LOOT_TABLE_TAG
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedRandomizableContainerBlockEntity(BlockEntityType<?> p_155629_, BlockPos p_155630_, BlockState p_155631_) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidbooleanprotected voidcreateMenu(int p_59637_, Inventory p_59638_, Player p_59639_) getItem(int p_59611_) longbooleanisEmpty()voidremoveComponentsFromTag(CompoundTag p_331651_) removeItem(int p_59613_, int p_59614_) removeItemNoUpdate(int p_59630_) voidvoidsetLootTable(ResourceKey<LootTable> p_328444_) voidsetLootTableSeed(long p_311658_) Methods inherited from class net.minecraft.world.level.block.entity.BaseContainerBlockEntitycanUnlock, clearContent, createMenu, createUnSidedHandler, getCapability, getCustomName, getDefaultName, getDisplayName, getItems, getName, invalidateCaps, loadAdditional, reviveCaps, saveAdditional, setItems, stillValidMethods inherited from class net.minecraft.world.level.block.entity.BlockEntityaddEntityType, applyComponents, applyComponentsFromItemStack, clearRemoved, collectComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPosFromTag, getType, getUpdatePacket, getUpdateTag, hasLevel, isRemoved, loadCustomOnly, loadStatic, loadWithComponents, onChunkUnloaded, onlyOpCanSetNbt, parseCustomNameSafe, saveCustomAndMetadata, saveCustomOnly, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setLevel, setRemoved, triggerEventMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProviderdeserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, serializeCapsMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.ClearableclearContentMethods inherited from interface net.minecraft.world.ContainercanPlaceItem, canTakeItem, countItem, getContainerSize, getMaxStackSize, getMaxStackSize, hasAnyMatching, hasAnyOf, setChanged, startOpen, stillValid, stopOpenMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvidergetCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntitygetModelData, getRenderBoundingBox, handleUpdateTag, hasCustomOutlineRendering, onDataPacket, onLoad, requestModelDataUpdateMethods inherited from interface net.minecraft.world.NameablehasCustomNameMethods inherited from interface net.minecraft.world.RandomizableContainergetBlockPos, getLevel, setLootTable, tryLoadLootTable, trySaveLootTable, unpackLootTable
- 
Field Details- 
lootTable
- 
lootTableSeedprotected long lootTableSeed
 
- 
- 
Constructor Details- 
RandomizableContainerBlockEntityprotected RandomizableContainerBlockEntity(BlockEntityType<?> p_155629_, BlockPos p_155630_, BlockState p_155631_) 
 
- 
- 
Method Details- 
getLootTable- Specified by:
- getLootTablein interface- RandomizableContainer
 
- 
setLootTable- Specified by:
- setLootTablein interface- RandomizableContainer
 
- 
getLootTableSeedpublic long getLootTableSeed()- Specified by:
- getLootTableSeedin interface- RandomizableContainer
 
- 
setLootTableSeedpublic void setLootTableSeed(long p_311658_) - Specified by:
- setLootTableSeedin interface- RandomizableContainer
 
- 
isEmptypublic boolean isEmpty()- Specified by:
- isEmptyin interface- Container
- Overrides:
- isEmptyin class- BaseContainerBlockEntity
 
- 
getItem- Specified by:
- getItemin interface- Container
- Overrides:
- getItemin class- BaseContainerBlockEntity
 
- 
removeItem- Specified by:
- removeItemin interface- Container
- Overrides:
- removeItemin class- BaseContainerBlockEntity
 
- 
removeItemNoUpdate- Specified by:
- removeItemNoUpdatein interface- Container
- Overrides:
- removeItemNoUpdatein class- BaseContainerBlockEntity
 
- 
setItem- Specified by:
- setItemin interface- Container
- Overrides:
- setItemin class- BaseContainerBlockEntity
 
- 
canOpen- Overrides:
- canOpenin class- BaseContainerBlockEntity
 
- 
createMenu@Nullable public AbstractContainerMenu createMenu(int p_59637_, Inventory p_59638_, Player p_59639_) - Specified by:
- createMenuin interface- MenuConstructor
- Overrides:
- createMenuin class- BaseContainerBlockEntity
 
- 
applyImplicitComponents- Overrides:
- applyImplicitComponentsin class- BaseContainerBlockEntity
 
- 
collectImplicitComponents- Overrides:
- collectImplicitComponentsin class- BaseContainerBlockEntity
 
- 
removeComponentsFromTag- Overrides:
- removeComponentsFromTagin class- BaseContainerBlockEntity
 
 
-