2015-07-15 00:46:29 -04:00
|
|
|
package com.cricketcraft.chisel.api;
|
|
|
|
|
|
|
|
|
|
import net.minecraft.world.IBlockAccess;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* This extension of {@link IFacade} allows the block to say whether or not OTHER CTM blocks can connect to IT.
|
|
|
|
|
*/
|
2015-07-25 22:31:55 -04:00
|
|
|
public interface IConnectable {
|
2015-07-15 00:46:29 -04:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Determines whether other CTM blocks can connect to this one.
|
|
|
|
|
*
|
|
|
|
|
* @param world
|
2015-07-25 22:31:55 -04:00
|
|
|
* @param x The X position of the block that is connecting to this one. NOT the position of your block.
|
|
|
|
|
* @param y The Y position of the block that is connecting to this one. NOT the position of your block.
|
|
|
|
|
* @param z The Z position of the block that is connecting to this one. NOT the position of your block.
|
|
|
|
|
* @param side The side being drawn.
|
2015-07-15 00:46:29 -04:00
|
|
|
* @return True if a block can connect to this one from the given direction. False otherwise.
|
|
|
|
|
*/
|
2015-07-25 22:31:55 -04:00
|
|
|
boolean canConnectCTM(IBlockAccess world, int x, int y, int z, int side);
|
2015-07-15 00:46:29 -04:00
|
|
|
|
|
|
|
|
}
|