Hbm-s-Nuclear-Tech-GIT/src/main/java/api/hbm/energymk2/IEnergyConnectorBlock.java
2024-04-09 16:55:53 +02:00

25 lines
636 B
Java

package api.hbm.energymk2;
import net.minecraft.world.IBlockAccess;
import net.minecraftforge.common.util.ForgeDirection;
/**
* Interface for all blocks that should visually connect to cables without having an IEnergyConnector tile entity.
* This is meant for BLOCKS
* @author hbm
*
*/
public interface IEnergyConnectorBlock {
/**
* Same as IEnergyConnector's method but for regular blocks that might not even have TEs. Used for rendering only!
* @param world
* @param x
* @param y
* @param z
* @param dir
* @return
*/
public boolean canConnect(IBlockAccess world, int x, int y, int z, ForgeDirection dir);
}