类 CocoaPlant

java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.CocoaPlant
所有已实现的接口:
Cloneable, Attachable, Directional

@Deprecated(since="1.14.1") public class CocoaPlant extends MaterialData implements Directional, Attachable
已过时。
所有 MaterialData 的用法均已弃用并可能被移除。 请使用 BlockData。
代表可可植物。
  • 构造器详细资料

  • 方法详细资料

    • getSize

      public CocoaPlant.CocoaPlantSize getSize()
      已过时。
      获取植物的大小。
      返回:
      大小

      原文:Get size of plant

    • setSize

      public void setSize(CocoaPlant.CocoaPlantSize sz)
      已过时。
      设置植物的大小。
      参数:
      sz - 植物的大小

      原文:Set size of plant

    • getAttachedFace

      public BlockFace getAttachedFace()
      已过时。
      从接口复制的说明: Attachable
      获取此方块附着的面.

      原文: Gets the face that this block is attached on

      指定者:
      getAttachedFace 在接口中 Attachable
      返回:
      附着的面
    • setFacingDirection

      public void setFacingDirection(BlockFace face)
      已过时。
      从接口复制的说明: Directional
      设置此方块的朝向.

      原文: Sets the direction that this block is facing in

      指定者:
      setFacingDirection 在接口中 Directional
      参数:
      face - 朝向
    • getFacing

      public BlockFace getFacing()
      已过时。
      从接口复制的说明: Directional
      获取此方块的朝向.

      原文: Gets the direction this block is facing

      指定者:
      getFacing 在接口中 Directional
      返回:
      此方块的朝向
    • clone

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

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