Class Overlay

    • Constructor Detail

      • Overlay

        protected Overlay()
      • Overlay

        protected Overlay​(Plugin plugin)
    • Method Detail

      • getName

        public String getName()
        Overlay name, used for saving the overlay, needs to be unique
        overlay name
      • onMouseOver

        public void onMouseOver()
      • onDrag

        public boolean onDrag​(Overlay other)
        Called when an overlay is dragged onto this, if dragTargetable is true. Return true to consume the mouse event and prevent the other overlay from being moved
        other - the overlay being dragged