Class Torch

All Implemented Interfaces:
Cloneable, Attachable, Directional
Direct Known Subclasses:
RedstoneTorch

@Deprecated(since="1.13", forRemoval=true) public class Torch extends SimpleAttachableMaterialData
Deprecated, for removal: This API element is subject to removal in a future version.
all usage of MaterialData is deprecated and subject to removal. Use BlockData.
MaterialData for torches
  • Constructor Details

    • Torch

      public Torch()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • Torch

      public Torch(Material type)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • Torch

      @Deprecated(since="1.6.2") public Torch(Material type, byte data)
      Deprecated.
      Magic value
      Parameters:
      type - the type
      data - the raw data value
  • Method Details

    • getAttachedFace

      public BlockFace getAttachedFace()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the face that this block is attached on
      Returns:
      BlockFace attached to
    • setFacingDirection

      public void setFacingDirection(BlockFace face)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: Directional
      Sets the direction that this block is facing in
      Parameters:
      face - The facing direction
    • clone

      public Torch clone()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      clone in class SimpleAttachableMaterialData