Interface ImagePixelConverter
public interface ImagePixelConverter
Renders a remote image as colored text so it can be shown in chat.
-
Method Summary
Modifier and TypeMethodDescriptionDownloads and renders the image, bypassing the cache.convertOrGetCache(@Nullable String link) Returns the rendered image, downloading and rendering it only on the first request.voidinvalidate(@Nullable String link) Drops the cached rendering of an image, or of every image when no link is given.
-
Method Details
-
invalidate
Drops the cached rendering of an image, or of every image when no link is given.- Parameters:
link- the image url, or null to clear the whole cache
-
convertOrGetCache
-
convert
-