类 ChiseledBookShelfBlockEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.ChiseledBookShelfBlockEntity
- 所有已实现的接口:
Clearable
,Container
,ICapabilityProvider
,ICapabilityProviderImpl<BlockEntity>
,ICapabilitySerializable<CompoundTag>
,IForgeBlockEntity
,INBTSerializable<CompoundTag>
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraftforge.common.capabilities.CapabilityProvider
CapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
-
字段概要
字段修饰符和类型字段说明private LazyOptional<?>
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.minecraft.world.Container
DEFAULT_DISTANCE_LIMIT, LARGE_MAX_STACK_SIZE
从接口继承的字段 net.minecraftforge.common.extensions.IForgeBlockEntity
INFINITE_EXTENT_AABB
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明boolean
canPlaceItem
(int pIndex, ItemStack pStack) boolean
canTakeItem
(Container pTarget, int pIndex, ItemStack pStack) void
int
count()
protected IItemHandler
<T> LazyOptional<T>
getCapability
(Capability<T> cap, Direction side) Retrieves the Optional handler for the capability requested on the specific side.int
getItem
(int pSlot) int
int
void
boolean
isEmpty()
void
load
(CompoundTag pTag) removeItem
(int pSlot, int pAmount) removeItemNoUpdate
(int pSlot) void
protected void
saveAdditional
(CompoundTag pTag) void
boolean
stillValid
(Player pPlayer) private void
updateState
(int pSlot) 从类继承的方法 net.minecraft.world.level.block.entity.BlockEntity
addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, getUpdatePacket, getUpdateTag, hasLevel, isRemoved, loadStatic, onChunkUnloaded, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setLevel, setRemoved, triggerEvent
从类继承的方法 net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, serializeCaps
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.world.Container
countItem, hasAnyMatching, hasAnyOf, setChanged, startOpen, stopOpen
从接口继承的方法 net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability
从接口继承的方法 net.minecraftforge.common.extensions.IForgeBlockEntity
deserializeNBT, getModelData, getRenderBoundingBox, handleUpdateTag, hasCustomOutlineRendering, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
-
字段详细资料
-
MAX_BOOKS_IN_STORAGE
public static final int MAX_BOOKS_IN_STORAGE- 另请参阅:
-
LOGGER
private static final org.slf4j.Logger LOGGER -
items
-
lastInteractedSlot
private int lastInteractedSlot -
itemHandler
-
-
构造器详细资料
-
ChiseledBookShelfBlockEntity
-
-
方法详细资料
-
updateState
private void updateState(int pSlot) -
load
- 覆盖:
load
在类中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() -
createUnSidedHandler
-
getCapability
从接口复制的说明:ICapabilityProvider
Retrieves the Optional handler for the capability requested on the specific side. The return value CAN be the same for multiple faces. Modders are encouraged to cache this value, using the listener capabilities of the Optional to be notified if the requested capability get lost.- 指定者:
getCapability
在接口中ICapabilityProvider
- 覆盖:
getCapability
在类中CapabilityProvider<BlockEntity>
- 参数:
cap
- The capability to checkside
- The Side to check from, CAN BE NULL. Null is defined to represent 'internal' or 'self'- 返回:
- The requested an optional holding the requested capability.
-
invalidateCaps
public void invalidateCaps()- 指定者:
invalidateCaps
在接口中ICapabilityProviderImpl<BlockEntity>
- 覆盖:
invalidateCaps
在类中CapabilityProvider<BlockEntity>
-
reviveCaps
public void reviveCaps()- 指定者:
reviveCaps
在接口中ICapabilityProviderImpl<BlockEntity>
- 覆盖:
reviveCaps
在类中CapabilityProvider<BlockEntity>
-