类 Torch

所有已实现的接口:
Cloneable, Attachable, Directional
直接已知子类:
RedstoneTorch

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

    • Torch

      public Torch()
      已过时。
    • Torch

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

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

      原文:Magic value

      参数:
      type - 物品类型
      data - 原始数据值
  • 方法详细资料

    • getAttachedFace

      public BlockFace getAttachedFace()
      已过时。
      获取此方块所附着的面。
      返回:
      附着的 BlockFace

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

    • setFacingDirection

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

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

      参数:
      face - 朝向
    • clone

      public Torch clone()
      已过时。
      覆盖:
      clone 在类中 SimpleAttachableMaterialData