Created an interface for debug blocks

For later use mainly
This commit is contained in:
DarkGuardsman 2013-09-23 13:34:43 -04:00
parent 2a1b375597
commit dae3de5f57
4 changed files with 37 additions and 4 deletions

View file

@ -0,0 +1,9 @@
package dark.core.common.debug;
import dark.core.interfaces.IBlockActivated;
public interface IDebugTile extends IBlockActivated
{
}

View file

@ -1,9 +1,10 @@
package dark.core.common.debug;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraftforge.common.ForgeDirection;
import dark.core.prefab.machine.TileEntityEnergyMachine;
public class TileEntityInfLoad extends TileEntityEnergyMachine
public class TileEntityInfLoad extends TileEntityEnergyMachine implements IDebugTile
{
@Override
@ -52,4 +53,11 @@ public class TileEntityInfLoad extends TileEntityEnergyMachine
return Integer.MAX_VALUE;
}
@Override
public boolean onActivated(EntityPlayer entityPlayer)
{
// TODO Auto-generated method stub
return false;
}
}

View file

@ -2,10 +2,11 @@ package dark.core.common.debug;
import java.util.EnumSet;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraftforge.common.ForgeDirection;
import dark.core.prefab.machine.TileEntityEnergyMachine;
public class TileEntityInfSupply extends TileEntityEnergyMachine
public class TileEntityInfSupply extends TileEntityEnergyMachine implements IDebugTile
{
@Override
@ -61,4 +62,11 @@ public class TileEntityInfSupply extends TileEntityEnergyMachine
return 0;
}
@Override
public boolean onActivated(EntityPlayer entityPlayer)
{
// TODO Auto-generated method stub
return false;
}
}

View file

@ -2,6 +2,7 @@ package dark.core.common.debug;
import java.util.HashMap;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.tileentity.TileEntity;
import net.minecraftforge.common.ForgeDirection;
import net.minecraftforge.fluids.Fluid;
@ -11,9 +12,9 @@ import net.minecraftforge.fluids.FluidTankInfo;
import net.minecraftforge.fluids.IFluidHandler;
/** Designed to debug fluid devices by draining everything that comes in at one time
*
*
* @author DarkGuardsman */
public class TileEntityVoid extends TileEntity implements IFluidHandler
public class TileEntityVoid extends TileEntity implements IFluidHandler, IDebugTile
{
//TODO later add to this to make it actually have an ingame use other than debug
public static HashMap<FluidStack, Long> storage = new HashMap<FluidStack, Long>();
@ -61,4 +62,11 @@ public class TileEntityVoid extends TileEntity implements IFluidHandler
return new FluidTankInfo[] { this.tank.getInfo() };
}
@Override
public boolean onActivated(EntityPlayer entityPlayer)
{
// TODO Auto-generated method stub
return false;
}
}