Added Immibis Microblock Support.

This commit is contained in:
AlgorithmX2 2014-03-22 16:51:37 -05:00
parent b86fb56999
commit b96eb3ce33
4 changed files with 28 additions and 4 deletions

View file

@ -577,7 +577,8 @@ public class AEBaseBlock extends BlockContainer implements IAEFeature
} }
@Override @Override
final public void addCollisionBoxesToList(World w, int x, int y, int z, AxisAlignedBB bb, List out, Entity e) // NOTE: WAS FINAL, changed for Immibis
public void addCollisionBoxesToList(World w, int x, int y, int z, AxisAlignedBB bb, List out, Entity e)
{ {
ICustomCollision collisionHandler = null; ICustomCollision collisionHandler = null;

View file

@ -241,4 +241,9 @@ public class BlockCableBus extends AEBaseBlock
return nullCB; return nullCB;
} }
/**
* Immibis MB Support.
*/
boolean ImmibisMicroblocks_TransformableBlockMarker = true;
} }

View file

@ -112,7 +112,8 @@ public class AEBaseTile extends TileEntity implements IOrientable, ICommonTile,
} }
@Override @Override
final public void writeToNBT(NBTTagCompound data) // NOTE: WAS FINAL, changed for Immibis
public void writeToNBT(NBTTagCompound data)
{ {
super.writeToNBT( data ); super.writeToNBT( data );
@ -130,7 +131,8 @@ public class AEBaseTile extends TileEntity implements IOrientable, ICommonTile,
} }
@Override @Override
final public void readFromNBT(NBTTagCompound data) // NOTE: WAS FINAL, changed for Immibis
public void readFromNBT(NBTTagCompound data)
{ {
super.readFromNBT( data ); super.readFromNBT( data );

View file

@ -220,7 +220,7 @@ public class TileCableBus extends AEBaseTile implements AEMultiTile, ICustomColl
@Override @Override
public boolean isBlocked(ForgeDirection side) public boolean isBlocked(ForgeDirection side)
{ {
return false; return !ImmibisMicroblocks_isSideOpen( side.ordinal() );
} }
@Override @Override
@ -320,4 +320,20 @@ public class TileCableBus extends AEBaseTile implements AEMultiTile, ICustomColl
return cb.getLayerFlags(); return cb.getLayerFlags();
} }
/**
* Immibis MB Support
*/
boolean ImmibisMicroblocks_TransformableTileEntityMarker = true;
public boolean ImmibisMicroblocks_isSideOpen(int side)
{
return true;
}
public void ImmibisMicroblocks_onMicroblocksChanged()
{
cb.updateConnections();
}
} }