Class BaseContainerBlockEntity
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.BaseContainerBlockEntity
- All Implemented Interfaces:
 Clearable,Container,MenuConstructor,MenuProvider,Nameable,IAttachmentHolder,IMenuProviderExtension,IBlockEntityExtension,INBTSerializable<CompoundTag>
- Direct Known Subclasses:
 AbstractFurnaceBlockEntity,BrewingStandBlockEntity,RandomizableContainerBlockEntity
public abstract class BaseContainerBlockEntity
extends BlockEntity
implements Container, MenuProvider, Nameable
- 
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
AttachmentHolder.AsField - 
Field Summary
FieldsFields 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_SIZE - 
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBaseContainerBlockEntity(BlockEntityType<?> p_155076_, BlockPos p_155077_, BlockState p_155078_)  - 
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic booleanprotected abstract AbstractContainerMenucreateMenu(int p_58627_, Inventory p_58628_) createMenu(int p_58641_, Inventory p_58642_, Player p_58643_) protected abstract ComponentgetName()voidload(CompoundTag p_155080_) protected voidsaveAdditional(CompoundTag p_187461_) voidsetCustomName(Component p_58639_) Methods 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.Clearable
clearContentMethods inherited from interface net.minecraft.world.Container
canPlaceItem, canTakeItem, countItem, getContainerSize, getItem, getMaxStackSize, hasAnyMatching, hasAnyOf, isEmpty, removeItem, removeItemNoUpdate, setChanged, setItem, startOpen, stillValid, stopOpenMethods 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
hasCustomName 
- 
Field Details
- 
lockKey
 - 
name
 
 - 
 - 
Constructor Details
- 
BaseContainerBlockEntity
protected BaseContainerBlockEntity(BlockEntityType<?> p_155076_, BlockPos p_155077_, BlockState p_155078_)  
 - 
 - 
Method Details
- 
load
- Overrides:
 loadin classBlockEntity
 - 
saveAdditional
- Overrides:
 saveAdditionalin classBlockEntity
 - 
setCustomName
 - 
getName
 - 
getDisplayName
- Specified by:
 getDisplayNamein interfaceMenuProvider- Specified by:
 getDisplayNamein interfaceNameable
 - 
getCustomName
- Specified by:
 getCustomNamein interfaceNameable
 - 
getDefaultName
 - 
canOpen
 - 
canUnlock
 - 
createMenu
@Nullable public AbstractContainerMenu createMenu(int p_58641_, Inventory p_58642_, Player p_58643_) - Specified by:
 createMenuin interfaceMenuConstructor
 - 
createMenu
 
 -