All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.dynmap.MapManager Maven / Gradle / Ivy

There is a newer version: 2.23.2
Show newest version
package org.dynmap;

import org.dynmap.hdmap.HDMapManager;

import java.util.HashMap;
import java.util.Map;

/**
 * Private implementation of {@code MapManager} from dynmap in order to work offline.
 *
 * 

Created by Pepijn Schmitz on 05-06-15. */ public class MapManager { public DynmapCore.CompassMode getCompassMode() { return DynmapCore.CompassMode.NEWNORTH; } public boolean getBetterGrass() { return false; } public boolean useBrightnessTable() { return true; } public int getDefaultTileScale() { return 0; } private void init() { Map config = new HashMap<>(); config.put("name", "WorldPainter"); ConfigurationNode configNode = new ConfigurationNode(config); ((WPHDMapManager) hdmapman).init(configNode); } public final HDMapManager hdmapman = new WPHDMapManager(); public static final MapManager mapman = new MapManager(); /* Our singleton */ static { mapman.init(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy