public class MapSettings
extends java.lang.Object
Minimap
that can be loaded from a config.Modifier and Type | Field and Description |
---|---|
protected java.util.List<java.lang.Double> |
allowedZooms |
protected boolean |
autoUpdate |
protected java.util.Set<java.lang.String> |
blacklistedWorlds |
protected boolean |
circularZoom |
protected double |
defaultZoom |
protected boolean |
ditherBackground |
protected boolean |
ditherDisabled |
protected boolean |
ditherOverlay |
protected boolean |
isWhitelist |
protected MinimapPalette |
palette |
protected boolean |
renderOutOfBorder |
protected BooleanOption |
rotation |
Constructor and Description |
---|
MapSettings(org.bukkit.configuration.file.FileConfiguration config) |
Modifier and Type | Method and Description |
---|---|
double |
getDefaultZoom() |
double |
getFarthestZoom() |
double |
getNextZoom(double currentZoom) |
MinimapPalette |
getPalette() |
double |
getPreviousZoom(double currentZoom) |
BooleanOption |
getRotation() |
boolean |
isAutoUpdate() |
boolean |
isBlacklisted(java.lang.String world) |
boolean |
isCircularZoom() |
boolean |
isDitherBackground() |
boolean |
isDitherBlacklisted() |
boolean |
isDitherOverlay() |
boolean |
isRenderOutOfBorder() |
boolean |
isValidZoom(double scale) |
void |
setAutoUpdate(boolean autoUpdate) |
void |
setCircularZoom(boolean circular) |
void |
setDefaultZoom(double defaultZoom) |
void |
setDitherBackground(boolean ditherBackground) |
void |
setDitherBlacklisted(boolean ditherBlacklisted) |
void |
setDitherOverlay(boolean ditherOverlay) |
void |
setPalette(MinimapPalette palette) |
void |
setRenderOutOfBorder(boolean render) |
void |
setRotation(BooleanOption rotation) |
protected java.util.List<java.lang.Double> allowedZooms
protected double defaultZoom
protected boolean circularZoom
protected boolean isWhitelist
protected java.util.Set<java.lang.String> blacklistedWorlds
protected boolean autoUpdate
protected boolean renderOutOfBorder
protected BooleanOption rotation
protected boolean ditherOverlay
protected boolean ditherBackground
protected boolean ditherDisabled
protected MinimapPalette palette
public MapSettings(org.bukkit.configuration.file.FileConfiguration config)
public double getDefaultZoom()
public void setDefaultZoom(double defaultZoom)
public boolean isCircularZoom()
public void setCircularZoom(boolean circular)
public boolean isValidZoom(double scale)
public boolean isAutoUpdate()
public void setAutoUpdate(boolean autoUpdate)
public boolean isRenderOutOfBorder()
public void setRenderOutOfBorder(boolean render)
public BooleanOption getRotation()
public void setRotation(BooleanOption rotation)
public boolean isDitherOverlay()
public void setDitherOverlay(boolean ditherOverlay)
public boolean isDitherBackground()
public void setDitherBackground(boolean ditherBackground)
public boolean isDitherBlacklisted()
public void setDitherBlacklisted(boolean ditherBlacklisted)
public MinimapPalette getPalette()
public void setPalette(MinimapPalette palette)
public boolean isBlacklisted(java.lang.String world)
public double getPreviousZoom(double currentZoom)
public double getNextZoom(double currentZoom)
public double getFarthestZoom()