Moved api stuff around

This commit is contained in:
DarkGuardsman 2013-09-04 18:43:26 -04:00
parent b0e07865df
commit 08c51bf14d
22 changed files with 36 additions and 32 deletions

View file

@ -1,4 +1,4 @@
package dark.core.interfaces;
package dark.api;
/** This class should be applied to all tile entities (mainly machines) that can be disabled (by
* things like EMP, short circuit etc.).

View file

@ -1,4 +1,4 @@
package dark.core.interfaces;
package dark.api;
import java.util.List;

View file

@ -1,7 +1,9 @@
package dark.core.interfaces;
package dark.api;
import java.util.List;
import dark.core.interfaces.IScroll;
public interface ITerminal extends ISpecialAccess, IScroll
{
/** Gets an output of the string stored in the console. */

View file

@ -1,6 +1,6 @@
package dark.core.interfaces;
package dark.api;
import dark.core.interfaces.IToolReadOut.EnumTools;
import dark.api.IToolReadOut.EnumTools;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraftforge.common.ForgeDirection;

View file

@ -1,4 +1,4 @@
package dark.core.interfaces;
package dark.api.energy;
import net.minecraftforge.common.ForgeDirection;

View file

@ -1,4 +1,4 @@
package dark.core.interfaces;
package dark.api.energy;
import net.minecraftforge.common.ForgeDirection;

View file

@ -1,4 +1,4 @@
package dark.core.interfaces;
package dark.api.energy;
public interface IPowerLess
{

View file

@ -1,4 +1,6 @@
package dark.core.interfaces;
package dark.api.energy;
import dark.api.parts.ITileConnector;
/** A tileEntity that receives a pressure driven fluid. Suggested to use some of the class from
* net.minecraftforge.liquids too make your machine work with other fluid mods that don't use

View file

@ -1,4 +1,4 @@
package dark.core.interfaces;
package dark.api.energy;
import cpw.mods.fml.common.Loader;

View file

@ -1,4 +1,4 @@
package dark.core.interfaces;
package dark.api.parts;
import universalelectricity.core.block.IElectricalStorage;

View file

@ -1,4 +1,4 @@
package dark.core.interfaces;
package dark.api.parts;
import java.util.List;

View file

@ -20,9 +20,9 @@ import universalelectricity.core.block.IElectrical;
import universalelectricity.core.block.IElectricalStorage;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import dark.api.IToolReadOut;
import dark.api.IToolReadOut.EnumTools;
import dark.core.common.DarkMain;
import dark.core.interfaces.IToolReadOut;
import dark.core.interfaces.IToolReadOut.EnumTools;
import dark.core.prefab.helpers.FluidHelper;
import dark.core.prefab.items.ItemBasic;

View file

@ -10,8 +10,8 @@ import net.minecraftforge.common.Configuration;
import universalelectricity.prefab.block.BlockTile;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import dark.api.parts.INetworkPart;
import dark.core.common.DarkMain;
import dark.core.interfaces.INetworkPart;
/** Basic TileEntity Container class designed to be used by generic machines. It is suggested that
* each mod using this create there own basic block extending this to reduce need to input config

View file

@ -23,11 +23,11 @@ import com.google.common.io.ByteArrayDataInput;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import dark.core.interfaces.IDisableable;
import dark.api.IDisableable;
import dark.api.energy.IPowerLess;
import dark.api.energy.PowerSystems;
import dark.core.interfaces.IExternalInv;
import dark.core.interfaces.IInvBox;
import dark.core.interfaces.IPowerLess;
import dark.core.interfaces.PowerSystems;
import dark.core.prefab.invgui.InvChest;
/** Prefab for most machines in the CoreMachine set. Provides basic power updates, packet updates,

View file

@ -4,8 +4,8 @@ import java.util.ArrayList;
import java.util.List;
import net.minecraft.entity.player.EntityPlayer;
import dark.core.interfaces.ISpecialAccess;
import dark.core.interfaces.ITerminal;
import dark.api.ISpecialAccess;
import dark.api.ITerminal;
public class CommandHelp extends TerminalCommand
{

View file

@ -4,7 +4,7 @@ import java.util.ArrayList;
import java.util.List;
import net.minecraft.entity.player.EntityPlayer;
import dark.core.interfaces.ITerminal;
import dark.api.ITerminal;
/** @author Calclavia, DarkGuardsman */
public class CommandRegistry

View file

@ -4,8 +4,8 @@ import java.util.ArrayList;
import java.util.List;
import net.minecraft.entity.player.EntityPlayer;
import dark.core.interfaces.ISpecialAccess;
import dark.core.interfaces.ITerminal;
import dark.api.ISpecialAccess;
import dark.api.ITerminal;
import dark.core.prefab.access.AccessLevel;
public class CommandUser extends TerminalCommand

View file

@ -3,8 +3,8 @@ package dark.core.prefab.terminal;
import java.util.List;
import net.minecraft.entity.player.EntityPlayer;
import dark.core.interfaces.ISpecialAccess;
import dark.core.interfaces.ITerminal;
import dark.api.ISpecialAccess;
import dark.api.ITerminal;
/** @author Calclavia, DarkGuardsman */
public abstract class TerminalCommand

View file

@ -20,8 +20,8 @@ import com.google.common.io.ByteArrayDataInput;
import cpw.mods.fml.common.FMLLog;
import cpw.mods.fml.common.network.PacketDispatcher;
import cpw.mods.fml.common.network.Player;
import dark.core.interfaces.ISpecialAccess;
import dark.core.interfaces.ITerminal;
import dark.api.ISpecialAccess;
import dark.api.ITerminal;
import dark.core.prefab.TileEntityMachine;
import dark.core.prefab.access.AccessLevel;
import dark.core.prefab.access.UserAccess;

View file

@ -8,7 +8,7 @@ import net.minecraft.world.World;
import universalelectricity.core.path.IPathCallBack;
import universalelectricity.core.path.Pathfinder;
import universalelectricity.core.vector.Vector3;
import dark.core.interfaces.INetworkPart;
import dark.api.parts.INetworkPart;
/** Check if a conductor connects with another. */
public class NetworkPathFinder extends Pathfinder

View file

@ -2,9 +2,9 @@ package dark.core.prefab.tilenetwork;
import net.minecraft.tileentity.TileEntity;
import universalelectricity.core.block.IElectricalStorage;
import dark.core.interfaces.INetworkEnergyPart;
import dark.core.interfaces.INetworkPart;
import dark.core.interfaces.IPowerLess;
import dark.api.energy.IPowerLess;
import dark.api.parts.INetworkEnergyPart;
import dark.api.parts.INetworkPart;
/** Used for tile networks that only need to share power or act like a group battery that doesn't
* store power on world save

View file

@ -12,7 +12,7 @@ import universalelectricity.core.path.Pathfinder;
import universalelectricity.core.vector.Vector3;
import universalelectricity.core.vector.VectorHelper;
import cpw.mods.fml.common.FMLLog;
import dark.core.interfaces.INetworkPart;
import dark.api.parts.INetworkPart;
import dark.core.prefab.helpers.ConnectionHelper;
public abstract class NetworkTileEntities