Class RedstoneTorch

All Implemented Interfaces:
Cloneable, Attachable, Directional, Redstone

@Deprecated(forRemoval=true, since="1.13") public class RedstoneTorch extends Torch implements Redstone
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.
Represents a redstone torch
  • Constructor Details

    • RedstoneTorch

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

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

      @Deprecated public RedstoneTorch(Material type, byte data)
      Deprecated.
      Magic value
      Parameters:
      type - the type
      data - the raw data value
  • Method Details

    • isPowered

      public boolean isPowered()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the current state of this Material, indicating if it's powered or unpowered
      Specified by:
      isPowered in interface Redstone
      Returns:
      true if powered, otherwise false
    • toString

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

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