mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-09 03:06:55 +00:00
Fixed some doc problems
This commit is contained in:
@ -36,7 +36,9 @@ abstract class Event{
|
||||
* Not doing so will deny the proper event initialization
|
||||
*/
|
||||
|
||||
/** @var string|null */
|
||||
protected $eventName = null;
|
||||
/** @var bool */
|
||||
private $isCancelled = false;
|
||||
|
||||
/**
|
||||
|
@ -48,7 +48,7 @@ class TranslationContainer extends TextContainer{
|
||||
/**
|
||||
* @param int $i
|
||||
*
|
||||
* @return string
|
||||
* @return string|null
|
||||
*/
|
||||
public function getParameter($i){
|
||||
return isset($this->params[$i]) ? $this->params[$i] : null;
|
||||
|
@ -36,6 +36,7 @@ use pocketmine\entity\Vehicle;
|
||||
class EntityDespawnEvent extends EntityEvent{
|
||||
public static $handlerList = null;
|
||||
|
||||
/** @var int */
|
||||
private $entityType;
|
||||
|
||||
/**
|
||||
|
@ -36,6 +36,7 @@ use pocketmine\entity\Vehicle;
|
||||
class EntitySpawnEvent extends EntityEvent{
|
||||
public static $handlerList = null;
|
||||
|
||||
/** @var int */
|
||||
private $entityType;
|
||||
|
||||
/**
|
||||
|
@ -33,7 +33,9 @@ use pocketmine\utils\Utils;
|
||||
class LowMemoryEvent extends ServerEvent{
|
||||
public static $handlerList = null;
|
||||
|
||||
/** @var int */
|
||||
private $memory;
|
||||
/** @var int */
|
||||
private $memoryLimit;
|
||||
private $triggerCount;
|
||||
private $global;
|
||||
@ -60,7 +62,7 @@ class LowMemoryEvent extends ServerEvent{
|
||||
* @return int
|
||||
*/
|
||||
public function getMemoryLimit(){
|
||||
return $this->memory;
|
||||
return $this->memoryLimit;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user