mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Bulk addition of constant visibilities
thanks PhpStorm inspections plugin for annoying the shit out of me until I did this.
This commit is contained in:
@ -33,7 +33,7 @@ use pocketmine\network\mcpe\protocol\TakeItemEntityPacket;
|
||||
use pocketmine\Player;
|
||||
|
||||
class Arrow extends Projectile{
|
||||
const NETWORK_ID = self::ARROW;
|
||||
public const NETWORK_ID = self::ARROW;
|
||||
|
||||
public $width = 0.25;
|
||||
public $height = 0.25;
|
||||
|
@ -24,7 +24,7 @@ declare(strict_types=1);
|
||||
namespace pocketmine\entity\projectile;
|
||||
|
||||
class Egg extends Throwable{
|
||||
const NETWORK_ID = self::EGG;
|
||||
public const NETWORK_ID = self::EGG;
|
||||
|
||||
//TODO: spawn chickens on collision
|
||||
}
|
@ -37,7 +37,7 @@ use pocketmine\nbt\tag\CompoundTag;
|
||||
|
||||
abstract class Projectile extends Entity{
|
||||
|
||||
const DATA_SHOOTER_ID = 17;
|
||||
public const DATA_SHOOTER_ID = 17;
|
||||
|
||||
protected $damage = 0;
|
||||
|
||||
|
@ -24,6 +24,6 @@ declare(strict_types=1);
|
||||
namespace pocketmine\entity\projectile;
|
||||
|
||||
class Snowball extends Throwable{
|
||||
const NETWORK_ID = self::SNOWBALL;
|
||||
public const NETWORK_ID = self::SNOWBALL;
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user