public final class FilteredTask extends ParticleTask
ParticleTask implementation using a java
Predicate to only send the packets to Players
that match the filter.ParticleTask| Constructor and Description |
|---|
FilteredTask(List<Object> packets,
int tickDelay,
Predicate<org.bukkit.entity.Player> filter)
Creates a new
FilteredTask |
| Modifier and Type | Method and Description |
|---|---|
Collection<org.bukkit.entity.Player> |
getTargetPlayers()
|
getPackets, getTickDelaypublic Collection<org.bukkit.entity.Player> getTargetPlayers()
filter to filter all
online Players and only returns
players that match the given Predicate.getTargetPlayers in class ParticleTaskPlayers matching the filterCopyright © 2021. All rights reserved.