类 Vine

所有已实现的接口:
Cloneable

@Deprecated(since="1.14.1") public class Vine extends MaterialData
已过时。
所有 MaterialData 的用法都已弃用并可能被移除。 请使用 BlockData。
代表藤蔓。
  • 构造器详细资料

    • Vine

      public Vine()
      已过时。
    • Vine

      @Deprecated(since="1.6.2") public Vine(Material type, byte data)
      已过时。
      魔法值

      原文:Magic value

      参数:
      type - 物品类型
      data - 原始数据值
    • Vine

      @Deprecated(since="1.6.2") public Vine(byte data)
      已过时。
      魔法值

      原文:Magic value

      参数:
      data - 原始数据值
    • Vine

      public Vine(BlockFace... faces)
      已过时。
    • Vine

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

    • isOnFace

      public boolean isOnFace(BlockFace face)
      已过时。
      检查藤蔓是否附着在相邻方块的指定面上。 你可以通过传递例如 BlockFace.NORTH_EAST 来同时检查两个面。
      参数:
      face - 要检查的面。
      返回:
      是否附着在该面上。

      原文: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.

    • putOnFace

      public void putOnFace(BlockFace face)
      已过时。
      将藤蔓附着到相邻方块的指定面上。
      参数:
      face - 要附着的面。

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

    • removeFromFace

      public void removeFromFace(BlockFace face)
      已过时。
      将藤蔓从相邻方块的指定面上分离。
      参数:
      face - 要分离的面。

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

    • toString

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

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