public abstract RailsState getState(Block block);
@Override
public void onUpdate(BlockMaterial oldMaterial, Block block) {
super.onUpdate(oldMaterial, block);
RailsState state = this.getState(block);
if (state.isSloped()) {
// Check if the facing side is still supporting
Block facing = block.translate(state.getDirections()[0]);
BlockMaterial att = facing.getMaterial();
if (att instanceof VanillaBlockMaterial) {
if (((VanillaBlockMaterial) att).canSupport(this, BlockFace.TOP)) {
return;
}