Class WMapAddon


public abstract class WMapAddon extends Expansion
Represents a warp map addon that can allow control markers on web-based maps.
  • Field Details

    • newSetup

      public boolean newSetup
      This variable determines if the expansion hasn't been loaded before. This variable should be checked addNewWarps() and then should be set to false when you've added the marker, should also be set to true in the #load() method if the expansion hasn't been loaded before.
  • Constructor Details

    • WMapAddon

      public WMapAddon()
  • Method Details

    • addMarker

      public abstract void addMarker(Warp warp)
      Adds the marker to the map when either the map is a new install or a warp has been created.
      Parameters:
      warp - The warp that will be added to the map.
    • removeMarker

      public abstract void removeMarker(Warp warp)
      Removes the marker from the map when the warp is removed.
      Parameters:
      warp - The warp that will be removed from the map.
    • updateMarker

      public abstract void updateMarker(Warp warp)
      Updates the marker when a warps' data has been changed.
      Parameters:
      warp - The warp that needs to be updated on the map
    • addNewWarps

      public abstract void addNewWarps()
      Adds all the new warps to the map.