Class DirectionalContainer

java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.DirectionalContainer
All Implemented Interfaces:
Cloneable, Directional
Direct Known Subclasses:
Chest, EnderChest, FurnaceAndDispenser

@Deprecated(forRemoval=true, since="1.13") public class DirectionalContainer extends MaterialData implements Directional
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 furnace or a dispenser.
  • Constructor Details

    • DirectionalContainer

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

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

    • 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
      Specified by:
      setFacingDirection in interface Directional
      Parameters:
      face - The facing direction
    • 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

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