Removed unused imports

This commit is contained in:
Shoghi Cervantes 2014-10-08 17:00:23 +02:00
parent aa010b7dea
commit 62af784d37
35 changed files with 33 additions and 70 deletions

View File

@ -68,7 +68,6 @@ use pocketmine\level\format\FullChunk;
use pocketmine\level\format\LevelProvider; use pocketmine\level\format\LevelProvider;
use pocketmine\level\Level; use pocketmine\level\Level;
use pocketmine\level\Position; use pocketmine\level\Position;
use pocketmine\math\Vector2;
use pocketmine\math\Vector3; use pocketmine\math\Vector3;
use pocketmine\metadata\MetadataValue; use pocketmine\metadata\MetadataValue;
use pocketmine\nbt\NBT; use pocketmine\nbt\NBT;

View File

@ -70,7 +70,6 @@ namespace pocketmine {
use pocketmine\utils\MainLogger; use pocketmine\utils\MainLogger;
use pocketmine\utils\Utils; use pocketmine\utils\Utils;
use pocketmine\wizard\Installer; use pocketmine\wizard\Installer;
use raklib\RakLib;
const VERSION = "Alpha_1.4dev"; const VERSION = "Alpha_1.4dev";
const API_VERSION = "1.5.0"; const API_VERSION = "1.5.0";

View File

@ -31,7 +31,6 @@ use pocketmine\command\CommandSender;
use pocketmine\command\ConsoleCommandSender; use pocketmine\command\ConsoleCommandSender;
use pocketmine\command\PluginIdentifiableCommand; use pocketmine\command\PluginIdentifiableCommand;
use pocketmine\command\SimpleCommandMap; use pocketmine\command\SimpleCommandMap;
use pocketmine\entity\Entity;
use pocketmine\event\HandlerList; use pocketmine\event\HandlerList;
use pocketmine\event\level\LevelInitEvent; use pocketmine\event\level\LevelInitEvent;
use pocketmine\event\level\LevelLoadEvent; use pocketmine\event\level\LevelLoadEvent;
@ -79,7 +78,6 @@ use pocketmine\plugin\PluginManager;
use pocketmine\scheduler\CallbackTask; use pocketmine\scheduler\CallbackTask;
use pocketmine\scheduler\SendUsageTask; use pocketmine\scheduler\SendUsageTask;
use pocketmine\scheduler\ServerScheduler; use pocketmine\scheduler\ServerScheduler;
use pocketmine\tile\Tile;
use pocketmine\updater\AutoUpdater; use pocketmine\updater\AutoUpdater;
use pocketmine\utils\Binary; use pocketmine\utils\Binary;
use pocketmine\utils\Cache; use pocketmine\utils\Cache;

View File

@ -21,14 +21,14 @@
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\entity\Entity;
use pocketmine\event\entity\EntityDamageByBlockEvent; use pocketmine\event\entity\EntityDamageByBlockEvent;
use pocketmine\event\entity\EntityDamageEvent;
use pocketmine\item\Item; use pocketmine\item\Item;
use pocketmine\level\Level; use pocketmine\level\Level;
use pocketmine\math\AxisAlignedBB; use pocketmine\math\AxisAlignedBB;
use pocketmine\math\Vector3 as Vector3; use pocketmine\math\Vector3 as Vector3;
use pocketmine\Player; use pocketmine\Player;
use pocketmine\entity\Entity;
use pocketmine\event\entity\EntityDamageEvent;
use pocketmine\Server; use pocketmine\Server;
class Cactus extends Transparent{ class Cactus extends Transparent{

View File

@ -21,8 +21,8 @@
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item;
use pocketmine\entity\Entity; use pocketmine\entity\Entity;
use pocketmine\item\Item;
class Cobweb extends Flowable{ class Cobweb extends Flowable{
public function __construct(){ public function __construct(){

View File

@ -21,15 +21,15 @@
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item;
use pocketmine\Player;
use pocketmine\level\Level;
use pocketmine\entity\FallingBlock; use pocketmine\entity\FallingBlock;
use pocketmine\nbt\tag\Compound; use pocketmine\item\Item;
use pocketmine\nbt\tag\Enum; use pocketmine\level\Level;
use pocketmine\nbt\tag\Double;
use pocketmine\nbt\tag\Float;
use pocketmine\nbt\tag\Byte; use pocketmine\nbt\tag\Byte;
use pocketmine\nbt\tag\Compound;
use pocketmine\nbt\tag\Double;
use pocketmine\nbt\tag\Enum;
use pocketmine\nbt\tag\Float;
use pocketmine\Player;
abstract class Fallable extends Solid{ abstract class Fallable extends Solid{

View File

@ -23,7 +23,6 @@ namespace pocketmine\block;
use pocketmine\math\AxisAlignedBB; use pocketmine\math\AxisAlignedBB;
use pocketmine\math\Vector3;
class Fence extends Transparent{ class Fence extends Transparent{
public function __construct(){ public function __construct(){

View File

@ -21,12 +21,12 @@
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\entity\Entity;
use pocketmine\event\entity\EntityCombustByBlockEvent; use pocketmine\event\entity\EntityCombustByBlockEvent;
use pocketmine\event\entity\EntityDamageByBlockEvent; use pocketmine\event\entity\EntityDamageByBlockEvent;
use pocketmine\item\Item;
use pocketmine\entity\Entity;
use pocketmine\level\Level;
use pocketmine\event\entity\EntityDamageEvent; use pocketmine\event\entity\EntityDamageEvent;
use pocketmine\item\Item;
use pocketmine\level\Level;
use pocketmine\Server; use pocketmine\Server;
class Fire extends Flowable{ class Fire extends Flowable{

View File

@ -22,7 +22,6 @@
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item; use pocketmine\item\Item;
use pocketmine\level\Level;
use pocketmine\Player; use pocketmine\Player;
class Generic extends Block{ class Generic extends Block{

View File

@ -21,11 +21,11 @@
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\entity\Entity;
use pocketmine\item\Item; use pocketmine\item\Item;
use pocketmine\level\Level; use pocketmine\level\Level;
use pocketmine\math\AxisAlignedBB; use pocketmine\math\AxisAlignedBB;
use pocketmine\Player; use pocketmine\Player;
use pocketmine\entity\Entity;
class Ladder extends Transparent{ class Ladder extends Transparent{
public function __construct($meta = 0){ public function __construct($meta = 0){

View File

@ -21,15 +21,13 @@
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\entity\Entity;
use pocketmine\event\entity\EntityCombustByBlockEvent; use pocketmine\event\entity\EntityCombustByBlockEvent;
use pocketmine\event\entity\EntityDamageByBlockEvent; use pocketmine\event\entity\EntityDamageByBlockEvent;
use pocketmine\event\entity\EntityDamageEvent;
use pocketmine\item\Item; use pocketmine\item\Item;
use pocketmine\entity\Entity;
use pocketmine\level\Level;
use pocketmine\level\Position;
use pocketmine\Player; use pocketmine\Player;
use pocketmine\Server; use pocketmine\Server;
use pocketmine\event\entity\EntityDamageEvent;
class Lava extends Liquid{ class Lava extends Liquid{
public function __construct($meta = 0){ public function __construct($meta = 0){

View File

@ -21,10 +21,6 @@
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\event\entity\EntityDamageEvent;
use pocketmine\Server;
use pocketmine\entity\Entity;
class StillLava extends Lava{ class StillLava extends Lava{
public function __construct($meta = 0){ public function __construct($meta = 0){
parent::__construct(self::STILL_LAVA, $meta, "Still Lava"); parent::__construct(self::STILL_LAVA, $meta, "Still Lava");

View File

@ -23,7 +23,6 @@ namespace pocketmine\block;
use pocketmine\entity\PrimedTNT; use pocketmine\entity\PrimedTNT;
use pocketmine\item\Item; use pocketmine\item\Item;
use pocketmine\level\Explosion;
use pocketmine\nbt\tag\Byte; use pocketmine\nbt\tag\Byte;
use pocketmine\nbt\tag\Compound; use pocketmine\nbt\tag\Compound;
use pocketmine\nbt\tag\Double; use pocketmine\nbt\tag\Double;

View File

@ -21,12 +21,12 @@
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\entity\Entity;
use pocketmine\item\Item; use pocketmine\item\Item;
use pocketmine\item\Tool; use pocketmine\item\Tool;
use pocketmine\level\Level; use pocketmine\level\Level;
use pocketmine\math\AxisAlignedBB; use pocketmine\math\AxisAlignedBB;
use pocketmine\Player; use pocketmine\Player;
use pocketmine\entity\Entity;
class Vine extends Transparent{ class Vine extends Transparent{
public function __construct($meta = 0){ public function __construct($meta = 0){

View File

@ -21,12 +21,9 @@
namespace pocketmine\block; namespace pocketmine\block;
use pocketmine\item\Item;
use pocketmine\level\Level;
use pocketmine\level\Position;
use pocketmine\Player;
use pocketmine\Server;
use pocketmine\entity\Entity; use pocketmine\entity\Entity;
use pocketmine\item\Item;
use pocketmine\Player;
class Water extends Liquid{ class Water extends Liquid{
public function __construct($meta = 0){ public function __construct($meta = 0){

View File

@ -24,7 +24,6 @@
*/ */
namespace pocketmine\entity; namespace pocketmine\entity;
use pocketmine\block\Block;
use pocketmine\block\Water; use pocketmine\block\Water;
use pocketmine\event\entity\EntityDamageEvent; use pocketmine\event\entity\EntityDamageEvent;
use pocketmine\event\entity\EntityDespawnEvent; use pocketmine\event\entity\EntityDespawnEvent;
@ -35,7 +34,6 @@ use pocketmine\event\entity\EntityRegainHealthEvent;
use pocketmine\event\entity\EntitySpawnEvent; use pocketmine\event\entity\EntitySpawnEvent;
use pocketmine\event\entity\EntityTeleportEvent; use pocketmine\event\entity\EntityTeleportEvent;
use pocketmine\event\Timings; use pocketmine\event\Timings;
use pocketmine\item\Item;
use pocketmine\level\format\Chunk; use pocketmine\level\format\Chunk;
use pocketmine\level\format\FullChunk; use pocketmine\level\format\FullChunk;
use pocketmine\level\Level; use pocketmine\level\Level;
@ -51,8 +49,8 @@ use pocketmine\nbt\tag\Double;
use pocketmine\nbt\tag\Enum; use pocketmine\nbt\tag\Enum;
use pocketmine\nbt\tag\Float; use pocketmine\nbt\tag\Float;
use pocketmine\nbt\tag\Short; use pocketmine\nbt\tag\Short;
use pocketmine\network\protocol\MoveEntityPacket;
use pocketmine\Network; use pocketmine\Network;
use pocketmine\network\protocol\MoveEntityPacket;
use pocketmine\network\protocol\MovePlayerPacket; use pocketmine\network\protocol\MovePlayerPacket;
use pocketmine\network\protocol\RemoveEntityPacket; use pocketmine\network\protocol\RemoveEntityPacket;
use pocketmine\network\protocol\SetEntityDataPacket; use pocketmine\network\protocol\SetEntityDataPacket;

View File

@ -22,15 +22,15 @@
namespace pocketmine\entity; namespace pocketmine\entity;
use pocketmine\event\entity\EntityRegainHealthEvent;
use pocketmine\nbt\tag\String;
use pocketmine\nbt\tag\Byte;
use pocketmine\block\Block; use pocketmine\block\Block;
use pocketmine\event\entity\EntityDamageEvent;
use pocketmine\event\entity\EntityRegainHealthEvent;
use pocketmine\item\Item; use pocketmine\item\Item;
use pocketmine\nbt\tag\Byte;
use pocketmine\nbt\tag\String;
use pocketmine\network\protocol\AddEntityPacket; use pocketmine\network\protocol\AddEntityPacket;
use pocketmine\network\protocol\SetEntityMotionPacket; use pocketmine\network\protocol\SetEntityMotionPacket;
use pocketmine\Player; use pocketmine\Player;
use pocketmine\event\entity\EntityDamageEvent;
class FallingBlock extends Entity{ class FallingBlock extends Entity{

View File

@ -29,10 +29,10 @@ use pocketmine\nbt\tag\Byte;
use pocketmine\nbt\tag\Compound; use pocketmine\nbt\tag\Compound;
use pocketmine\nbt\tag\Enum; use pocketmine\nbt\tag\Enum;
use pocketmine\nbt\tag\Short; use pocketmine\nbt\tag\Short;
use pocketmine\Network;
use pocketmine\network\protocol\AddPlayerPacket; use pocketmine\network\protocol\AddPlayerPacket;
use pocketmine\network\protocol\RemovePlayerPacket; use pocketmine\network\protocol\RemovePlayerPacket;
use pocketmine\network\protocol\SetEntityMotionPacket; use pocketmine\network\protocol\SetEntityMotionPacket;
use pocketmine\Network;
use pocketmine\Player; use pocketmine\Player;
use pocketmine\utils\TextFormat; use pocketmine\utils\TextFormat;

View File

@ -22,8 +22,8 @@
namespace pocketmine\event\entity; namespace pocketmine\event\entity;
use pocketmine\entity\Entity; use pocketmine\entity\Entity;
use pocketmine\event\Cancellable;
use pocketmine\Event; use pocketmine\Event;
use pocketmine\event\Cancellable;
use pocketmine\item\Item; use pocketmine\item\Item;
class EntityArmorChangeEvent extends EntityEvent implements Cancellable{ class EntityArmorChangeEvent extends EntityEvent implements Cancellable{

View File

@ -22,8 +22,8 @@
namespace pocketmine\event\entity; namespace pocketmine\event\entity;
use pocketmine\entity\Entity; use pocketmine\entity\Entity;
use pocketmine\event\Cancellable;
use pocketmine\Event; use pocketmine\Event;
use pocketmine\event\Cancellable;
use pocketmine\item\Item; use pocketmine\item\Item;
class EntityInventoryChangeEvent extends EntityEvent implements Cancellable{ class EntityInventoryChangeEvent extends EntityEvent implements Cancellable{

View File

@ -22,8 +22,8 @@
namespace pocketmine\event\entity; namespace pocketmine\event\entity;
use pocketmine\entity\Entity; use pocketmine\entity\Entity;
use pocketmine\event\Cancellable;
use pocketmine\Event; use pocketmine\Event;
use pocketmine\event\Cancellable;
use pocketmine\level\Level; use pocketmine\level\Level;
class EntityLevelChangeEvent extends EntityEvent implements Cancellable{ class EntityLevelChangeEvent extends EntityEvent implements Cancellable{

View File

@ -22,8 +22,8 @@
namespace pocketmine\event\entity; namespace pocketmine\event\entity;
use pocketmine\entity\Entity; use pocketmine\entity\Entity;
use pocketmine\event\Cancellable;
use pocketmine\Event; use pocketmine\Event;
use pocketmine\event\Cancellable;
use pocketmine\math\Vector3 as Vector3; use pocketmine\math\Vector3 as Vector3;
class EntityMotionEvent extends EntityEvent implements Cancellable{ class EntityMotionEvent extends EntityEvent implements Cancellable{

View File

@ -22,8 +22,8 @@
namespace pocketmine\event\entity; namespace pocketmine\event\entity;
use pocketmine\entity\Entity; use pocketmine\entity\Entity;
use pocketmine\event\Cancellable;
use pocketmine\Event; use pocketmine\Event;
use pocketmine\event\Cancellable;
use pocketmine\math\Vector3 as Vector3; use pocketmine\math\Vector3 as Vector3;
class EntityMoveEvent extends EntityEvent implements Cancellable{ class EntityMoveEvent extends EntityEvent implements Cancellable{

View File

@ -22,8 +22,8 @@
namespace pocketmine\event\entity; namespace pocketmine\event\entity;
use pocketmine\entity\Entity; use pocketmine\entity\Entity;
use pocketmine\event\Cancellable;
use pocketmine\Event; use pocketmine\Event;
use pocketmine\event\Cancellable;
use pocketmine\level\Position; use pocketmine\level\Position;
class EntityTeleportEvent extends EntityEvent implements Cancellable{ class EntityTeleportEvent extends EntityEvent implements Cancellable{

View File

@ -21,10 +21,8 @@
namespace pocketmine\event\entity; namespace pocketmine\event\entity;
use pocketmine\block\Block;
use pocketmine\entity\Entity; use pocketmine\entity\Entity;
use pocketmine\event\Cancellable; use pocketmine\event\Cancellable;
use pocketmine\level\Position;
/** /**
* Called when a entity decides to explode * Called when a entity decides to explode

View File

@ -21,11 +21,8 @@
namespace pocketmine\event\entity; namespace pocketmine\event\entity;
use pocketmine\block\Block;
use pocketmine\entity\DroppedItem; use pocketmine\entity\DroppedItem;
use pocketmine\entity\Entity;
use pocketmine\event\Cancellable; use pocketmine\event\Cancellable;
use pocketmine\level\Position;
class ItemDespawnEvent extends EntityEvent implements Cancellable{ class ItemDespawnEvent extends EntityEvent implements Cancellable{
public static $handlerList = null; public static $handlerList = null;

View File

@ -21,11 +21,7 @@
namespace pocketmine\event\entity; namespace pocketmine\event\entity;
use pocketmine\block\Block;
use pocketmine\entity\DroppedItem; use pocketmine\entity\DroppedItem;
use pocketmine\entity\Entity;
use pocketmine\event\Cancellable;
use pocketmine\level\Position;
class ItemSpawnEvent extends EntityEvent{ class ItemSpawnEvent extends EntityEvent{
public static $handlerList = null; public static $handlerList = null;

View File

@ -21,8 +21,8 @@
namespace pocketmine\event\player; namespace pocketmine\event\player;
use pocketmine\event\Cancellable;
use pocketmine\Event; use pocketmine\Event;
use pocketmine\event\Cancellable;
use pocketmine\item\Item; use pocketmine\item\Item;
use pocketmine\Player; use pocketmine\Player;

View File

@ -23,7 +23,6 @@ namespace pocketmine\item;
use pocketmine\block\Air; use pocketmine\block\Air;
use pocketmine\block\Block; use pocketmine\block\Block;
use pocketmine\block\Lava;
use pocketmine\block\Liquid; use pocketmine\block\Liquid;
use pocketmine\block\Water; use pocketmine\block\Water;
use pocketmine\level\Level; use pocketmine\level\Level;

View File

@ -35,7 +35,6 @@ use pocketmine\block\Grass;
use pocketmine\block\Ice; use pocketmine\block\Ice;
use pocketmine\block\Leaves; use pocketmine\block\Leaves;
use pocketmine\block\Leaves2; use pocketmine\block\Leaves2;
use pocketmine\block\Liquid;
use pocketmine\block\MelonStem; use pocketmine\block\MelonStem;
use pocketmine\block\Mycelium; use pocketmine\block\Mycelium;
use pocketmine\block\Potato; use pocketmine\block\Potato;

View File

@ -21,16 +21,11 @@
namespace pocketmine\level\format\generic; namespace pocketmine\level\format\generic;
use pocketmine\entity\DroppedItem;
use pocketmine\entity\Entity; use pocketmine\entity\Entity;
use pocketmine\level\format\Chunk; use pocketmine\level\format\Chunk;
use pocketmine\level\format\ChunkSection; use pocketmine\level\format\ChunkSection;
use pocketmine\level\format\LevelProvider; use pocketmine\level\format\LevelProvider;
use pocketmine\nbt\tag\Compound; use pocketmine\nbt\tag\Compound;
use pocketmine\nbt\tag\String;
use pocketmine\tile\Chest;
use pocketmine\tile\Furnace;
use pocketmine\tile\Sign;
use pocketmine\tile\Tile; use pocketmine\tile\Tile;
use pocketmine\utils\Binary; use pocketmine\utils\Binary;

View File

@ -31,7 +31,6 @@ use pocketmine\nbt\tag\Compound;
use pocketmine\nbt\tag\Int; use pocketmine\nbt\tag\Int;
use pocketmine\nbt\tag\Long; use pocketmine\nbt\tag\Long;
use pocketmine\nbt\tag\String; use pocketmine\nbt\tag\String;
use pocketmine\Player;
use pocketmine\tile\Spawnable; use pocketmine\tile\Spawnable;
use pocketmine\utils\Binary; use pocketmine\utils\Binary;

View File

@ -24,7 +24,6 @@ namespace pocketmine\level\generator;
use pocketmine\level\format\FullChunk; use pocketmine\level\format\FullChunk;
use pocketmine\level\Level; use pocketmine\level\Level;
use pocketmine\Server; use pocketmine\Server;
use pocketmine\utils\Binary;
class GenerationInstanceManager extends GenerationRequestManager{ class GenerationInstanceManager extends GenerationRequestManager{

View File

@ -24,7 +24,6 @@ namespace pocketmine\level\generator;
use pocketmine\level\format\FullChunk; use pocketmine\level\format\FullChunk;
use pocketmine\level\Level; use pocketmine\level\Level;
use pocketmine\Server; use pocketmine\Server;
use pocketmine\utils\Binary;
class GenerationLevelManager extends GenerationManager{ class GenerationLevelManager extends GenerationManager{

View File

@ -21,6 +21,7 @@
namespace pocketmine\level\generator; namespace pocketmine\level\generator;
use pocketmine\block\Block;
use pocketmine\block\CoalOre; use pocketmine\block\CoalOre;
use pocketmine\block\DiamondOre; use pocketmine\block\DiamondOre;
use pocketmine\block\Dirt; use pocketmine\block\Dirt;
@ -29,7 +30,6 @@ use pocketmine\block\Gravel;
use pocketmine\block\IronOre; use pocketmine\block\IronOre;
use pocketmine\block\LapisOre; use pocketmine\block\LapisOre;
use pocketmine\block\RedstoneOre; use pocketmine\block\RedstoneOre;
use pocketmine\block\Block;
use pocketmine\level\generator\noise\Simplex; use pocketmine\level\generator\noise\Simplex;
use pocketmine\level\generator\object\OreType; use pocketmine\level\generator\object\OreType;
use pocketmine\level\generator\populator\Ore; use pocketmine\level\generator\populator\Ore;