Skip to content

Latest commit

 

History

History
243 lines (243 loc) · 12.7 KB

cn.nukkit.blockentity.BlockEntityFurnace.md

File metadata and controls

243 lines (243 loc) · 12.7 KB
  • 成员变量一览

    成员变量 
    修饰符和类 成员变量描述
    protected int burnDuration 
    protected int burnTime 
    protected int cookTime 
    protected FurnaceInventory inventory 
    protected int maxTime 
    • 继承自类 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
  • 构造函数一览

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

    All Methods Instance Methods Concrete Methods 
    修饰符和类 成员函数描述
    protected void checkFuel(Item fuel) 
    void close() 
    int getBurnDuration() 
    int getBurnTime() 
    int getCookTime() 
    FurnaceInventory getInventory() 
    Item getItem(int index)
    返回一个存储在容器里的物品的Item对象。
    Returns an item that stores in this container, as an Item object.
    int getMaxTime() 
    String getName()
    返回这个事物的名字。
    Gets the name of this object.
    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() 
    void onBreak() 
    boolean onUpdate() 
    void saveNBT() 
    void setBurnDuration(int burnDuration) 
    void setBurnTime(int burnTime) 
    void setCookTime(int cookTime) 
    void setItem(int index, Item item)
    把一个物品存储进容器。
    Sets or stores this item into this container.
    void setMaxTime(int maxTime) 
    void setName(String name)
    设置或更改这个事物的名字。
    Changes the name of this object, or names it.
    • 继承自类 cn.nukkit.blockentity.BlockEntitySpawnable

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

      createBlockEntity, getBlock, getCleanedNBT, getDefaultCompound, getId, getSaveId, isMovable, 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