Class SimpleAttachableMaterialData

java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.SimpleAttachableMaterialData
All Implemented Interfaces:
Cloneable, Attachable, Directional
Direct Known Subclasses:
Button, Ladder, Lever, Torch, TrapDoor, TripwireHook

@Deprecated(forRemoval=true, since="1.13") public abstract class SimpleAttachableMaterialData extends MaterialData implements Attachable
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.
Simple utility class for attachable MaterialData subclasses
  • Constructor Details

    • SimpleAttachableMaterialData

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

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

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

    • getFacing

      public BlockFace getFacing()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: Directional
      Gets the direction this block is facing
      Specified by:
      getFacing in interface Directional
      Returns:
      the direction this block is facing
    • toString

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

      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      clone in class MaterialData