Class BarrelBlockEntity
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
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,- IAttachmentHolder,- IMenuProviderExtension,- IBlockEntityExtension,- INBTSerializable<CompoundTag>
- 
Nested Class SummaryNested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolderAttachmentHolder.AsField
- 
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 class net.neoforged.neoforge.attachment.AttachmentHolderATTACHMENTS_NBT_KEYFields inherited from interface net.minecraft.world.ContainerDEFAULT_DISTANCE_LIMIT, LARGE_MAX_STACK_SIZEFields 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()voidload(CompoundTag p_155055_) (package private) voidplaySound(BlockState p_58601_, SoundEvent p_58602_) voidprotected voidsaveAdditional(CompoundTag p_187459_) 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.RandomizableContainerBlockEntitycanOpen, clearContent, createMenu, getItem, getLootTable, getLootTableSeed, isEmpty, removeItem, removeItemNoUpdate, setItem, setLootTable, setLootTableSeed, stillValidMethods inherited from class net.minecraft.world.level.block.entity.BaseContainerBlockEntitycanUnlock, getCustomName, getDisplayName, getName, setCustomNameMethods inherited from class net.minecraft.world.level.block.entity.BlockEntityaddEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, getUpdatePacket, getUpdateTag, hasLevel, isRemoved, loadStatic, onlyOpCanSetNbt, removeData, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setData, setLevel, setRemoved, triggerEventMethods inherited from class net.neoforged.neoforge.attachment.AttachmentHolderareAttachmentsCompatible, deserializeAttachments, getData, hasAttachments, hasData, serializeAttachmentsMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.ContainercanPlaceItem, canTakeItem, countItem, getMaxStackSize, hasAnyMatching, hasAnyOf, setChangedMethods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHoldergetData, hasData, removeData, setDataMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockEntityExtensiondeserializeNBT, getModelData, handleUpdateTag, hasCustomOutlineRendering, invalidateCapabilities, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBTMethods inherited from interface net.neoforged.neoforge.client.extensions.IMenuProviderExtensionshouldTriggerClientSideContainerClosingOnOpenMethods 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
 
- 
load- Overrides:
- loadin class- BaseContainerBlockEntity
 
- 
getContainerSizepublic int getContainerSize()
- 
getItems- Specified by:
- getItemsin class- RandomizableContainerBlockEntity
 
- 
setItems- Specified by:
- setItemsin class- RandomizableContainerBlockEntity
 
- 
getDefaultName- Specified by:
- getDefaultNamein class- BaseContainerBlockEntity
 
- 
createMenu- Specified by:
- createMenuin class- BaseContainerBlockEntity
 
- 
startOpen
- 
stopOpen
- 
recheckOpenpublic void recheckOpen()
- 
updateBlockState
- 
playSound
 
-