类 Vine

所有已实现的接口:
Cloneable

public class Vine extends MaterialData
代表藤蔓
  • 构造器详细资料

    • Vine

      public Vine()
    • Vine

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

      @Deprecated public Vine(byte data)
      已过时。
      不安全的参数
      参数:
      data - the raw data value
    • Vine

      public Vine(BlockFace... faces)
    • Vine

      public Vine(EnumSet<BlockFace> faces)
  • 方法详细资料

    • isOnFace

      public boolean isOnFace(BlockFace face)
      检测藤蔓是否靠在与其相邻方块的表面. 你可以通过BlockFace.NORTH_EAST等一次检查两个表面.

      原文:Check if the vine is attached to the specified face of an adjacent block. You can check two faces at once by passing e.g. BlockFace.NORTH_EAST.

      参数:
      face - 朝向
      返回:
      藤蔓是否靠在那个表面
    • putOnFace

      public void putOnFace(BlockFace face)
      使这个藤蔓附着在相邻方块的指定表面.

      原文:Attach the vine to the specified face of an adjacent block.

      参数:
      face - 朝向
    • removeFromFace

      public void removeFromFace(BlockFace face)
      从相邻的方块的指定表面拆除藤蔓.

      原文:Detach the vine from the specified face of an adjacent block.

      参数:
      face - 朝向
    • toString

      public String toString()
      覆盖:
      toString 在类中 MaterialData
    • clone

      public Vine clone()
      覆盖:
      clone 在类中 MaterialData