//  [java]
    public void translate(GeyserSession session, ServerPlayerListEntryPacket packet) {
        if (packet.getAction() != PlayerListEntryAction.ADD_PLAYER && packet.getAction() != PlayerListEntryAction.REMOVE_PLAYER)
            return;

        PlayerListPacket translate = new PlayerListPacket();
        translate.setAction(packet.getAction() == PlayerListEntryAction.ADD_PLAYER ? PlayerListPacket.Action.ADD : PlayerListPacket.Action.REMOVE);

        for (PlayerListEntry entry : packet.getEntries()) {
            switch (packet.getAction()) {
                case ADD_PLAYER:
                    PlayerEntity playerEntity;
                    boolean self = entry.getProfile().getId().equals(session.getPlayerEntity().getUuid());

                    if (self) {
                        // Entity is ourself
                        playerEntity = session.getPlayerEntity();
                    } else {
                        playerEntity = session.getEntityCache().getPlayerEntity(entry.getProfile().getId());
                    }

                    if (playerEntity == null) {
                        // It's a new player
                        playerEntity = new PlayerEntity(
                                entry.getProfile(),
                                -1,
                                session.getEntityCache().getNextEntityId().incrementAndGet(),
                                Vector3f.ZERO,
                                Vector3f.ZERO,
                                Vector3f.ZERO
                        );

                        session.getEntityCache().addPlayerEntity(playerEntity);
                    } else {
                        playerEntity.setProfile(entry.getProfile());
                    }

                    playerEntity.setPlayerList(true);

                    // We'll send our own PlayerListEntry in requestAndHandleSkinAndCape
                    // But we need to send other player's entries so they show up in the player list
                    // without processing their skin information - that'll be processed when they spawn in
                    if (self) {
                        SkinManager.requestAndHandleSkinAndCape(playerEntity, session, skinAndCape ->
                                GeyserConnector.getInstance().getLogger().debug("Loaded Local Bedrock Java Skin Data for " + session.getClientData().getUsername()));
                    } else {
                        playerEntity.setValid(true);
                        PlayerListPacket.Entry playerListEntry = SkinManager.buildCachedEntry(session, playerEntity);

                        translate.getEntries().add(playerListEntry);
                    }
                    break;
                case REMOVE_PLAYER:
                    // As the player entity is no longer present, we can remove the entry
                    PlayerEntity entity = session.getEntityCache().removePlayerEntity(entry.getProfile().getId());
                    if (entity != null) {
                        // Just remove the entity's player list status
                        // Don't despawn the entity - the Java server will also take care of that.
                        entity.setPlayerList(false);
                    }
                    if (entity == session.getPlayerEntity()) {
                        // If removing ourself we use our AuthData UUID
                        translate.getEntries().add(new PlayerListPacket.Entry(session.getAuthData().getUUID()));
                    } else {
                        translate.getEntries().add(new PlayerListPacket.Entry(entry.getProfile().getId()));
                    }
                    break;
            }
        }

        if (!translate.getEntries().isEmpty() && (packet.getAction() == PlayerListEntryAction.REMOVE_PLAYER || session.getUpstream().isInitialized())) {
            session.sendUpstreamPacket(translate);
        }
    }