类 ChiseledBookShelfBlockEntity
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.ChiseledBookShelfBlockEntity
- 所有已实现的接口:
Iterable<ItemStack>
,Clearable
,Container
,IAttachmentHolder
,IBlockEntityExtension
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.level.block.entity.BlockEntity
BlockEntity.BlockEntityPathElement
从类继承的嵌套类/接口 net.neoforged.neoforge.attachment.AttachmentHolder
AttachmentHolder.AsField
从接口继承的嵌套类/接口 net.minecraft.world.Container
Container.ContainerIterator
-
字段概要
字段修饰符和类型字段说明private static final int
private final NonNullList
<ItemStack> private int
private static final org.slf4j.Logger
static final int
从类继承的字段 net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPosition
从类继承的字段 net.neoforged.neoforge.attachment.AttachmentHolder
ATTACHMENTS_NBT_KEY
从接口继承的字段 net.minecraft.world.Container
DEFAULT_DISTANCE_BUFFER
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected void
applyImplicitComponents
(DataComponentGetter p_396989_) boolean
canPlaceItem
(int p_256567_, ItemStack p_255922_) boolean
canTakeItem
(Container p_282172_, int p_281387_, ItemStack p_283257_) void
protected void
int
count()
int
getItem
(int p_256203_) int
int
boolean
isEmpty()
protected void
loadAdditional
(ValueInput p_422122_) void
removeComponentsFromTag
(ValueOutput p_421863_) removeItem
(int p_255828_, int p_255673_) removeItemNoUpdate
(int p_255874_) protected void
saveAdditional
(ValueOutput p_422265_) void
boolean
stillValid
(Player p_256481_) private void
updateState
(int p_261806_) 从类继承的方法 net.minecraft.world.level.block.entity.BlockEntity
addEntityType, applyComponents, applyComponentsFromItemStack, clearRemoved, collectComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getNameForReporting, getPersistentData, getPosFromTag, getType, getUpdatePacket, getUpdateTag, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, parseCustomNameSafe, preRemoveSideEffects, problemPath, removeData, saveCustomOnly, saveCustomOnly, saveWithFullMetadata, saveWithFullMetadata, saveWithId, saveWithoutMetadata, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setData, setLevel, setRemoved, triggerEvent
从类继承的方法 net.neoforged.neoforge.attachment.AttachmentHolder
deserializeAttachments, getData, getExistingDataOrNull, hasAttachments, hasData, serializeAttachments
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.world.Container
countItem, getMaxStackSize, hasAnyMatching, hasAnyOf, iterator, setChanged, startOpen, stopOpen
从接口继承的方法 net.neoforged.neoforge.attachment.IAttachmentHolder
getData, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setData
从接口继承的方法 net.neoforged.neoforge.common.extensions.IBlockEntityExtension
getModelData, handleUpdateTag, invalidateCapabilities, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate
从接口继承的方法 java.lang.Iterable
forEach, spliterator
-
字段详细资料
-
MAX_BOOKS_IN_STORAGE
public static final int MAX_BOOKS_IN_STORAGE- 另请参阅:
-
LOGGER
private static final org.slf4j.Logger LOGGER -
DEFAULT_LAST_INTERACTED_SLOT
private static final int DEFAULT_LAST_INTERACTED_SLOT- 另请参阅:
-
items
-
lastInteractedSlot
private int lastInteractedSlot
-
-
构造器详细资料
-
ChiseledBookShelfBlockEntity
-
-
方法详细资料
-
updateState
private void updateState(int p_261806_) -
loadAdditional
- 覆盖:
loadAdditional
在类中BlockEntity
-
saveAdditional
- 覆盖:
saveAdditional
在类中BlockEntity
-
count
public int count() -
clearContent
public void clearContent()- 指定者:
clearContent
在接口中Clearable
-
getContainerSize
public int getContainerSize()- 指定者:
getContainerSize
在接口中Container
-
isEmpty
public boolean isEmpty() -
getItem
-
removeItem
- 指定者:
removeItem
在接口中Container
-
removeItemNoUpdate
- 指定者:
removeItemNoUpdate
在接口中Container
-
setItem
-
canTakeItem
- 指定者:
canTakeItem
在接口中Container
-
getMaxStackSize
public int getMaxStackSize()- 指定者:
getMaxStackSize
在接口中Container
-
stillValid
- 指定者:
stillValid
在接口中Container
-
canPlaceItem
- 指定者:
canPlaceItem
在接口中Container
-
getLastInteractedSlot
public int getLastInteractedSlot() -
applyImplicitComponents
- 覆盖:
applyImplicitComponents
在类中BlockEntity
-
collectImplicitComponents
- 覆盖:
collectImplicitComponents
在类中BlockEntity
-
removeComponentsFromTag
- 覆盖:
removeComponentsFromTag
在类中BlockEntity
-