@Override
public void isGoodForInterior() throws MultiblockValidationException {
// Check above and below. Above must be fuel rod or control rod.
TileEntity entityAbove = this.worldObj.getTileEntity(xCoord, yCoord + 1, zCoord);
if(!(entityAbove instanceof TileEntityReactorFuelRod || entityAbove instanceof TileEntityReactorControlRod)) {
throw new MultiblockValidationException(String.format("Fuel rod at %d, %d, %d must be part of a vertical column that reaches the entire height of the reactor, with a control rod on top.", xCoord, yCoord, zCoord));
}
// Below must be fuel rod or the base of the reactor.
TileEntity entityBelow = this.worldObj.getTileEntity(xCoord, yCoord - 1, zCoord);
if(entityBelow instanceof TileEntityReactorFuelRod) {
return;
}
else if(entityBelow instanceof RectangularMultiblockTileEntityBase) {
((RectangularMultiblockTileEntityBase)entityBelow).isGoodForBottom();
return;
}
throw new MultiblockValidationException(String.format("Fuel rod at %d, %d, %d must be part of a vertical column that reaches the entire height of the reactor, with a control rod on top.", xCoord, yCoord, zCoord));
}