Skip to content

Latest commit

 

History

History
219 lines (219 loc) · 11.9 KB

cn.nukkit.blockentity.BlockEntityChest.md

File metadata and controls

219 lines (219 loc) · 11.9 KB
  • 成员变量一览

    成员变量 
    修饰符和类 成员变量描述
    protected DoubleChestInventory doubleInventory 
    protected ChestInventory inventory 
    • 继承自类 cn.nukkit.blockentity.BlockEntity

      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
    • 继承自类 cn.nukkit.level.Position

      level
    • 继承自类 cn.nukkit.math.Vector3

      x, y, z
  • 构造函数一览

    构造函数 
    构造函数描述
    BlockEntityChest(FullChunk chunk, CompoundTag nbt) 
  • 成员函数一览

    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 an Item 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() 
    • 继承自类 cn.nukkit.blockentity.BlockEntitySpawnable

      spawnTo, spawnToAll, updateCompoundTag
    • 继承自类 cn.nukkit.blockentity.BlockEntity

      createBlockEntity, getBlock, getCleanedNBT, getDefaultCompound, getId, getSaveId, isMovable, onUpdate, registerBlockEntity, scheduleUpdate, setDirty
    • 继承自类 cn.nukkit.level.Position

      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
    • 继承自类 cn.nukkit.math.Vector3

      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
    • 继承自类 java.lang.Object

      finalize, getClass, notify, notifyAll, wait, wait, wait