Added Immibis Microblock Support.
This commit is contained in:
parent
b86fb56999
commit
b96eb3ce33
4 changed files with 28 additions and 4 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -241,4 +241,9 @@ public class BlockCableBus extends AEBaseBlock
|
||||||
return nullCB;
|
return nullCB;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Immibis MB Support.
|
||||||
|
*/
|
||||||
|
boolean ImmibisMicroblocks_TransformableBlockMarker = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 );
|
||||||
|
|
||||||
|
|
|
@ -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();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue