Class ChiseledBookShelfBlockEntity
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.ChiseledBookShelfBlockEntity
- All Implemented Interfaces:
 Clearable,Container,IAttachmentHolder,IBlockEntityExtension,INBTSerializable<CompoundTag>
- 
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
AttachmentHolder.AsField - 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final NonNullList<ItemStack>private intprivate static final org.slf4j.Loggerstatic final intFields 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
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleancanPlaceItem(int p_256567_, ItemStack p_255922_) booleancanTakeItem(Container p_282172_, int p_281387_, ItemStack p_283257_) voidintcount()intgetItem(int p_256203_) intintbooleanisEmpty()voidload(CompoundTag p_249911_) removeItem(int p_255828_, int p_255673_) removeItemNoUpdate(int p_255874_) protected voidsaveAdditional(CompoundTag p_251872_) voidbooleanstillValid(Player p_256481_) private voidupdateState(int p_261806_) 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.Container
countItem, hasAnyMatching, hasAnyOf, setChanged, startOpen, 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, serializeNBT 
- 
Field Details
- 
MAX_BOOKS_IN_STORAGE
public static final int MAX_BOOKS_IN_STORAGE- See Also:
 
 - 
LOGGER
private static final org.slf4j.Logger LOGGER - 
items
 - 
lastInteractedSlot
private int lastInteractedSlot 
 - 
 - 
Constructor Details
- 
ChiseledBookShelfBlockEntity
 
 - 
 - 
Method Details
- 
updateState
private void updateState(int p_261806_)  - 
load
- Overrides:
 loadin classBlockEntity
 - 
saveAdditional
- Overrides:
 saveAdditionalin classBlockEntity
 - 
count
public int count() - 
clearContent
public void clearContent()- Specified by:
 clearContentin interfaceClearable
 - 
getContainerSize
public int getContainerSize()- Specified by:
 getContainerSizein interfaceContainer
 - 
isEmpty
public boolean isEmpty() - 
getItem
 - 
removeItem
- Specified by:
 removeItemin interfaceContainer
 - 
removeItemNoUpdate
- Specified by:
 removeItemNoUpdatein interfaceContainer
 - 
setItem
 - 
canTakeItem
- Specified by:
 canTakeItemin interfaceContainer
 - 
getMaxStackSize
public int getMaxStackSize()- Specified by:
 getMaxStackSizein interfaceContainer
 - 
stillValid
- Specified by:
 stillValidin interfaceContainer
 - 
canPlaceItem
- Specified by:
 canPlaceItemin interfaceContainer
 - 
getLastInteractedSlot
public int getLastInteractedSlot() 
 -