public class ImageProvider extends java.lang.Object implements MapDisplayProvider
MapDisplay; will show an image with the given height and width
Also allows simple dot drawing with left and right click.| Constructor and Description |
|---|
ImageProvider(java.awt.image.BufferedImage image) |
| Modifier and Type | Method and Description |
|---|---|
Frame |
getSource()
Get a
Frame from this provider at any time |
void |
interactAt(org.bukkit.entity.Entity entity,
DisplayInteract action,
int x,
int y)
Interaction with an entity on the board
|
void |
provideFor(MapDisplay display)
Start providing frames for the given display
|
void |
setImage(java.awt.image.BufferedImage image) |
void |
stopProviding()
Terminate this MapDisplayProvider and stop providing frames for any display
|
public Frame getSource()
MapDisplayProviderFrame from this provider at any timegetSource in interface MapDisplayProviderpublic void interactAt(org.bukkit.entity.Entity entity,
DisplayInteract action,
int x,
int y)
MapDisplayProviderinteractAt in interface MapDisplayProviderentity - Either a player or a projectileaction - Will only be DisplayInteract.PROJECTILE if entity is a projectilex - The X relative to the top left cornery - The Y relative to the top left cornerpublic void provideFor(MapDisplay display)
MapDisplayProviderprovideFor in interface MapDisplayProviderpublic void setImage(java.awt.image.BufferedImage image)
public void stopProviding()
MapDisplayProviderstopProviding in interface MapDisplayProvider