Package net.md_5.bungee.api
Class Favicon
java.lang.Object
net.md_5.bungee.api.Favicon
Favicon shown in the server list.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Favicon
create
(BufferedImage image) Creates a favicon from an image.static Favicon
Deprecated.Use #create(java.awt.image.BufferedImage) insteadstatic com.google.gson.TypeAdapter<Favicon>
-
Constructor Details
-
Favicon
public Favicon()
-
-
Method Details
-
getFaviconTypeAdapter
-
create
Creates a favicon from an image.- Parameters:
image
- the image to create on- Returns:
- the created favicon instance
- Throws:
IllegalArgumentException
- if the favicon is larger thanShort.MAX_VALUE
or not of dimensions 64x64 pixels.
-
create
Deprecated.Use #create(java.awt.image.BufferedImage) insteadCreates a Favicon from an encoded PNG.- Parameters:
encodedString
- a base64 mime encoded PNG string- Returns:
- the created favicon
-