Class OverlaySet
java.lang.Object
privbot.ui.overlay.OverlaySet
- All Implemented Interfaces:
AutoCloseable
The overlays a plugin registered, as one handle:
setVisible(boolean) adds or removes them
all, close() removes them for shutDown().-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Removes every overlay from the manager; call it inshutDown().booleanWhether the overlays are currently registered with the manager.List<net.runelite.client.ui.overlay.Overlay> overlays()The overlays in this set, in install order (unmodifiable).voidsetVisible(boolean show) Add every overlay to the manager (true) or remove them (false); idempotent.
-
Method Details
-
overlays
The overlays in this set, in install order (unmodifiable). -
isVisible
public boolean isVisible()Whether the overlays are currently registered with the manager. -
setVisible
public void setVisible(boolean show) Add every overlay to the manager (true) or remove them (false); idempotent. -
close
public void close()Removes every overlay from the manager; call it inshutDown(). Safe to call twice.- Specified by:
closein interfaceAutoCloseable
-