Class Favicon

java.lang.Object
net.md_5.bungee.api.Favicon

public class Favicon extends Object
Favicon shown in the server list.
  • Constructor Details

    • Favicon

      public Favicon()
  • Method Details

    • getFaviconTypeAdapter

      public static com.google.gson.TypeAdapter<Favicon> getFaviconTypeAdapter()
    • create

      public static Favicon create(BufferedImage image)
      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 than Short.MAX_VALUE or not of dimensions 64x64 pixels.
    • create

      @Deprecated public static Favicon create(String encodedString)
      Deprecated.
      Use #create(java.awt.image.BufferedImage) instead
      Creates a Favicon from an encoded PNG.
      Parameters:
      encodedString - a base64 mime encoded PNG string
      Returns:
      the created favicon