Class GlowServerIcon

java.lang.Object
net.glowstone.util.GlowServerIcon
All Implemented Interfaces:
org.bukkit.util.CachedServerIcon

public final class GlowServerIcon extends Object implements org.bukkit.util.CachedServerIcon
A CachedServerIcon implementation.
  • Constructor Details

    • GlowServerIcon

      public GlowServerIcon()
      Create an empty icon.
    • GlowServerIcon

      public GlowServerIcon(File file) throws Exception
      Create icon from a file.
      Parameters:
      file - The file to load from.
      Throws:
      Exception - if the file cannot be read.
    • GlowServerIcon

      public GlowServerIcon(BufferedImage image) throws Exception
      Create icon from an image.
      Parameters:
      image - The image to load from.
      Throws:
      Exception - if the image cannot be read, or is not the correct size
  • Method Details

    • getData

      public String getData()
      The image data to be sent to the client, or null.
      Specified by:
      getData in interface org.bukkit.util.CachedServerIcon