package net.minecraft.server.level;

import java.util.stream.Stream;
import it.unimi.dsi.fastutil.objects.Object2BooleanOpenHashMap;
import it.unimi.dsi.fastutil.objects.Object2BooleanMap;

public final class PlayerMap {
    private final Object2BooleanMap<ServerPlayer> players;
    
    public PlayerMap() {
        this.players = (Object2BooleanMap<ServerPlayer>)new Object2BooleanOpenHashMap();
    }
    
    public Stream<ServerPlayer> getPlayers(final long long1) {
        return (Stream<ServerPlayer>)this.players.keySet().stream();
    }
    
    public void addPlayer(final long long1, final ServerPlayer xe, final boolean boolean3) {
        this.players.put(xe, boolean3);
    }
    
    public void removePlayer(final long long1, final ServerPlayer xe) {
        this.players.removeBoolean(xe);
    }
    
    public void ignorePlayer(final ServerPlayer xe) {
        this.players.replace(xe, true);
    }
    
    public void unIgnorePlayer(final ServerPlayer xe) {
        this.players.replace(xe, false);
    }
    
    public boolean ignoredOrUnknown(final ServerPlayer xe) {
        return this.players.getOrDefault(xe, true);
    }
    
    public boolean ignored(final ServerPlayer xe) {
        return this.players.getBoolean(xe);
    }
    
    public void updatePlayer(final long long1, final long long2, final ServerPlayer xe) {
    }
}
