public interface BrewingStand extends Container, Nameable
限定符和类型 | 方法和说明 |
---|---|
int |
getBrewingTime()
返回酿造还需多长时间.
|
int |
getFuelLevel()
获取酿造台当前剩余的燃料.
|
BrewerInventory |
getInventory()
Gets the inventory of the block represented by this block state.
|
BrewerInventory |
getSnapshotInventory()
Gets the captured inventory snapshot of this container.
|
void |
setBrewingTime(int brewTime)
设置酿造还需多长时间完成.
|
void |
setFuelLevel(int level)
设置酿造台当前剩余的燃料.
|
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
int getBrewingTime()
原文:How much time is left in the brewing cycle
void setBrewingTime(int brewTime)
原文:Set the time left before brewing completes.
brewTime
- 酿造时间int getFuelLevel()
原文:Get the level of current fuel for brewing.
void setFuelLevel(int level)
原文:Set the level of current fuel for brewing.
level
- 酿造台当前剩余的燃料BrewerInventory 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
BrewerInventory 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