Minor changes to fluid channel code
This commit is contained in:
parent
7ba1c1c52e
commit
db8f2546f7
3 changed files with 8 additions and 3 deletions
|
@ -57,7 +57,6 @@ public class BlockChannel extends BlockFluidNetwork
|
||||||
{
|
{
|
||||||
return FluidUtility.playerActivatedFluidItem(world, x, y, z, entityplayer, side);
|
return FluidUtility.playerActivatedFluidItem(world, x, y, z, entityplayer, side);
|
||||||
}
|
}
|
||||||
|
|
||||||
return super.onMachineActivated(world, x, y, z, entityplayer, side, hitX, hitY, hitZ);
|
return super.onMachineActivated(world, x, y, z, entityplayer, side, hitX, hitY, hitZ);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,7 @@ import net.minecraft.entity.player.EntityPlayer;
|
||||||
import net.minecraft.nbt.NBTTagCompound;
|
import net.minecraft.nbt.NBTTagCompound;
|
||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
import net.minecraftforge.common.ForgeDirection;
|
import net.minecraftforge.common.ForgeDirection;
|
||||||
|
import net.minecraftforge.fluids.FluidContainerRegistry;
|
||||||
import net.minecraftforge.fluids.FluidStack;
|
import net.minecraftforge.fluids.FluidStack;
|
||||||
import net.minecraftforge.fluids.IFluidHandler;
|
import net.minecraftforge.fluids.IFluidHandler;
|
||||||
import resonantinduction.api.mechanical.fluid.IFluidConnector;
|
import resonantinduction.api.mechanical.fluid.IFluidConnector;
|
||||||
|
@ -19,6 +20,11 @@ import calclavia.lib.utility.WrenchUtility;
|
||||||
public class TileChannel extends TileFluidNetwork implements IBlockActivate, IFluidPipe
|
public class TileChannel extends TileFluidNetwork implements IBlockActivate, IFluidPipe
|
||||||
{
|
{
|
||||||
private boolean isExtracting = false;
|
private boolean isExtracting = false;
|
||||||
|
|
||||||
|
public TileChannel()
|
||||||
|
{
|
||||||
|
this.getInternalTank().setCapacity(1 * FluidContainerRegistry.BUCKET_VOLUME);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void updateEntity()
|
public void updateEntity()
|
||||||
|
@ -67,7 +73,7 @@ public class TileChannel extends TileFluidNetwork implements IBlockActivate, IFl
|
||||||
{
|
{
|
||||||
if (tileEntity instanceof TileChannel)
|
if (tileEntity instanceof TileChannel)
|
||||||
{
|
{
|
||||||
getNetwork().merge(((IFluidConnector) tileEntity).getNetwork());
|
getNetwork().merge(((TileChannel) tileEntity).getNetwork());
|
||||||
this.setRenderSide(side, true);
|
this.setRenderSide(side, true);
|
||||||
connectedBlocks[side.ordinal()] = tileEntity;
|
connectedBlocks[side.ordinal()] = tileEntity;
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,7 +38,7 @@ public abstract class FluidNetwork extends NodeNetwork<IFluidNetwork, IFluidConn
|
||||||
@Override
|
@Override
|
||||||
public void update()
|
public void update()
|
||||||
{
|
{
|
||||||
|
//TODO change to distribute fluid
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue