cleanup
This commit is contained in:
parent
a2c80f201b
commit
3954cedea9
9 changed files with 31 additions and 28 deletions
|
@ -1,14 +0,0 @@
|
|||
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. */
|
||||
public List<String> getTerminalOuput();
|
||||
|
||||
/** Adds a string to the console. Server side only. */
|
||||
public boolean addToConsole(String msg);
|
||||
}
|
|
@ -3,10 +3,14 @@ package dark.api;
|
|||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraftforge.common.ForgeDirection;
|
||||
|
||||
/** Simple way to control the read-out display over several tools when they are used on the
|
||||
* tileEntity
|
||||
*
|
||||
* @author DarkGuardsman */
|
||||
public interface IToolReadOut
|
||||
{
|
||||
/** Grabs the message displayed to the user on right click of the machine with the pipe gauge
|
||||
*
|
||||
/** Grabs the message displayed to the user on right click of the machine with the given tool
|
||||
*
|
||||
* @param user
|
||||
* @param side - may not work correctly yet but should give you a side
|
||||
* @return - a string to be displayed to the player for a reading. automatically adds ReadOut:
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
package dark.api;
|
||||
package dark.core.prefab.access;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import dark.core.prefab.access.AccessLevel;
|
||||
import dark.core.prefab.access.UserAccess;
|
||||
|
||||
/** Used by any object that needs to restrict access to it by a set of usernames
|
||||
*
|
|
@ -4,8 +4,7 @@ import java.util.ArrayList;
|
|||
import java.util.List;
|
||||
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import dark.api.ISpecialAccess;
|
||||
import dark.api.ITerminal;
|
||||
import dark.core.prefab.access.ISpecialAccess;
|
||||
|
||||
public class CommandHelp extends TerminalCommand
|
||||
{
|
||||
|
|
|
@ -4,7 +4,6 @@ import java.util.ArrayList;
|
|||
import java.util.List;
|
||||
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import dark.api.ITerminal;
|
||||
|
||||
/** @author Calclavia, DarkGuardsman */
|
||||
public class CommandRegistry
|
||||
|
|
|
@ -4,9 +4,8 @@ import java.util.ArrayList;
|
|||
import java.util.List;
|
||||
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import dark.api.ISpecialAccess;
|
||||
import dark.api.ITerminal;
|
||||
import dark.core.prefab.access.AccessLevel;
|
||||
import dark.core.prefab.access.ISpecialAccess;
|
||||
|
||||
public class CommandUser extends TerminalCommand
|
||||
{
|
||||
|
|
20
src/dark/core/prefab/terminal/ITerminal.java
Normal file
20
src/dark/core/prefab/terminal/ITerminal.java
Normal file
|
@ -0,0 +1,20 @@
|
|||
package dark.core.prefab.terminal;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import dark.core.interfaces.IScroll;
|
||||
import dark.core.prefab.access.ISpecialAccess;
|
||||
|
||||
/** Basic methods to make it easier to construct or interact with a terminal based tile. Recommend to
|
||||
* be used by tiles that want to mimic computer command line like interfaces. As well to restrict
|
||||
* access to the tile in the same way a computer would
|
||||
*
|
||||
* @author DarkGuardsmsan */
|
||||
public interface ITerminal extends ISpecialAccess, IScroll
|
||||
{
|
||||
/** Gets an output of the string stored in the console. */
|
||||
public List<String> getTerminalOuput();
|
||||
|
||||
/** Adds a string to the console. Server side only. */
|
||||
public boolean addToConsole(String msg);
|
||||
}
|
|
@ -3,8 +3,7 @@ package dark.core.prefab.terminal;
|
|||
import java.util.List;
|
||||
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import dark.api.ISpecialAccess;
|
||||
import dark.api.ITerminal;
|
||||
import dark.core.prefab.access.ISpecialAccess;
|
||||
|
||||
/** @author Calclavia, DarkGuardsman */
|
||||
public abstract class TerminalCommand
|
||||
|
|
|
@ -19,11 +19,10 @@ 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.api.ISpecialAccess;
|
||||
import dark.api.ITerminal;
|
||||
import dark.core.network.PacketHandler;
|
||||
import dark.core.prefab.TileEntityMachine;
|
||||
import dark.core.prefab.access.AccessLevel;
|
||||
import dark.core.prefab.access.ISpecialAccess;
|
||||
import dark.core.prefab.access.UserAccess;
|
||||
|
||||
/** @author Calclavia, DarkGuardsman */
|
||||
|
|
Loading…
Reference in a new issue