mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-15 02:09:42 +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;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param NetworkSession[] $targets
|
||||
*/
|
||||
public function setTargets(array $targets) : void{
|
||||
$this->targets = $targets;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ClientboundPacket[]
|
||||
*/
|
||||
public function getPackets() : array{
|
||||
return $this->packets;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ClientboundPacket[] $packets
|
||||
*/
|
||||
public function setPackets(array $packets) : void{
|
||||
$this->packets = $packets;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user