mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 11:58:00 +00:00
pass 2, manual removal of incorrect non-nullable phpdoc types
This commit is contained in:
@@ -1379,9 +1379,6 @@ class World implements ChunkManager{
|
||||
$this->timings->setBlock->stopTiming();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Vector3 $motion
|
||||
*/
|
||||
public function dropItem(Vector3 $source, Item $item, ?Vector3 $motion = null, int $delay = 10) : ?ItemEntity{
|
||||
if($item->isNull()){
|
||||
return null;
|
||||
@@ -1432,7 +1429,6 @@ class World implements ChunkManager{
|
||||
* It'll try to lower the durability if Item is a tool, and set it to Air if broken.
|
||||
*
|
||||
* @param Item $item reference parameter (if null, can break anything)
|
||||
* @param Player $player
|
||||
*/
|
||||
public function useBreakOn(Vector3 $vector, Item &$item = null, ?Player $player = null, bool $createParticles = false) : bool{
|
||||
$vector = $vector->floor();
|
||||
@@ -1686,8 +1682,6 @@ class World implements ChunkManager{
|
||||
/**
|
||||
* Returns the entities near the current one inside the AxisAlignedBB
|
||||
*
|
||||
* @param Entity $entity
|
||||
*
|
||||
* @return Entity[]
|
||||
*/
|
||||
public function getNearbyEntities(AxisAlignedBB $bb, ?Entity $entity = null) : array{
|
||||
|
Reference in New Issue
Block a user