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 Summary
Nested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
AttachmentHolder.AsField - 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate NonNullList<ItemStack>private final ContainerOpenersCounterFields inherited from class net.minecraft.world.level.block.entity.RandomizableContainerBlockEntity
lootTable, lootTableSeedFields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPositionFields inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
ATTACHMENTS_NBT_KEYFields inherited from interface net.minecraft.world.Container
DEFAULT_DISTANCE_LIMIT, LARGE_MAX_STACK_SIZEFields inherited from interface net.minecraft.world.RandomizableContainer
LOOT_TABLE_SEED_TAG, LOOT_TABLE_TAG - 
Constructor Summary
Constructors - 
Method Summary
Modifier 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.RandomizableContainerBlockEntity
canOpen, clearContent, createMenu, getItem, getLootTable, getLootTableSeed, isEmpty, removeItem, removeItemNoUpdate, setItem, setLootTable, setLootTableSeed, stillValidMethods inherited from class net.minecraft.world.level.block.entity.BaseContainerBlockEntity
canUnlock, getCustomName, getDisplayName, getName, setCustomNameMethods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, 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.AttachmentHolder
areAttachmentsCompatible, deserializeAttachments, getData, hasAttachments, hasData, serializeAttachmentsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.Container
canPlaceItem, canTakeItem, countItem, getMaxStackSize, hasAnyMatching, hasAnyOf, setChangedMethods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHolder
getData, hasData, removeData, setDataMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockEntityExtension
deserializeNBT, getModelData, handleUpdateTag, hasCustomOutlineRendering, invalidateCapabilities, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBTMethods inherited from interface net.neoforged.neoforge.client.extensions.IMenuProviderExtension
shouldTriggerClientSideContainerClosingOnOpenMethods inherited from interface net.minecraft.world.Nameable
hasCustomNameMethods inherited from interface net.minecraft.world.RandomizableContainer
getBlockPos, getLevel, setLootTable, tryLoadLootTable, trySaveLootTable, unpackLootTable 
- 
Field Details
- 
items
 - 
openersCounter
 
 - 
 - 
Constructor Details
- 
BarrelBlockEntity
 
 - 
 - 
Method Details
- 
saveAdditional
- Overrides:
 saveAdditionalin classBaseContainerBlockEntity
 - 
load
- Overrides:
 loadin classBaseContainerBlockEntity
 - 
getContainerSize
public int getContainerSize() - 
getItems
- Specified by:
 getItemsin classRandomizableContainerBlockEntity
 - 
setItems
- Specified by:
 setItemsin classRandomizableContainerBlockEntity
 - 
getDefaultName
- Specified by:
 getDefaultNamein classBaseContainerBlockEntity
 - 
createMenu
- Specified by:
 createMenuin classBaseContainerBlockEntity
 - 
startOpen
 - 
stopOpen
 - 
recheckOpen
public void recheckOpen() - 
updateBlockState
 - 
playSound
 
 -