接口 BrewingStand
- 所有超级接口:
BlockInventoryHolder
,BlockState
,Container
,InventoryHolder
,Lockable
,Metadatable
,Nameable
,PersistentDataHolder
,TileState
-
方法概要
修饰符和类型方法说明int
返回酿造还需多长时间.int
获取酿造台当前剩余的燃料.获取此容器方块的物品栏.获取本容器的物品栏的快照.void
setBrewingTime
(int brewTime) 设置酿造还需多长时间完成.void
setFuelLevel
(int level) 设置酿造台当前剩余的燃料.从接口继承的方法 org.bukkit.inventory.BlockInventoryHolder
getBlock
从接口继承的方法 org.bukkit.block.BlockState
copy, copy, getBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isPlaced, setBlockData, setData, setRawData, setType, update, update, update
从接口继承的方法 org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
从接口继承的方法 org.bukkit.Nameable
getCustomName, setCustomName
从接口继承的方法 org.bukkit.block.TileState
getPersistentDataContainer
-
方法详细资料
-
getBrewingTime
int getBrewingTime()返回酿造还需多长时间.原文:How much time is left in the brewing cycle
- 返回:
- 酿造时间
-
setBrewingTime
void setBrewingTime(int brewTime) 设置酿造还需多长时间完成.原文:Set the time left before brewing completes.
- 参数:
brewTime
- 酿造时间
-
getFuelLevel
int getFuelLevel()获取酿造台当前剩余的燃料.原文:Get the level of current fuel for brewing.
- 返回:
- 酿造台当前剩余的燃料
-
setFuelLevel
void setFuelLevel(int level) 设置酿造台当前剩余的燃料.原文:Set the level of current fuel for brewing.
- 参数:
level
- 酿造台当前剩余的燃料
-
getInventory
从接口复制的说明:Container
获取此容器方块的物品栏.如果于此同时此方块的类型发生改变, 返回的物品栏可能不再有效.
如果此方块未被放置, 这将返回物品栏快照.
原文:Gets the inventory of the block represented by this block state.
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
- 返回:
- 物品栏
-
getSnapshotInventory
从接口复制的说明:Container
获取本容器的物品栏的快照.返回的快照不与任何方块相关联. 任何对此物品栏快照的修改将不会应用于真实的方块上, 直到调用
BlockState.update(boolean, boolean)
.原文:Gets the captured inventory snapshot of this 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
- 返回:
- 物品栏快照
-