mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-25 02:27:38 +01:00
Do not override stream methods
This commit is contained in:
parent
0f421c22db
commit
fef0bbe01b
@ -256,13 +256,6 @@ public final class ViewEngine {
|
||||
viewableOption.references().forEach(action);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Stream<Player> stream() {
|
||||
synchronized (mutex) {
|
||||
return viewableOption.references();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
final class EntitySet extends AbstractSet<Player> {
|
||||
@ -303,17 +296,5 @@ public final class ViewEngine {
|
||||
viewableOption.bitSet.forEach((int id) -> action.accept((Player) Entity.getEntity(id)));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Stream<Player> stream() {
|
||||
synchronized (mutex) {
|
||||
return viewableOption.bitSet.intStream().mapToObj(operand -> (Player) Entity.getEntity(operand));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Stream<Player> parallelStream() {
|
||||
return stream().parallel();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user