Package net.glowstone.util
Class GlowServerIcon
java.lang.Object
net.glowstone.util.GlowServerIcon
- All Implemented Interfaces:
org.bukkit.util.CachedServerIcon
A
CachedServerIcon
implementation.-
Constructor Summary
ConstructorDescriptionCreate an empty icon.GlowServerIcon
(BufferedImage image) Create icon from an image.GlowServerIcon
(File file) Create icon from a file. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.bukkit.util.CachedServerIcon
isEmpty
-
Constructor Details
-
GlowServerIcon
public GlowServerIcon()Create an empty icon. -
GlowServerIcon
Create icon from a file.- Parameters:
file
- The file to load from.- Throws:
Exception
- if the file cannot be read.
-
GlowServerIcon
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
The image data to be sent to the client, or null.- Specified by:
getData
in interfaceorg.bukkit.util.CachedServerIcon
-