|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MapView
Represents a map item.
Nested Class Summary | |
---|---|
static class |
MapView.Scale
An enum representing all possible scales a map can be set to. |
Method Summary | |
---|---|
void |
addRenderer(MapRenderer renderer)
Add a renderer to this map. |
int |
getCenterX()
Get the center X position of this map. |
int |
getCenterZ()
Get the center Z position of this map. |
short |
getId()
Get the ID of this map item. |
List<MapRenderer> |
getRenderers()
Get a list of MapRenderers currently in effect. |
MapView.Scale |
getScale()
Get the scale of this map. |
World |
getWorld()
Get the world that this map is associated with. |
boolean |
isVirtual()
Check whether this map is virtual. |
boolean |
removeRenderer(MapRenderer renderer)
Remove a renderer from this map. |
void |
setCenterX(int x)
Set the center X position of this map. |
void |
setCenterZ(int z)
Set the center Z position of this map. |
void |
setScale(MapView.Scale scale)
Set the scale of this map. |
void |
setWorld(World world)
Set the world that this map is associated with. |
Method Detail |
---|
short getId()
boolean isVirtual()
MapView.Scale getScale()
void setScale(MapView.Scale scale)
scale
- The scale to set.int getCenterX()
int getCenterZ()
void setCenterX(int x)
x
- The center X position.void setCenterZ(int z)
z
- The center Z position.World getWorld()
void setWorld(World world)
world
- The World to associate this map with.List<MapRenderer> getRenderers()
void addRenderer(MapRenderer renderer)
renderer
- The MapRenderer to add.boolean removeRenderer(MapRenderer renderer)
renderer
- The MapRenderer to remove.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |