类 Torch

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

public class Torch extends SimpleAttachableMaterialData
代表火把
  • 构造器详细资料

    • Torch

      public Torch()
    • Torch

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

      public Torch(Material type)
    • Torch

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

      @Deprecated public Torch(Material type, byte data)
      已过时。
      不安全的参数
      参数:
      type - the type
      data - the raw data value
  • 方法详细资料

    • getAttachedFace

      public BlockFace getAttachedFace()
      获取这个火把附着的朝向.

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