net.minecraft.src.forge
Interface IConnectRedstone


public interface IConnectRedstone

This interface is to be implemented by Block classes. It will override standard algorithms controlling connection between two blocks by redstone

See Also:
Block

Method Summary
 boolean canConnectRedstone(net.minecraft.src.IBlockAccess iba, int i, int j, int k, int dir)
          When this returns false, the block at location i, j, k cannot make a redstone connection in the direction given in parameter, otherwise it can.
 

Method Detail

canConnectRedstone

boolean canConnectRedstone(net.minecraft.src.IBlockAccess iba,
                           int i,
                           int j,
                           int k,
                           int dir)
When this returns false, the block at location i, j, k cannot make a redstone connection in the direction given in parameter, otherwise it can. Use to control which sides are inputs and outputs for redstone wires.