程序包 org.bukkit.block

接口 FlowerPot

所有超级接口:
BlockState, Metadatable

public interface FlowerPot extends BlockState
Represents a captured state of a flower pot.
  • 方法详细资料

    • getContents

      MaterialData getContents()
      Gets the item present in this flower pot.
      返回:
      item present, or null for empty.
    • setContents

      void setContents(MaterialData item)
      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.