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 PressurePlateclone()booleanisPressed()java.lang.StringtoString()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:
isPressedin interfacePressureSensor
-
toString
public java.lang.String toString()- Overrides:
toStringin classMaterialData
-
clone
- Overrides:
clonein classMaterialData
-