Remove Entity->length

This commit is contained in:
Muqsit 2017-08-23 02:21:33 -04:00
parent d1852834de
commit a52fa93998
10 changed files with 3 additions and 14 deletions

View File

@ -32,7 +32,6 @@ class Arrow extends Projectile{
const NETWORK_ID = 80;
public $width = 0.5;
public $length = 0.5;
public $height = 0.5;
protected $gravity = 0.05;
@ -98,4 +97,4 @@ class Arrow extends Projectile{
parent::spawnTo($player);
}
}
}

View File

@ -296,8 +296,6 @@ abstract class Entity extends Location implements Metadatable{
public $height;
/** @var float */
public $width;
/** @var float */
public $length;
/** @var float */
protected $baseOffset = 0.0;

View File

@ -38,7 +38,6 @@ class FallingSand extends Entity{
const NETWORK_ID = 66;
public $width = 0.98;
public $length = 0.98;
public $height = 0.98;
protected $baseOffset = 0.49;

View File

@ -59,7 +59,6 @@ class Human extends Creature implements ProjectileSource, InventoryHolder{
protected $rawUUID;
public $width = 0.6;
public $length = 0.6;
public $height = 1.8;
public $eyeHeight = 1.62;

View File

@ -46,7 +46,6 @@ class Item extends Entity{
protected $item;
public $width = 0.25;
public $length = 0.25;
public $height = 0.25;
protected $baseOffset = 0.125;

View File

@ -35,7 +35,6 @@ class PrimedTNT extends Entity implements Explosive{
const NETWORK_ID = 65;
public $width = 0.98;
public $length = 0.98;
public $height = 0.98;
protected $baseOffset = 0.49;
@ -129,4 +128,4 @@ class PrimedTNT extends Entity implements Explosive{
parent::spawnTo($player);
}
}
}

View File

@ -32,7 +32,6 @@ class Snowball extends Projectile{
const NETWORK_ID = 81;
public $width = 0.25;
public $length = 0.25;
public $height = 0.25;
protected $gravity = 0.03;
@ -72,4 +71,4 @@ class Snowball extends Projectile{
parent::spawnTo($player);
}
}
}

View File

@ -36,7 +36,6 @@ class Squid extends WaterAnimal{
const NETWORK_ID = 17;
public $width = 0.95;
public $length = 0.95;
public $height = 0.95;
/** @var Vector3 */

View File

@ -38,7 +38,6 @@ class Villager extends Creature implements NPC, Ageable{
const NETWORK_ID = 15;
public $width = 0.6;
public $length = 0.6;
public $height = 1.8;
public function getName() : string{

View File

@ -33,7 +33,6 @@ class Zombie extends Monster{
const NETWORK_ID = 32;
public $width = 0.6;
public $length = 0.6;
public $height = 1.8;
public function getName() : string{