public String name(E value) {
        int ordinal = value.ordinal();
        // support the Bukkit-Forge hack where enum constants are added at runtime...
        if (ordinal >= this.names.length) {
            return this.namingFunction.apply(value);
        }
        return this.names[ordinal];
    }
Small utility to cache custom name lookups for enum values.

@param <E> the enum type
common/src/main/java/me/lucko/luckperms/common/util/EnumNamer.java