程序包 org.bukkit.block
接口 Campfire
- 所有超级接口:
BlockState
,Metadatable
,PersistentDataHolder
,TileState
代表营火.
-
方法概要
修饰符和类型方法说明int
getCookTime
(int index) 获取某个物品已被烹饪多久.int
getCookTimeTotal
(int index) 获取烹饪某个物品所需的时间.getItem
(int index) int
getSize()
void
setCookTime
(int index, int cookTime) 设置某个物品已被烹饪多久.void
setCookTimeTotal
(int index, int cookTimeTotal) 设置烹饪某个物品所需的时间.void
从接口继承的方法 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.block.TileState
getPersistentDataContainer
-
方法详细资料
-
getSize
int getSize()- 返回:
- 物品栏大小
- 另请参阅:
-
getItem
- 参数:
index
- 物品所在的格子- 返回:
- 格子内的物品
- 另请参阅:
-
setItem
- 参数:
index
- 放置物品堆于哪个格子item
- 要放入的物品堆- 另请参阅:
-
getCookTime
int getCookTime(int index) 获取某个物品已被烹饪多久.原文:Get cook time. This is the amount of time the item has been cooking for.
- 参数:
index
- 物品槽位- 返回:
- 已烹饪时长
-
setCookTime
void setCookTime(int index, int cookTime) 设置某个物品已被烹饪多久.原文:Set cook time. This is the amount of time the item has been cooking for.
- 参数:
index
- 物品槽位cookTime
- 已烹饪时长
-
getCookTimeTotal
int getCookTimeTotal(int index) 获取烹饪某个物品所需的时间.原文:Get cook time total. This is the amount of time the item is required to cook for.
- 参数:
index
- 物品槽位- 返回:
- 烹饪总时长
-
setCookTimeTotal
void setCookTimeTotal(int index, int cookTimeTotal) 设置烹饪某个物品所需的时间.原文:Set cook time. This is the amount of time the item is required to cook for.
- 参数:
index
- 物品槽位cookTimeTotal
- 烹饪总时长
-