程序包 org.bukkit.block
接口 FlowerPot
- 所有超级接口:
BlockState
,Metadatable
Represents a captured state of a flower pot.
-
方法概要
修饰符和类型方法说明Gets the item present in this flower pot.void
setContents
(MaterialData item) Sets the item present in this flower pot.从接口继承的方法 org.bukkit.block.BlockState
getBlock, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getTypeId, getWorld, getX, getY, getZ, isPlaced, setData, setRawData, setType, setTypeId, update, update, update
从接口继承的方法 org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
-
方法详细资料
-
getContents
MaterialData getContents()Gets the item present in this flower pot.- 返回:
- item present, or null for empty.
-
setContents
Sets the item present in this flower pot. NOTE: The Vanilla Minecraft client will currently not refresh this until a block update is triggered.- 参数:
item
- new item, or null for empty.
-