Class PressurePlate

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

@Deprecated(since="1.13", forRemoval=true) 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 Link icon

    • PressurePlate Link icon

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

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

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

    • isPressed Link icon

      public boolean isPressed()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      isPressed in interface PressureSensor
    • toString Link icon

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

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