Split up some external .* imports.

Dieser Commit ist enthalten in:
TomyLobo 2011-12-26 00:36:23 +01:00
Ursprung 4b47200f27
Commit 324a041e38
27 geänderte Dateien mit 139 neuen und 39 gelöschten Zeilen

Datei anzeigen

@ -18,6 +18,12 @@
package com.sk89q.bukkit.util; package com.sk89q.bukkit.util;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import com.sk89q.minecraft.util.commands.Command; import com.sk89q.minecraft.util.commands.Command;
import com.sk89q.util.ReflectionUtil; import com.sk89q.util.ReflectionUtil;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
@ -26,8 +32,6 @@ import org.bukkit.command.SimpleCommandMap;
import org.bukkit.event.Event; import org.bukkit.event.Event;
import org.bukkit.plugin.Plugin; import org.bukkit.plugin.Plugin;
import java.util.*;
/** /**
* @author zml2008 * @author zml2008
*/ */

Datei anzeigen

@ -22,7 +22,12 @@ package com.sk89q.minecraft.util.commands;
import java.lang.reflect.InvocationTargetException; import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method; import java.lang.reflect.Method;
import java.lang.reflect.Modifier; import java.lang.reflect.Modifier;
import java.util.*; import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.logging.Level; import java.util.logging.Level;
import java.util.logging.Logger; import java.util.logging.Logger;

Datei anzeigen

@ -25,7 +25,11 @@ import org.yaml.snakeyaml.constructor.SafeConstructor;
import org.yaml.snakeyaml.reader.UnicodeReader; import org.yaml.snakeyaml.reader.UnicodeReader;
import org.yaml.snakeyaml.representer.Representer; import org.yaml.snakeyaml.representer.Representer;
import java.io.*; import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;

Datei anzeigen

@ -19,7 +19,11 @@
package com.sk89q.wepif; package com.sk89q.wepif;
import java.util.*; import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import com.sk89q.util.yaml.YAMLNode; import com.sk89q.util.yaml.YAMLNode;
import com.sk89q.util.yaml.YAMLProcessor; import com.sk89q.util.yaml.YAMLProcessor;

Datei anzeigen

@ -22,7 +22,10 @@ package com.sk89q.worldedit;
import com.sk89q.jnbt.*; import com.sk89q.jnbt.*;
import com.sk89q.worldedit.blocks.*; import com.sk89q.worldedit.blocks.*;
import com.sk89q.worldedit.data.*; import com.sk89q.worldedit.data.*;
import java.io.*; import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Map; import java.util.Map;
import java.util.HashMap; import java.util.HashMap;
import java.util.ArrayList; import java.util.ArrayList;

Datei anzeigen

@ -19,16 +19,25 @@
package com.sk89q.worldedit; package com.sk89q.worldedit;
import java.util.*; import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.logging.Logger; import java.util.logging.Logger;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.io.*; import java.io.DataInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.Method; import java.lang.reflect.Method;
import javax.script.ScriptException; import javax.script.ScriptException;
import com.sk89q.minecraft.util.commands.*; import com.sk89q.minecraft.util.commands.*;
import com.sk89q.minecraft.util.commands.Console;
import com.sk89q.util.StringUtil; import com.sk89q.util.StringUtil;
import com.sk89q.worldedit.CuboidClipboard.FlipDirection; import com.sk89q.worldedit.CuboidClipboard.FlipDirection;

Datei anzeigen

@ -19,7 +19,7 @@
package com.sk89q.worldedit.bukkit; package com.sk89q.worldedit.bukkit;
import org.bukkit.*; import org.bukkit.Location;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.ItemStack;
import com.sk89q.util.StringUtil; import com.sk89q.util.StringUtil;

Datei anzeigen

@ -24,7 +24,11 @@ import java.util.List;
import com.sk89q.bukkit.util.CommandRegistration; import com.sk89q.bukkit.util.CommandRegistration;
import com.sk89q.minecraft.util.commands.Command; import com.sk89q.minecraft.util.commands.Command;
import org.bukkit.*;
import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.Server;
import org.bukkit.World;
import org.bukkit.entity.CreatureType; import org.bukkit.entity.CreatureType;
import com.sk89q.worldedit.LocalWorld; import com.sk89q.worldedit.LocalWorld;
import com.sk89q.worldedit.ServerInterface; import com.sk89q.worldedit.ServerInterface;

Datei anzeigen

@ -19,15 +19,17 @@
package com.sk89q.worldedit.bukkit; package com.sk89q.worldedit.bukkit;
import java.util.*; import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.bukkit.block.*; import org.bukkit.block.Block;
import org.bukkit.block.BlockFace;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.bukkit.Location; import org.bukkit.Location;
import org.bukkit.Server; import org.bukkit.Server;
import org.bukkit.World; import org.bukkit.World;
import com.sk89q.worldedit.*; import com.sk89q.worldedit.*;
import com.sk89q.worldedit.Vector;
public class BukkitUtil { public class BukkitUtil {
private BukkitUtil() { private BukkitUtil() {

Datei anzeigen

@ -19,7 +19,9 @@
package com.sk89q.worldedit.commands; package com.sk89q.worldedit.commands;
import java.io.*; import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.util.Set; import java.util.Set;
import com.sk89q.minecraft.util.commands.Command; import com.sk89q.minecraft.util.commands.Command;
import com.sk89q.minecraft.util.commands.CommandContext; import com.sk89q.minecraft.util.commands.CommandContext;

Datei anzeigen

@ -19,7 +19,7 @@
package com.sk89q.worldedit.data; package com.sk89q.worldedit.data;
import java.io.*; import java.io.IOException;
import com.sk89q.jnbt.*; import com.sk89q.jnbt.*;
import com.sk89q.worldedit.*; import com.sk89q.worldedit.*;

Datei anzeigen

@ -19,7 +19,11 @@
package com.sk89q.worldedit.data; package com.sk89q.worldedit.data;
import java.io.*; import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
/** /**
* Represents the chunk store used by Minecraft alpha. * Represents the chunk store used by Minecraft alpha.

Datei anzeigen

@ -23,7 +23,9 @@ import com.sk89q.jnbt.CompoundTag;
import com.sk89q.jnbt.NBTInputStream; import com.sk89q.jnbt.NBTInputStream;
import com.sk89q.jnbt.Tag; import com.sk89q.jnbt.Tag;
import com.sk89q.worldedit.*; import com.sk89q.worldedit.*;
import java.io.*; import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.Map; import java.util.Map;
import java.util.zip.GZIPInputStream; import java.util.zip.GZIPInputStream;

Datei anzeigen

@ -54,8 +54,13 @@
package com.sk89q.worldedit.data; package com.sk89q.worldedit.data;
import java.io.*; import java.io.ByteArrayInputStream;
import java.util.zip.*; import java.io.DataInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.zip.GZIPInputStream;
import java.util.zip.InflaterInputStream;
import com.sk89q.worldedit.Vector2D; import com.sk89q.worldedit.Vector2D;
/** /**

Datei anzeigen

@ -19,11 +19,14 @@
package com.sk89q.worldedit.data; package com.sk89q.worldedit.data;
import java.io.*; import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import java.util.zip.ZipException; import java.util.zip.ZipException;
import java.util.Enumeration; import java.util.Enumeration;
import de.schlichtherle.util.zip.*; import de.schlichtherle.util.zip.ZipEntry;
import de.schlichtherle.util.zip.ZipFile;
/** /**
* Represents the chunk store used by Minecraft alpha but zipped. Uses * Represents the chunk store used by Minecraft alpha but zipped. Uses

Datei anzeigen

@ -18,11 +18,14 @@
*/ */
package com.sk89q.worldedit.data; package com.sk89q.worldedit.data;
import java.io.*; import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import java.util.zip.ZipException; import java.util.zip.ZipException;
import java.util.Enumeration; import java.util.Enumeration;
import de.schlichtherle.util.zip.*; import de.schlichtherle.util.zip.ZipEntry;
import de.schlichtherle.util.zip.ZipFile;
/** /**
* Represents the chunk store used by Minecraft but zipped. Uses * Represents the chunk store used by Minecraft but zipped. Uses

Datei anzeigen

@ -19,9 +19,13 @@
package com.sk89q.worldedit.data; package com.sk89q.worldedit.data;
import java.io.*; import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import java.util.zip.*; import java.util.zip.ZipEntry;
import java.util.zip.ZipException;
import java.util.zip.ZipFile;
import java.util.Enumeration; import java.util.Enumeration;
/** /**

Datei anzeigen

@ -18,9 +18,13 @@
*/ */
package com.sk89q.worldedit.data; package com.sk89q.worldedit.data;
import java.io.*; import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import java.util.zip.*; import java.util.zip.ZipEntry;
import java.util.zip.ZipException;
import java.util.zip.ZipFile;
import java.util.Enumeration; import java.util.Enumeration;
/** /**

Datei anzeigen

@ -19,7 +19,10 @@
package com.sk89q.worldedit.dev; package com.sk89q.worldedit.dev;
import java.io.*; import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintStream;
import java.lang.reflect.Method; import java.lang.reflect.Method;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;

Datei anzeigen

@ -19,7 +19,10 @@
package com.sk89q.worldedit.scripting; package com.sk89q.worldedit.scripting;
import org.mozilla.javascript.*; import org.mozilla.javascript.Callable;
import org.mozilla.javascript.Context;
import org.mozilla.javascript.ContextFactory;
import org.mozilla.javascript.Scriptable;
public class RhinoContextFactory extends ContextFactory { public class RhinoContextFactory extends ContextFactory {
protected int timeLimit; protected int timeLimit;

Datei anzeigen

@ -21,7 +21,14 @@ package com.sk89q.worldedit.scripting;
import java.util.Map; import java.util.Map;
import javax.script.ScriptException; import javax.script.ScriptException;
import org.mozilla.javascript.*; import org.mozilla.javascript.Context;
import org.mozilla.javascript.ImporterTopLevel;
import org.mozilla.javascript.JavaScriptException;
import org.mozilla.javascript.RhinoException;
import org.mozilla.javascript.Scriptable;
import org.mozilla.javascript.ScriptableObject;
import org.mozilla.javascript.WrappedException;
import com.sk89q.worldedit.WorldEditException; import com.sk89q.worldedit.WorldEditException;
public class RhinoCraftScriptEngine implements CraftScriptEngine { public class RhinoCraftScriptEngine implements CraftScriptEngine {

Datei anzeigen

@ -19,9 +19,23 @@
package com.sk89q.worldedit.scripting.java; package com.sk89q.worldedit.scripting.java;
import java.io.*; import java.io.IOException;
import javax.script.*; import java.io.Reader;
import org.mozilla.javascript.*;
import javax.script.AbstractScriptEngine;
import javax.script.Bindings;
import javax.script.ScriptContext;
import javax.script.ScriptEngine;
import javax.script.ScriptEngineFactory;
import javax.script.ScriptException;
import javax.script.SimpleBindings;
import org.mozilla.javascript.Context;
import org.mozilla.javascript.ImporterTopLevel;
import org.mozilla.javascript.JavaScriptException;
import org.mozilla.javascript.RhinoException;
import org.mozilla.javascript.Scriptable;
import org.mozilla.javascript.ScriptableObject;
import com.sk89q.worldedit.scripting.RhinoContextFactory; import com.sk89q.worldedit.scripting.RhinoContextFactory;
public class RhinoScriptEngine extends AbstractScriptEngine { public class RhinoScriptEngine extends AbstractScriptEngine {

Datei anzeigen

@ -19,7 +19,8 @@
package com.sk89q.worldedit.snapshots; package com.sk89q.worldedit.snapshots;
import com.sk89q.worldedit.data.*; import com.sk89q.worldedit.data.*;
import java.io.*; import java.io.File;
import java.io.IOException;
import java.util.Calendar; import java.util.Calendar;
import java.util.logging.Logger; import java.util.logging.Logger;
import java.util.zip.ZipFile; import java.util.zip.ZipFile;

Datei anzeigen

@ -19,7 +19,8 @@
package com.sk89q.worldedit.snapshots; package com.sk89q.worldedit.snapshots;
import com.sk89q.worldedit.data.MissingWorldException; import com.sk89q.worldedit.data.MissingWorldException;
import java.io.*; import java.io.File;
import java.io.FilenameFilter;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Calendar; import java.util.Calendar;
import java.util.Collections; import java.util.Collections;

Datei anzeigen

@ -19,7 +19,7 @@
package com.sk89q.worldedit.util; package com.sk89q.worldedit.util;
import java.io.*; import java.io.File;
import java.util.Arrays; import java.util.Arrays;
import java.util.HashSet; import java.util.HashSet;
import java.util.Set; import java.util.Set;

Datei anzeigen

@ -18,7 +18,13 @@
*/ */
package com.sk89q.worldedit.util; package com.sk89q.worldedit.util;
import java.io.*; import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.HashSet; import java.util.HashSet;
import java.util.Properties; import java.util.Properties;
import java.util.Set; import java.util.Set;

Datei anzeigen

@ -2,7 +2,10 @@ package com.sk89q.wepif;
import org.bukkit.OfflinePlayer; import org.bukkit.OfflinePlayer;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.bukkit.permissions.*; import org.bukkit.permissions.Permissible;
import org.bukkit.permissions.Permission;
import org.bukkit.permissions.PermissionAttachment;
import org.bukkit.permissions.PermissionAttachmentInfo;
import org.bukkit.plugin.Plugin; import org.bukkit.plugin.Plugin;
import java.util.HashMap; import java.util.HashMap;