1 package org.bukkit.material;
3 import org.bukkit.Material;
4 import org.bukkit.block.BlockFace;
23 public Rails(
final int type,
final byte data) {
37 return (d == 0x2 || d == 0x3 || d == 0x4 || d == 0x5);
46 return (d == 0x6 || d == 0x7 || d == 0x8 || d == 0x9);
120 setData((byte) (isOnSlope ? 0x2 : 0x1));
124 setData((byte) (isOnSlope ? 0x3 : 0x1));
128 setData((byte) (isOnSlope ? 0x4 : 0x0));
132 setData((byte) (isOnSlope ? 0x5 : 0x0));