public enum ZoomScale extends java.lang.Enum<ZoomScale>
Enum Constant and Description |
---|
EIGHT
Deprecated.
|
EIGHTH
Deprecated.
|
FOUR
Deprecated.
|
FOURTH
Deprecated.
|
HALF
Deprecated.
|
ONE
Deprecated.
|
SIXTEEN
Deprecated.
|
SIXTEENTH
Deprecated.
|
SIXTY_FOURTH
Deprecated.
|
THIRTY_SECONDTH
Deprecated.
|
TWO
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
double |
getBlocksPerPixel()
Deprecated.
The amount of blocks per pixel that would be shown on the
Minimap . |
static ZoomScale |
getScale(double scale)
Deprecated.
Get the closest ZoomScale to the value provided.
|
static ZoomScale |
getScaleFromBukkit(org.bukkit.map.MapView.Scale scale)
Deprecated.
Convert Bukkit's map scaling to a zoom scale.
|
boolean |
isLeastZoomed()
Deprecated.
Check if the zoom scale is the most zoomed out.
|
boolean |
isMostZoomed()
Deprecated.
Check if the zoom scale is the most zoomed in.
|
ZoomScale |
unzoom(boolean circular)
Deprecated.
Get the next ZoomScale.
|
static ZoomScale |
valueOf(java.lang.String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static ZoomScale[] |
values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
ZoomScale |
zoom(boolean circular)
Deprecated.
Get the previous ZoomScale.
|
public static final ZoomScale SIXTY_FOURTH
public static final ZoomScale THIRTY_SECONDTH
public static final ZoomScale SIXTEENTH
public static final ZoomScale EIGHTH
public static final ZoomScale FOURTH
public static final ZoomScale HALF
public static final ZoomScale ONE
public static final ZoomScale TWO
public static final ZoomScale FOUR
public static final ZoomScale EIGHT
public static final ZoomScale SIXTEEN
public static ZoomScale[] values()
for (ZoomScale c : ZoomScale.values()) System.out.println(c);
public static ZoomScale valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic double getBlocksPerPixel()
Minimap
.public ZoomScale zoom(boolean circular)
circular
- Whether or not to wrap around from the end of the ZoomScale list.public ZoomScale unzoom(boolean circular)
circular
- Whether or not to wrap around from the beginning of the ZoomScale list.public static ZoomScale getScale(double scale)
scale
- Scale in blocks-per-pixel.public boolean isLeastZoomed()
public boolean isMostZoomed()
public static ZoomScale getScaleFromBukkit(org.bukkit.map.MapView.Scale scale)
scale
- Minecraft's default map scaling