MCPcopy Create free account
hub / github.com/Teneted/Tenet / loadServerIcon

Method loadServerIcon

src/main/java/org/bukkit/Bukkit.java:1255–1258  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 1

loadServerIconMethod · 0.65

Tested by

no test coverage detected