Class BarrelBlockEntity
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
net.minecraft.world.level.block.entity.BarrelBlockEntity
- All Implemented Interfaces:
- Clearable,- Container,- MenuConstructor,- MenuProvider,- Nameable,- RandomizableContainer,- ICapabilityProvider,- ICapabilityProviderImpl<BlockEntity>,- IForgeBlockEntity
- 
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 SummaryFieldsModifier and TypeFieldDescriptionprivate NonNullList<ItemStack> private final ContainerOpenersCounterFields inherited from class net.minecraft.world.level.block.entity.RandomizableContainerBlockEntitylootTable, lootTableSeedFields 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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected AbstractContainerMenucreateMenu(int p_58598_, Inventory p_58599_) intprotected Componentprotected NonNullList<ItemStack> getItems()protected voidloadAdditional(CompoundTag p_332191_, HolderLookup.Provider p_334663_) (package private) voidplaySound(BlockState p_58601_, SoundEvent p_58602_) voidprotected voidsaveAdditional(CompoundTag p_187459_, HolderLookup.Provider p_330809_) protected voidsetItems(NonNullList<ItemStack> p_58610_) voidvoid(package private) voidupdateBlockState(BlockState p_58607_, boolean p_58608_) Methods inherited from class net.minecraft.world.level.block.entity.RandomizableContainerBlockEntityapplyImplicitComponents, canOpen, collectImplicitComponents, createMenu, getItem, getLootTable, getLootTableSeed, isEmpty, removeComponentsFromTag, removeItem, removeItemNoUpdate, setItem, setLootTable, setLootTableSeedMethods inherited from class net.minecraft.world.level.block.entity.BaseContainerBlockEntitycanUnlock, clearContent, createUnSidedHandler, getCapability, getCustomName, getDisplayName, getName, invalidateCaps, reviveCaps, 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, getMaxStackSize, getMaxStackSize, hasAnyMatching, hasAnyOf, setChanged, stillValidMethods 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- 
items
- 
openersCounter
 
- 
- 
Constructor Details- 
BarrelBlockEntity
 
- 
- 
Method Details- 
saveAdditional- Overrides:
- saveAdditionalin class- BaseContainerBlockEntity
 
- 
loadAdditional- Overrides:
- loadAdditionalin class- BaseContainerBlockEntity
 
- 
getContainerSizepublic int getContainerSize()
- 
getItems- Specified by:
- getItemsin class- BaseContainerBlockEntity
 
- 
setItems- Specified by:
- setItemsin class- BaseContainerBlockEntity
 
- 
getDefaultName- Specified by:
- getDefaultNamein class- BaseContainerBlockEntity
 
- 
createMenu- Specified by:
- createMenuin class- BaseContainerBlockEntity
 
- 
startOpen
- 
stopOpen
- 
recheckOpenpublic void recheckOpen()
- 
updateBlockState
- 
playSound
 
-