public interface Furnace extends Container, Nameable
限定符和类型 | 方法和说明 |
---|---|
short |
getBurnTime()
获取燃烧时间.
|
short |
getCookTime()
获取烹饪时间.
|
FurnaceInventory |
getInventory()
Gets the inventory of the block represented by this block state.
|
FurnaceInventory |
getSnapshotInventory()
Gets the captured inventory snapshot of this container.
|
void |
setBurnTime(short burnTime)
设置燃烧时间.
|
void |
setCookTime(short cookTime)
设置烹饪时间.
|
getBlock, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getTypeId, getWorld, getX, getY, getZ, isPlaced, setData, setRawData, setType, setTypeId, update, update, update
getMetadata, hasMetadata, removeMetadata, setMetadata
getCustomName, setCustomName
short getBurnTime()
原文: Get burn time.
void setBurnTime(short burnTime)
原文: Set burn time.
burnTime
- 燃烧时间short getCookTime()
原文: Get cook time.
void setCookTime(short cookTime)
原文: Set cook time.
cookTime
- 烹饪时间FurnaceInventory getInventory()
Container
If the block was changed to a different type in the meantime, the returned inventory might no longer be valid.
If this block state is not placed this will return the captured inventory snapshot instead.
getInventory
在接口中 Container
getInventory
在接口中 InventoryHolder
FurnaceInventory getSnapshotInventory()
Container
The returned inventory is not linked to any block. Any modifications to
the returned inventory will not be applied to the block represented by
this block state up until BlockState.update(boolean, boolean)
has been
called.
getSnapshotInventory
在接口中 Container