mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-29 14:49:59 +00:00
DataPacketSendEvent: remove setters
these create unnecessary complexities in the internals.
This commit is contained in:
parent
d1775030c3
commit
85ad78dda8
@ -55,24 +55,10 @@ class DataPacketSendEvent extends ServerEvent implements Cancellable{
|
|||||||
return $this->targets;
|
return $this->targets;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @param NetworkSession[] $targets
|
|
||||||
*/
|
|
||||||
public function setTargets(array $targets) : void{
|
|
||||||
$this->targets = $targets;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return ClientboundPacket[]
|
* @return ClientboundPacket[]
|
||||||
*/
|
*/
|
||||||
public function getPackets() : array{
|
public function getPackets() : array{
|
||||||
return $this->packets;
|
return $this->packets;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @param ClientboundPacket[] $packets
|
|
||||||
*/
|
|
||||||
public function setPackets(array $packets) : void{
|
|
||||||
$this->packets = $packets;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user