-
成员变量 修饰符和类 成员变量描述 protected int
burnDuration
protected int
burnTime
protected int
cookTime
protected FurnaceInventory
inventory
protected int
maxTime
-
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
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 anItem
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.-
createBlockEntity, getBlock, getCleanedNBT, getDefaultCompound, getId, getSaveId, isMovable, 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
-