package erogenousbeef.bigreactors.common.multiblock.tileentity.creative;

import net.minecraftforge.fluids.FluidRegistry;
import net.minecraftforge.fluids.FluidStack;
import erogenousbeef.bigreactors.common.multiblock.MultiblockReactor;
import erogenousbeef.bigreactors.common.multiblock.interfaces.ITickableMultiblockPart;
import erogenousbeef.bigreactors.common.multiblock.tileentity.TileEntityReactorCoolantPort;

public class TileEntityReactorCreativeCoolantPort extends TileEntityReactorCoolantPort implements ITickableMultiblockPart {

	public TileEntityReactorCreativeCoolantPort() {
		super();
	}

	@Override
	public void onMultiblockServerTick() {
		if(!isConnected()) { return; }
		
		MultiblockReactor reactor = getReactorController();

		if(isInlet()) {
			reactor.getCoolantContainer().addCoolant(new FluidStack(FluidRegistry.WATER, 100));
		}
		else {
			reactor.getCoolantContainer().emptyVapor();
		}
	}
	
	public void forceAddWater() {
		if(!isConnected()) { return; }
		
		MultiblockReactor reactor = getReactorController();
		reactor.getCoolantContainer().addCoolant(new FluidStack(FluidRegistry.WATER, 1000));
	}
}

@@ -230,16 +230,93 @@
 eactor;%0A
+import erogenousbeef.bigreactors.common.multiblock.helpers.CoolantContainer;%0A
 import e
@@ -836,16 +836,126 @@
 et()) %7B%0A
+%09%09%09CoolantContainer cc = reactor.getCoolantContainer();%0A%09%09%09if(cc.getCoolantAmount() %3C cc.getCapacity())%0A%09%09%09%7B%0A%09
 %09%09%09react
@@ -1030,14 +1030,32 @@
 ER, 
-100));
+cc.getCapacity()));%0A%09%09%09%7D
 %0A%09%09%7D
@@ -1118,17 +1118,16 @@
 %0A%09%09%7D%0A%09%7D%0A
-%09
 %0A%09public

Fix #183: Creative coolant inlets now fill entire coolant tank each tick