Allow connectable blocks to choose what they can connect to (#3437)

This commit is contained in:
LogicTechCorp authored and LexManos committed 2016-11-30 17:51:36 -08:00
1 parent 249c468a75
commit 0b9988bf45
5 files changed
+152 -6

No files matched your search

@@ -197,7 +197,7 @@
public SoundType func_185467_w()
{
return this.field_149762_H;
@@ -908,6 +932,1153 @@
@@ -908,6 +932,1166 @@
{
}
@@ -1346,12 +1346,25 @@
+ return func_180642_a(world, pos, facing, hitX, hitY, hitZ, meta, placer);
+ }
+
+ /**
+ * Determines if another block can connect to this block
+ *
+ * @param world The current world
+ * @param pos The position of this block
+ * @param facing The side the connecting block is on
+ * @return True to allow another block to connect to this block
+ */
+ public boolean canBeConnectedTo(IBlockAccess world, BlockPos pos, EnumFacing facing)
+ {
+ return false;
+ }
+
+ /* ========================================= FORGE END ======================================*/
+
public static void func_149671_p()
{
func_176215_a(0, field_176230_a, (new BlockAir()).func_149663_c("air"));
@@ -1201,14 +2372,7 @@
@@ -1201,14 +2385,7 @@
}
else
{