Loads an image from a file, and returns a cached image for the specific server-icon. Size and type are implementation defined. An incompatible file is guaranteed to throw an implementation-defined Exception. @param file the file to load the from @throws IllegalArgumentException if image
(@NotNull File file)
| 1253 | * ServerListPingEvent#setServerIcon(CachedServerIcon)} |
| 1254 | */ |
| 1255 | @NotNull |
| 1256 | public static CachedServerIcon loadServerIcon(@NotNull File file) throws IllegalArgumentException, Exception { |
| 1257 | return server.loadServerIcon(file); |
| 1258 | } |
| 1259 | |
| 1260 | /** |
| 1261 | * Creates a cached server-icon for the specific image. |
nothing calls this directly
no test coverage detected