Class PressurePlate

java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.PressurePlate
All Implemented Interfaces:
Cloneable, PressureSensor

@Deprecated(forRemoval=true, since="1.13") public class PressurePlate extends MaterialData implements PressureSensor
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 pressure plate
  • Constructor Details

    • PressurePlate

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

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

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

    • isPressed

      public boolean isPressed()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      isPressed in interface PressureSensor
    • 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 PressurePlate clone()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      clone in class MaterialData