类 CocoaPlant

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

public class CocoaPlant extends MaterialData implements Directional, Attachable
代表可可豆
  • 构造器详细资料

    • CocoaPlant

      public CocoaPlant()
    • CocoaPlant

      @Deprecated public CocoaPlant(int type)
      已过时。
      不安全的参数
      参数:
      type - the raw type id
    • CocoaPlant

      @Deprecated public CocoaPlant(int type, byte data)
      已过时。
      不安全的参数
      参数:
      type - the raw type id
      data - the raw data value
    • CocoaPlant

      public CocoaPlant(CocoaPlant.CocoaPlantSize sz)
    • CocoaPlant

      public CocoaPlant(CocoaPlant.CocoaPlantSize sz, BlockFace dir)
  • 方法详细资料

    • getSize

      public CocoaPlant.CocoaPlantSize getSize()
      获取这个可可豆的体积.

      原文:Get size of plant

      返回:
      体积
    • setSize

      public void setSize(CocoaPlant.CocoaPlantSize sz)
      设置这个可可豆的体积.

      原文:Set size of plant

      参数:
      sz - 体积
    • 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