DataPacketSendEvent: remove setters

these create unnecessary complexities in the internals.
This commit is contained in:
Dylan K. Taylor 2019-08-10 18:00:46 +01:00
parent d1775030c3
commit 85ad78dda8

View File

@ -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;
}
}