Package org.bukkit.material
Class PressurePlate
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.PressurePlate
- All Implemented Interfaces:
java.lang.Cloneable
,PressureSensor
public class PressurePlate extends MaterialData implements PressureSensor
Represents a pressure plate
-
Constructor Summary
Constructors Constructor Description PressurePlate()
PressurePlate(int type)
Deprecated.Magic valuePressurePlate(int type, byte data)
Deprecated.Magic valuePressurePlate(Material type)
PressurePlate(Material type, byte data)
Deprecated.Magic value -
Method Summary
Modifier and Type Method Description PressurePlate
clone()
boolean
isPressed()
java.lang.String
toString()
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
-
Constructor Details
-
PressurePlate
public PressurePlate() -
PressurePlate
@Deprecated public PressurePlate(int type)Deprecated.Magic value- Parameters:
type
- the raw type id
-
PressurePlate
-
PressurePlate
@Deprecated public PressurePlate(int type, byte data)Deprecated.Magic value- Parameters:
type
- the raw type iddata
- the raw data value
-
PressurePlate
Deprecated.Magic value- Parameters:
type
- the typedata
- the raw data value
-
-
Method Details
-
isPressed
public boolean isPressed()- Specified by:
isPressed
in interfacePressureSensor
-
toString
public java.lang.String toString()- Overrides:
toString
in classMaterialData
-
clone
- Overrides:
clone
in classMaterialData
-