mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-18 11:39:14 +00:00
Add IConnectable for determining if other blocks can connect.
Version 2.5
This commit is contained in:
1 parent
4e27c8e93a
commit
7ca7c882fa
2 files changed
+25
-1
No files matched your search
+1
-1
@@ -1,4 +1,4 @@
|
||||
mod_version=2.4.1
|
||||
mod_version=2.5.0
|
||||
minecraft_version=1.7.10
|
||||
forge_version=10.13.4.1481-1.7.10
|
||||
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.cricketcraft.chisel.api;
|
||||
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
|
||||
/**
|
||||
* This extension of {@link IFacade} allows the block to say whether or not OTHER CTM blocks can connect to IT.
|
||||
*/
|
||||
public interface IConnectable extends IFacade {
|
||||
|
||||
/**
|
||||
* Determines whether other CTM blocks can connect to this one.
|
||||
*
|
||||
* @param world
|
||||
* @param x
|
||||
* @param y
|
||||
* @param z
|
||||
* @param from
|
||||
* The direction that the block is connecting from. This differes from the {@link IFacade} methods in that it is NOT the side which is being rendered.
|
||||
* @return True if a block can connect to this one from the given direction. False otherwise.
|
||||
*/
|
||||
boolean canConnectCTM(IBlockAccess world, int x, int y, int z, ForgeDirection from);
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user