mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
Fix variadic type docs ...again
PhpStorm changed its mind how it wants these documenting in 2018.1, and apparently the correct syntax follows the PHP code.
This commit is contained in:
parent
8ce0fab8cc
commit
eba1ca030c
@ -110,7 +110,7 @@ class BlockBreakEvent extends BlockEvent implements Cancellable{
|
||||
/**
|
||||
* Variadic hack for easy array member type enforcement.
|
||||
*
|
||||
* @param Item[] ...$drops
|
||||
* @param Item ...$drops
|
||||
*/
|
||||
public function setDropsVariadic(Item ...$drops){
|
||||
$this->blockDrops = $drops;
|
||||
|
@ -82,7 +82,7 @@ interface Inventory{
|
||||
*
|
||||
* Returns the Items that did not fit.
|
||||
*
|
||||
* @param Item[] ...$slots
|
||||
* @param Item ...$slots
|
||||
*
|
||||
* @return Item[]
|
||||
*/
|
||||
@ -101,7 +101,7 @@ interface Inventory{
|
||||
* Removes the given Item from the inventory.
|
||||
* It will return the Items that couldn't be removed.
|
||||
*
|
||||
* @param Item[] ...$slots
|
||||
* @param Item ...$slots
|
||||
*
|
||||
* @return Item[]
|
||||
*/
|
||||
|
@ -690,7 +690,7 @@ class Level implements ChunkManager, Metadatable{
|
||||
* WARNING: Do not use this, it's only for internal use.
|
||||
* Changes to this function won't be recorded on the version.
|
||||
*
|
||||
* @param Player[] ...$targets If empty, will send to all players in the level.
|
||||
* @param Player ...$targets If empty, will send to all players in the level.
|
||||
*/
|
||||
public function sendTime(Player ...$targets){
|
||||
$pk = new SetTimePacket();
|
||||
@ -2942,7 +2942,7 @@ class Level implements ChunkManager, Metadatable{
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Player[] ...$targets
|
||||
* @param Player ...$targets
|
||||
*/
|
||||
public function sendDifficulty(Player ...$targets){
|
||||
if(count($targets) === 0){
|
||||
|
@ -254,7 +254,7 @@ class NetworkBinaryStream extends BinaryStream{
|
||||
/**
|
||||
* Writes a list of Attributes to the packet buffer using the standard format.
|
||||
*
|
||||
* @param Attribute[] ...$attributes
|
||||
* @param Attribute ...$attributes
|
||||
*/
|
||||
public function putAttributeList(Attribute ...$attributes) : void{
|
||||
$this->putUnsignedVarInt(count($attributes));
|
||||
|
@ -344,7 +344,7 @@ class PluginManager{
|
||||
/**
|
||||
* Returns whether a specified API version string is considered compatible with the server's API version.
|
||||
*
|
||||
* @param string[] ...$versions
|
||||
* @param string ...$versions
|
||||
* @return bool
|
||||
*/
|
||||
public function isCompatibleApi(string ...$versions) : bool{
|
||||
|
@ -104,7 +104,7 @@ class Color{
|
||||
/**
|
||||
* Mixes the supplied list of colours together to produce a result colour.
|
||||
*
|
||||
* @param Color[] ...$colors
|
||||
* @param Color ...$colors
|
||||
* @return Color
|
||||
*/
|
||||
public static function mix(Color ...$colors) : Color{
|
||||
|
@ -73,7 +73,7 @@ class UUID{
|
||||
/**
|
||||
* Creates an UUIDv3 from binary data or list of binary data
|
||||
*
|
||||
* @param string[] ...$data
|
||||
* @param string ...$data
|
||||
* @return UUID
|
||||
*/
|
||||
public static function fromData(string ...$data) : UUID{
|
||||
|
Loading…
x
Reference in New Issue
Block a user