public final class GlowServerIcon extends Object implements org.bukkit.util.CachedServerIcon
CachedServerIcon implementation.| Constructor and Description |
|---|
GlowServerIcon()
Create an empty icon.
|
GlowServerIcon(BufferedImage image)
Create icon from an image.
|
GlowServerIcon(File file)
Create icon from a file.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getData()
The image data to be sent to the client, or null.
|
public GlowServerIcon()
public GlowServerIcon(File file) throws Exception
file - The file to load from.Exception - if the file cannot be read.public GlowServerIcon(BufferedImage image) throws Exception
image - The image to load from.Exception - if the image cannot be read, or is not the correct sizepublic String getData()
getData in interface org.bukkit.util.CachedServerIconCopyright © 2021. All rights reserved.