-
成员变量 修饰符和类 成员变量描述 protected DoubleChestInventory
doubleInventory
protected ChestInventory
inventory
-
BANNER, BEACON, BED, BREWING_STAND, CAULDRON, CHEST, chunk, closed, COMPARATOR, count, DAYLIGHT_DETECTOR, ENCHANT_TABLE, ENDER_CHEST, FLOWER_POT, FURNACE, HOPPER, id, ITEM_FRAME, JUKEBOX, lastUpdate, MOB_SPAWNER, movable, MOVING_BLOCK, MUSIC, name, namedTag, PISTON_ARM, server, SHULKER_BOX, SIGN, SKULL, timing
-
-
All Methods Instance Methods Concrete Methods 修饰符和类 成员函数描述 protected void
checkPairing()
void
close()
void
createPair(BlockEntityChest chest)
BaseInventory
getInventory()
Item
getItem(int index)
返回一个存储在容器里的物品的Item
对象。
Returns an item that stores in this container, as anItem
object.String
getName()
返回这个事物的名字。
Gets the name of this object.BlockEntityChest
getPair()
ChestInventory
getRealInventory()
int
getSize()
返回这个容器最多能包含的物品数量。
Returns the max number of items that this container can contain.protected int
getSlotIndex(int index)
CompoundTag
getSpawnCompound()
boolean
hasName()
返回这个事物是否有名字。
Whether this object has a name.protected void
initBlockEntity()
boolean
isBlockEntityValid()
boolean
isPaired()
void
onBreak()
boolean
pairWith(BlockEntityChest chest)
void
saveNBT()
void
setItem(int index, Item item)
把一个物品存储进容器。
Sets or stores this item into this container.void
setName(String name)
设置或更改这个事物的名字。
Changes the name of this object, or names it.boolean
unpair()
-
createBlockEntity, getBlock, getCleanedNBT, getDefaultCompound, getId, getSaveId, isMovable, onUpdate, registerBlockEntity, scheduleUpdate, setDirty
-
abs, add, add, add, add, ceil, clone, divide, floor, fromObject, fromObject, getChunk, getLevel, getLevelBlock, getLocation, getSide, getSide, isValid, multiply, round, setComponents, setLevel, setStrong, setWeak, subtract, subtract, subtract, subtract, subtract, toString
-
asBlockVector3, asVector3f, cross, distance, distanceSquared, dot, down, down, east, east, equals, getChunkX, getChunkZ, getFloorX, getFloorY, getFloorZ, getForward, getIntermediateWithXValue, getIntermediateWithYValue, getIntermediateWithZValue, getRight, getSouth, getUp, getWest, getX, getY, getZ, hashCode, length, lengthSquared, maxPlainDistance, maxPlainDistance, maxPlainDistance, maxPlainDistance, maxPlainDistance, normalize, north, north, rawHashCode, south, south, up, up, west, west
-