public interface MapView
| Modifier and Type | Interface | Description | 
|---|---|---|
| static class  | MapView.Scale | An enum representing all possible scales a map can be set to. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| void | addRenderer(@NotNull 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. | 
| int | getId() | Get the ID of this map item for use with  MapMeta. | 
| @NotNull List<MapRenderer> | getRenderers() | Get a list of MapRenderers currently in effect. | 
| @NotNull MapView.Scale | getScale() | Get the scale of this map. | 
| @Nullable World | getWorld() | Get the world that this map is associated with. | 
| boolean | isLocked() | Gets whether the map is locked or not. | 
| boolean | isTrackingPosition() | Gets whether a position cursor should be shown when the map is near its
 center. | 
| boolean | isUnlimitedTracking() | Whether the map will show a smaller position cursor (true), or no
 position cursor (false) when cursor is outside of map's range. | 
| boolean | isVirtual() | Check whether this map is virtual. | 
| boolean | removeRenderer(@Nullable 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 | setLocked(boolean locked) | Gets whether the map is locked or not. | 
| void | setScale(@NotNull MapView.Scale scale) | Set the scale of this map. | 
| void | setTrackingPosition(boolean trackingPosition) | Sets whether a position cursor should be shown when the map is near its
 center. | 
| void | setUnlimitedTracking(boolean unlimited) | Whether the map will show a smaller position cursor (true), or no
 position cursor (false) when cursor is outside of map's range. | 
| void | setWorld(@NotNull World world) | Set the world that this map is associated with. | 
int getId()
MapMeta.boolean isVirtual()
@NotNull @NotNull MapView.Scale getScale()
void setScale(@NotNull
              @NotNull 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.@Nullable @Nullable World getWorld()
void setWorld(@NotNull
              @NotNull World world)
world - The World to associate this map with.@NotNull @NotNull List<MapRenderer> getRenderers()
List<MapRenderer> containing each map renderer.void addRenderer(@NotNull
                 @NotNull MapRenderer renderer)
renderer - The MapRenderer to add.boolean removeRenderer(@Nullable
                       @Nullable MapRenderer renderer)
renderer - The MapRenderer to remove.boolean isTrackingPosition()
void setTrackingPosition(boolean trackingPosition)
trackingPosition - tracking statusboolean isUnlimitedTracking()
void setUnlimitedTracking(boolean unlimited)
unlimited - tracking stateboolean isLocked()
void setLocked(boolean locked)
locked - statusCopyright © 2020. All rights reserved.