Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/kametan0730mc/RunForMoney2/Main.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ private function initEnchantment(){
EnchantmentIdMap::getInstance()->register(EnchantmentIds::SHARPNESS, VanillaEnchantments::THORNS());
}

protected function onEnable(){
protected function onEnable() : void{
date_default_timezone_set("Japan");

$this->getServer()->getWorldManager()->setAutoSave(false);
Expand Down
6 changes: 2 additions & 4 deletions src/kametan0730mc/RunForMoney2/entity/Agent.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@


use pocketmine\entity\Entity;
use pocketmine\entity\EntitySizeInfo;
use pocketmine\network\mcpe\protocol\types\entity\EntityIds;

class Agent extends Entity{
/* @var float */
public $width = 0.1;

/* @var float */
public $height = 0.1;
protected function getInitialSizeInfo() : EntitySizeInfo{ return new EntitySizeInfo(0.1, 0.1); }

public static function getNetworkTypeId() : string{ return EntityIds::AGENT; }
}
11 changes: 5 additions & 6 deletions src/kametan0730mc/RunForMoney2/entity/LightningBolt.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,18 @@


use pocketmine\entity\Entity;
use pocketmine\entity\EntitySizeInfo;
use pocketmine\entity\Living;
use pocketmine\network\mcpe\protocol\types\entity\EntityIds;

class LightningBolt extends Entity{
/* @var float */
public $width = 0.1;

/* @var float */
public $height = 0.1;

/** @var int */
public $age = 0;

protected function getInitialSizeInfo() : EntitySizeInfo{
return new EntitySizeInfo(0.1, 0.1);
}

public static function getNetworkTypeId(): string{
return EntityIds::LIGHTNING_BOLT;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@
namespace kametan0730mc\RunForMoney2\entity\projectile;


use pocketmine\entity\EntitySizeInfo;
use pocketmine\entity\projectile\Projectile;
use pocketmine\network\mcpe\protocol\types\entity\EntityIds;

class DragonFireball extends Projectile{
/* @var float */
public $width = 0.1;

/* @var float */
public $height = 0.1;
protected function getInitialSizeInfo() : EntitySizeInfo{ return new EntitySizeInfo(0.1, 0.1); }

public static function getNetworkTypeId() : string{ return EntityIds::DRAGON_FIREBALL; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@
namespace kametan0730mc\RunForMoney2\entity\projectile;


use pocketmine\entity\EntitySizeInfo;
use pocketmine\entity\projectile\Projectile;
use pocketmine\network\mcpe\protocol\types\entity\EntityIds;

class FishingHook extends Projectile{
/* @var float */
public $width = 0.1;

/* @var float */
public $height = 0.1;
protected function getInitialSizeInfo() : EntitySizeInfo{ return new EntitySizeInfo(0.1, 0.1); }

public static function getNetworkTypeId() : string{ return EntityIds::DRAGON_FIREBALL; }
}