Added MaterialData support for SAPPLING, POWERED_RAIL, and DETECTOR_RAIL.

This commit is contained in:
sunkid
2011-04-25 13:26:58 -07:00
committed by EvilSeph
parent 3081b6ad16
commit 51731221d0
7 changed files with 129 additions and 14 deletions

View File

@@ -0,0 +1,32 @@
package org.bukkit.material;
import org.bukkit.Material;
/**
* Represents a detector rail
*/
public class DetectorRail extends ExtendedRails implements PressureSensor {
public DetectorRail() {
super(Material.DETECTOR_RAIL);
}
public DetectorRail(final int type) {
super(type);
}
public DetectorRail(final Material type) {
super(type);
}
public DetectorRail(final int type, final byte data) {
super(type, data);
}
public DetectorRail(final Material type, final byte data) {
super(type, data);
}
public boolean isPressed() {
return (getData() & 0x8) == 0x8;
}
}