package org.dynmap; import org.bukkit.Location; import org.dynmap.markers.MarkerAPI; /** * This is the interface representing the published API for the Dynmap plugin. Public methods of the * DynmapPlugin class that are not defined in this interface are subject to change without notice, so * be careful with forming dependencies beyond these. Plugins accessing dynmap 0.24 or later should * do so by casting the Plugin to this interface. * */ public interface DynmapAPI { /** * This method can return null if the 'markers' component has not been configured - * a warning message will be issued to the server.log in this event. * * @return MarkerAPI, or null if not configured */ public MarkerAPI getMarkerAPI(); /** * Test if the marker API has been initialized yet * * @return true if it has been initialized */ public boolean markerAPIInitialized(); /** * Send generic message to all web users * @param sender - label for sender of message ("Message from :") - if null, no from notice * @param msg - message to be sent */ public boolean sendBroadcastToWeb(String sender, String msg); /** * Trigger update on tiles associated with given locations. If two locations provided, * the volume is the rectangular prism ("cuboid") with the two locations on opposite corners. * * @param l0 - first location (required) * @param l1 - second location (if null, only single point invalidated (l0)) * @return number of tiles queued to be rerendered */ public int triggerRenderOfVolume(Location l0, Location l1); }