类 FlowerPot

java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.FlowerPot
所有已实现的接口:
Cloneable

@Deprecated(since="1.9.4") public class FlowerPot extends MaterialData
已过时。
all usage of MaterialData is deprecated and subject to removal. Use BlockData.
代表一个花盆。
  • 构造器详细资料

    • FlowerPot

      public FlowerPot()
      已过时。
      花盆的默认构造方法。

      原文:Default constructor for a flower pot.

    • FlowerPot

      public FlowerPot(Material type)
      已过时。
    • FlowerPot

      @Deprecated(since="1.6.2") public FlowerPot(Material type, byte data)
      已过时。
      Magic value
      参数:
      type - the type
      data - the raw data value
  • 方法详细资料

    • getContents

      public MaterialData getContents()
      已过时。
      获取花盆中的物品。

      原文:Get the material in the flower pot

      返回:
      material MaterialData for the block currently in the flower pot or null if empty
    • setContents

      public void setContents(MaterialData materialData)
      已过时。
      设置花盆中的物品。

      原文:Set the contents of the flower pot

      参数:
      materialData - MaterialData of the block to put in the flower pot.
    • toString

      public String toString()
      已过时。
      覆盖:
      toString 在类中 MaterialData
    • clone

      public FlowerPot clone()
      已过时。
      覆盖:
      clone 在类中 MaterialData