/*
 * ******************************************************************************
 *  Copyright 2011-2015 CovertJaguar
 *
 *  This work (the API) is licensed under the "MIT" License, see LICENSE.md for details.
 * ***************************************************************************
 */

package mods.railcraft.api.core;

import net.minecraft.world.IBlockAccess;
import net.minecraftforge.common.util.ForgeDirection;

/**
 * If you want your block to connect (or not connect) to posts, implement this
 * interface.
 *
 * The result takes priority over any other rules.
 *
 * @author CovertJaguar <http://www.railcraft.info>
 */
public interface IPostConnection {

    public enum ConnectStyle {

        NONE,
        SINGLE_THICK,
        TWO_THIN,
    }

    /**
     * Return the ConnectStyle that should be used if the block at this location
     * connects to a post.
     *
     * @param world The World
     * @param x x-Coord
     * @param y y-Coord
     * @param z z-Coord
     * @param side Side to connect to
     * @return true if connect
     */
    public ConnectStyle connectsToPost(IBlockAccess world, int x, int y, int z, ForgeDirection side);

}

@@ -350,25 +350,20 @@
 aft.
-world.IBlockAcces
+util.BlockPo
 s;%0Ai
@@ -385,40 +385,65 @@
 raft
-forge.common.util.ForgeDirection
+.util.EnumFacing;%0Aimport net.minecraft.world.IBlockAccess
 ;%0A%0A/
@@ -536,24 +536,29 @@
 nterface.%0A *
+ %3Cp/%3E
 %0A * The resu
@@ -696,23 +696,16 @@
  %7B%0A%0A    
-public 
 enum Con
@@ -949,65 +949,26 @@
 ram 
-x x-Coord%0A     * @param y y-Coord%0A     * @param z z-Coord
+pos Block Position
 %0A   
@@ -983,16 +983,17 @@
 am side 
+ 
 Side to 
@@ -1105,43 +1105,32 @@
 ld, 
-int x, int y, int z, ForgeDirection
+BlockPos pos, EnumFacing
  sid

Fix IPostConnection