public void unregister(Object target) {
        this.listeners.removeIf(listener -> {
            if (listener.target == target) {
                listener.close();
                return true;
            } else {
                return false;
            }
        });
    }
Unregister previously registered listeners on the target object.

@param target the target listener
neoforge/src/main/java/me/lucko/luckperms/neoforge/util/NeoForgeEventBusFacade.java