Created an interface for debug blocks
For later use mainly
This commit is contained in:
parent
2a1b375597
commit
dae3de5f57
4 changed files with 37 additions and 4 deletions
9
src/dark/core/common/debug/IDebugTile.java
Normal file
9
src/dark/core/common/debug/IDebugTile.java
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
package dark.core.common.debug;
|
||||||
|
|
||||||
|
import dark.core.interfaces.IBlockActivated;
|
||||||
|
|
||||||
|
public interface IDebugTile extends IBlockActivated
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -1,9 +1,10 @@
|
||||||
package dark.core.common.debug;
|
package dark.core.common.debug;
|
||||||
|
|
||||||
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
import net.minecraftforge.common.ForgeDirection;
|
import net.minecraftforge.common.ForgeDirection;
|
||||||
import dark.core.prefab.machine.TileEntityEnergyMachine;
|
import dark.core.prefab.machine.TileEntityEnergyMachine;
|
||||||
|
|
||||||
public class TileEntityInfLoad extends TileEntityEnergyMachine
|
public class TileEntityInfLoad extends TileEntityEnergyMachine implements IDebugTile
|
||||||
{
|
{
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -52,4 +53,11 @@ public class TileEntityInfLoad extends TileEntityEnergyMachine
|
||||||
return Integer.MAX_VALUE;
|
return Integer.MAX_VALUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean onActivated(EntityPlayer entityPlayer)
|
||||||
|
{
|
||||||
|
// TODO Auto-generated method stub
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,10 +2,11 @@ package dark.core.common.debug;
|
||||||
|
|
||||||
import java.util.EnumSet;
|
import java.util.EnumSet;
|
||||||
|
|
||||||
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
import net.minecraftforge.common.ForgeDirection;
|
import net.minecraftforge.common.ForgeDirection;
|
||||||
import dark.core.prefab.machine.TileEntityEnergyMachine;
|
import dark.core.prefab.machine.TileEntityEnergyMachine;
|
||||||
|
|
||||||
public class TileEntityInfSupply extends TileEntityEnergyMachine
|
public class TileEntityInfSupply extends TileEntityEnergyMachine implements IDebugTile
|
||||||
{
|
{
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -61,4 +62,11 @@ public class TileEntityInfSupply extends TileEntityEnergyMachine
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean onActivated(EntityPlayer entityPlayer)
|
||||||
|
{
|
||||||
|
// TODO Auto-generated method stub
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,6 +2,7 @@ package dark.core.common.debug;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
|
||||||
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
import net.minecraftforge.common.ForgeDirection;
|
import net.minecraftforge.common.ForgeDirection;
|
||||||
import net.minecraftforge.fluids.Fluid;
|
import net.minecraftforge.fluids.Fluid;
|
||||||
|
@ -11,9 +12,9 @@ import net.minecraftforge.fluids.FluidTankInfo;
|
||||||
import net.minecraftforge.fluids.IFluidHandler;
|
import net.minecraftforge.fluids.IFluidHandler;
|
||||||
|
|
||||||
/** Designed to debug fluid devices by draining everything that comes in at one time
|
/** Designed to debug fluid devices by draining everything that comes in at one time
|
||||||
*
|
*
|
||||||
* @author DarkGuardsman */
|
* @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
|
//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>();
|
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() };
|
return new FluidTankInfo[] { this.tank.getInfo() };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean onActivated(EntityPlayer entityPlayer)
|
||||||
|
{
|
||||||
|
// TODO Auto-generated method stub
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue