Class NativeUiImageCache
java.lang.Object
com.viaversion.viafabricplus.bedrock.screen.ui.NativeUiImageCache
Bounded asynchronous public images, cached by target version and complete URL without account credentials.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNativeUiImageCache(Path directory, String version, HttpClient http, Executor executor) NativeUiImageCache(Path directory, String version, HttpClient http, Executor executor, Predicate<URI> allowed) -
Method Summary
Modifier and TypeMethodDescriptionstatic NativeUiImageCache.Datadecode(byte[] bytes) static boolean
-
Field Details
-
MAX_BYTES
public static final int MAX_BYTES- See Also:
-
MAX_PIXELS
public static final int MAX_PIXELS- See Also:
-
-
Constructor Details
-
NativeUiImageCache
-
NativeUiImageCache
-
-
Method Details
-
https
-
decode
- Throws:
IOException
-