Skip to content
This repository has been archived by the owner on Feb 2, 2018. It is now read-only.

Commit

Permalink
Unused import cleanup, Projectile fix
Browse files Browse the repository at this point in the history
  • Loading branch information
inxomnyaa committed Feb 11, 2017
1 parent e371f2e commit 923d178
Show file tree
Hide file tree
Showing 66 changed files with 84 additions and 112 deletions.
2 changes: 1 addition & 1 deletion src/pocketmine/block/WoodSlab.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
use pocketmine\math\AxisAlignedBB;
use pocketmine\Player;

class WoodSlab extends Transparent{
class WoodSlab extends Slab{

protected $id = self::WOOD_SLAB;

Expand Down
2 changes: 1 addition & 1 deletion src/pocketmine/entity/Bat.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
namespace pocketmine\entity;

use pocketmine\Player;
use pocketmine\nbt\tag\IntTag;
use pocketmine\network\protocol\AddEntityPacket;
use pocketmine\Player;

class Bat extends Animal{
const NETWORK_ID = 19;
Expand Down
2 changes: 1 addition & 1 deletion src/pocketmine/entity/Blaze.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
namespace pocketmine\entity;

use pocketmine\Player;
use pocketmine\item\Item as ItemItem;
use pocketmine\network\protocol\AddEntityPacket;
use pocketmine\Player;

class Blaze extends Monster{
const NETWORK_ID = 43;
Expand Down
5 changes: 2 additions & 3 deletions src/pocketmine/entity/Boat.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
<?php
namespace pocketmine\entity;

use pocketmine\Player;
use pocketmine\item\Item as ItemItem;
use pocketmine\event\entity\EntityRegainHealthEvent;
use pocketmine\level\format\Chunk;
use pocketmine\nbt\tag\CompoundTag;
use pocketmine\nbt\tag\ByteTag;
use pocketmine\nbt\tag\CompoundTag;
use pocketmine\network\protocol\AddEntityPacket;
use pocketmine\Player;

class Boat extends Vehicle{
const NETWORK_ID = 90;
Expand Down
2 changes: 1 addition & 1 deletion src/pocketmine/entity/CaveSpider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
namespace pocketmine\entity;

use pocketmine\item\Item as ItemItem;
use pocketmine\Player;
use pocketmine\network\protocol\AddEntityPacket;
use pocketmine\Player;

class CaveSpider extends Monster{
const NETWORK_ID = 40;
Expand Down
2 changes: 1 addition & 1 deletion src/pocketmine/entity/Chicken.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

use pocketmine\event\entity\EntityDamageEvent;
use pocketmine\item\Item as ItemItem;
use pocketmine\Player;
use pocketmine\network\protocol\AddEntityPacket;
use pocketmine\Player;

class Chicken extends Animal{
const NETWORK_ID = 10;
Expand Down
2 changes: 1 addition & 1 deletion src/pocketmine/entity/Cow.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

use pocketmine\event\entity\EntityDamageEvent;
use pocketmine\item\Item as ItemItem;
use pocketmine\Player;
use pocketmine\network\protocol\AddEntityPacket;
use pocketmine\Player;

class Cow extends Animal{
const NETWORK_ID = 11;
Expand Down
2 changes: 1 addition & 1 deletion src/pocketmine/entity/Creeper.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
use pocketmine\event\entity\EntityExplodeEvent;
use pocketmine\item\Item as ItemItem;
use pocketmine\nbt\tag\IntTag;
use pocketmine\Player;
use pocketmine\network\protocol\AddEntityPacket;
use pocketmine\Player;

class Creeper extends Monster implements Explosive{
const NETWORK_ID = 33;
Expand Down
2 changes: 1 addition & 1 deletion src/pocketmine/entity/Donkey.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
namespace pocketmine\entity;

use pocketmine\item\Item as ItemItem;
use pocketmine\Player;
use pocketmine\network\protocol\AddEntityPacket;
use pocketmine\Player;

class Donkey extends Animal implements Rideable{
const NETWORK_ID = 24;
Expand Down
3 changes: 1 addition & 2 deletions src/pocketmine/entity/DragonFireball.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
<?php
namespace pocketmine\entity;

use pocketmine\Player;
use pocketmine\item\Item as ItemItem;
use pocketmine\network\protocol\AddEntityPacket;
use pocketmine\Player;

class DragonFireball extends Projectile{
const NETWORK_ID = 79;
Expand Down
6 changes: 1 addition & 5 deletions src/pocketmine/entity/Egg.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,8 @@

use pocketmine\level\format\Chunk;
use pocketmine\nbt\tag\CompoundTag;
use pocketmine\Player;
use pocketmine\nbt\tag\ListTag;
use pocketmine\nbt\tag\DoubleTag;
use pocketmine\nbt\tag\FloatTag;
use pocketmine\nbt\tag\StringTag;
use pocketmine\network\protocol\AddEntityPacket;
use pocketmine\Player;

class Egg extends Projectile{
const NETWORK_ID = 82;
Expand Down
4 changes: 2 additions & 2 deletions src/pocketmine/entity/ElderGuardian.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
namespace pocketmine\entity;

use pocketmine\item\Item as ItemItem;
use pocketmine\Player;
use pocketmine\event\entity\EntityDamageEvent;
use pocketmine\item\Item as ItemItem;
use pocketmine\network\protocol\AddEntityPacket;
use pocketmine\Player;

class ElderGuardian extends Guardian{
const NETWORK_ID = 50;
Expand Down
8 changes: 4 additions & 4 deletions src/pocketmine/entity/EnderCrystal.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php
namespace pocketmine\entity;

use pocketmine\math\Vector3;
use pocketmine\Player;
use pocketmine\level\format\Chunk;
use pocketmine\nbt\tag\CompoundTag;
use pocketmine\event\entity\ExplosionPrimeEvent;
use pocketmine\level\Explosion;
use pocketmine\level\format\Chunk;
use pocketmine\math\Vector3;
use pocketmine\nbt\tag\CompoundTag;
use pocketmine\network\protocol\AddEntityPacket;
use pocketmine\Player;

class EnderCrystal extends Living implements Explosive{
const NETWORK_ID = 71;
Expand Down
2 changes: 1 addition & 1 deletion src/pocketmine/entity/EnderDragon.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
namespace pocketmine\entity;

use pocketmine\Player;
use pocketmine\network\protocol\AddEntityPacket;
use pocketmine\Player;

class EnderDragon extends Monster implements ProjectileSource{
const NETWORK_ID = 53;
Expand Down
4 changes: 2 additions & 2 deletions src/pocketmine/entity/EnderSignal.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php
namespace pocketmine\entity;

use pocketmine\item\Item as ItemItem;
use pocketmine\level\format\Chunk;
use pocketmine\nbt\tag\CompoundTag;
use pocketmine\Player;
use pocketmine\item\Item as ItemItem;
use pocketmine\network\protocol\AddEntityPacket;
use pocketmine\Player;

class EnderSignal extends Entity{
const NETWORK_ID = 70;
Expand Down
3 changes: 1 addition & 2 deletions src/pocketmine/entity/Enderman.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<?php
namespace pocketmine\entity;

use pocketmine\Player;
use pocketmine\item\Item as ItemItem;
use pocketmine\nbt\tag\IntTag;
use pocketmine\network\protocol\AddEntityPacket;
use pocketmine\Player;

class Enderman extends Monster{
const NETWORK_ID = 38;
Expand Down
2 changes: 1 addition & 1 deletion src/pocketmine/entity/Endermite.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
namespace pocketmine\entity;

use pocketmine\Player;
use pocketmine\network\protocol\AddEntityPacket;
use pocketmine\Player;

class Endermite extends Monster{
const NETWORK_ID = 55;
Expand Down
2 changes: 1 addition & 1 deletion src/pocketmine/entity/ExperienceOrb.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
namespace pocketmine\entity;

use pocketmine\Player;
use pocketmine\network\protocol\AddEntityPacket;
use pocketmine\Player;

class ExperienceOrb extends Entity{
const NETWORK_ID = 69;
Expand Down
5 changes: 1 addition & 4 deletions src/pocketmine/entity/FishingHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@

use pocketmine\level\format\Chunk;
use pocketmine\nbt\tag\CompoundTag;
use pocketmine\Player;
use pocketmine\item\Item as ItemItem;
use pocketmine\network\protocol\EntityEventPacket;
use pocketmine\Server;
use pocketmine\network\protocol\AddEntityPacket;
use pocketmine\Player;

class FishingHook extends Projectile{
const NETWORK_ID = 77;
Expand Down
2 changes: 1 addition & 1 deletion src/pocketmine/entity/Ghast.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
namespace pocketmine\entity;

use pocketmine\item\Item as ItemItem;
use pocketmine\Player;
use pocketmine\network\protocol\AddEntityPacket;
use pocketmine\Player;

class Ghast extends Monster{
const NETWORK_ID = 41;
Expand Down
4 changes: 2 additions & 2 deletions src/pocketmine/entity/Guardian.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
namespace pocketmine\entity;

use pocketmine\item\Item as ItemItem;
use pocketmine\Player;
use pocketmine\event\entity\EntityDamageEvent;
use pocketmine\item\Item as ItemItem;
use pocketmine\network\protocol\AddEntityPacket;
use pocketmine\Player;

class Guardian extends WaterAnimal implements Ageable{
const NETWORK_ID = 49;
Expand Down
2 changes: 1 addition & 1 deletion src/pocketmine/entity/Horse.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
namespace pocketmine\entity;

use pocketmine\item\Item as ItemItem;
use pocketmine\Player;
use pocketmine\network\protocol\AddEntityPacket;
use pocketmine\Player;

class Horse extends Animal implements Rideable{
const NETWORK_ID = 23;
Expand Down
2 changes: 1 addition & 1 deletion src/pocketmine/entity/Husk.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

use pocketmine\event\entity\EntityDamageByEntityEvent;
use pocketmine\item\Item as ItemItem;
use pocketmine\Player;
use pocketmine\network\protocol\AddEntityPacket;
use pocketmine\Player;

class Husk extends Monster{
const NETWORK_ID = 47;
Expand Down
2 changes: 1 addition & 1 deletion src/pocketmine/entity/IronGolem.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
namespace pocketmine\entity;

use pocketmine\item\Item as ItemItem;
use pocketmine\Player;
use pocketmine\network\protocol\AddEntityPacket;
use pocketmine\Player;

class IronGolem extends Animal{
const NETWORK_ID = 20;
Expand Down
3 changes: 1 addition & 2 deletions src/pocketmine/entity/LargeFireball.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
<?php
namespace pocketmine\entity;

use pocketmine\Player;
use pocketmine\item\Item as ItemItem;
use pocketmine\network\protocol\AddEntityPacket;
use pocketmine\Player;

class LargeFireball extends Projectile {
const NETWORK_ID = 85;
Expand Down
2 changes: 1 addition & 1 deletion src/pocketmine/entity/LeashKnot.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
namespace pocketmine\entity;

use pocketmine\Player;
use pocketmine\nbt\tag\CompoundTag;
use pocketmine\network\protocol\AddEntityPacket;
use pocketmine\Player;

class LeashKnot extends Entity{
const NETWORK_ID = 88;
Expand Down
2 changes: 1 addition & 1 deletion src/pocketmine/entity/Lightning.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
namespace pocketmine\entity;

use pocketmine\Player;
use pocketmine\network\protocol\AddEntityPacket;
use pocketmine\Player;

class Lightning extends Entity{
const NETWORK_ID = 93;
Expand Down
2 changes: 0 additions & 2 deletions src/pocketmine/entity/LingeringPotion.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
use pocketmine\item\Potion;
use pocketmine\level\format\Chunk;
use pocketmine\level\particle\DestroyBlockParticle;
use pocketmine\level\particle\GenericParticle;
use pocketmine\level\particle\ItemBreakParticle;
use pocketmine\level\particle\Particle;
use pocketmine\level\particle\SpellParticle;
use pocketmine\nbt\tag\CompoundTag;
use pocketmine\nbt\tag\DoubleTag;
Expand Down
2 changes: 1 addition & 1 deletion src/pocketmine/entity/Living.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
use pocketmine\math\Vector3;
use pocketmine\nbt\tag\ShortTag;
use pocketmine\network\protocol\EntityEventPacket;
use pocketmine\utils\BlockIterator;
use pocketmine\Server;
use pocketmine\utils\BlockIterator;

abstract class Living extends Entity implements Damageable{

Expand Down
2 changes: 1 addition & 1 deletion src/pocketmine/entity/MagmaCube.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
namespace pocketmine\entity;

use pocketmine\item\Item as ItemItem;
use pocketmine\Player;
use pocketmine\nbt\tag\IntTag;
use pocketmine\network\protocol\AddEntityPacket;
use pocketmine\Player;

class MagmaCube extends Living{
const NETWORK_ID = 42;
Expand Down
4 changes: 1 addition & 3 deletions src/pocketmine/entity/Minecart.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
<?php
namespace pocketmine\entity;

use pocketmine\network\protocol\PlayerActionPacket;
use pocketmine\Player;
use pocketmine\item\Item as ItemItem;
use pocketmine\event\entity\EntityRegainHealthEvent;
use pocketmine\network\protocol\AddEntityPacket;
use pocketmine\Player;

class Minecart extends Vehicle{

Expand Down
4 changes: 2 additions & 2 deletions src/pocketmine/entity/MinecartChest.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
namespace pocketmine\entity;

use pocketmine\Player;
use pocketmine\item\Item as ItemItem;
use pocketmine\event\entity\EntityRegainHealthEvent;
use pocketmine\item\Item as ItemItem;
use pocketmine\network\protocol\AddEntityPacket;
use pocketmine\Player;

class MinecartChest extends Snake{

Expand Down
4 changes: 2 additions & 2 deletions src/pocketmine/entity/MinecartHopper.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
namespace pocketmine\entity;

use pocketmine\Player;
use pocketmine\item\Item as ItemItem;
use pocketmine\event\entity\EntityRegainHealthEvent;
use pocketmine\item\Item as ItemItem;
use pocketmine\network\protocol\AddEntityPacket;
use pocketmine\Player;

class MinecartHopper extends Snake{

Expand Down
3 changes: 1 addition & 2 deletions src/pocketmine/entity/MinecartTNT.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@

namespace pocketmine\entity;

use pocketmine\Player;
use pocketmine\item\Item as ItemItem;
use pocketmine\event\entity\EntityRegainHealthEvent;
use pocketmine\network\protocol\AddEntityPacket;
use pocketmine\Player;

class MinecartTNT extends Snake{
const NETWORK_ID = 97;
Expand Down
2 changes: 1 addition & 1 deletion src/pocketmine/entity/Mooshroom.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

use pocketmine\event\entity\EntityDamageEvent;
use pocketmine\item\Item as ItemItem;
use pocketmine\Player;
use pocketmine\network\protocol\AddEntityPacket;
use pocketmine\Player;

class Mooshroom extends Animal{
const NETWORK_ID = 16;
Expand Down
Loading

0 comments on commit 923d178

Please sign in to comment.