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()
MapDisplayProvider
Frame
from this provider at any timegetSource
in interface MapDisplayProvider
public void interactAt(org.bukkit.entity.Entity entity, DisplayInteract action, int x, int y)
MapDisplayProvider
interactAt
in interface MapDisplayProvider
entity
- 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)
MapDisplayProvider
provideFor
in interface MapDisplayProvider
public void setImage(java.awt.image.BufferedImage image)
public void stopProviding()
MapDisplayProvider
stopProviding
in interface MapDisplayProvider