Skip to content

GlowsManager

Xezard edited this page Jan 17, 2021 · 2 revisions

To work with already existing glow objects, you can use the GlowsManager.

With it, you can get a glow object by entity:

GlowsManager.getInstance().getGlowByEntity(Entity entity);

Remove entity from all glow objects:

GlowsManager.getInstance().removeGlowFrom(Entity entity);

Remove observer from all glow objects:

GlowsManager.getInstance().removeViewer(Player viewer);

And also clear and get the entire list of created glow objects:

GlowsManager.getInstance().clear();
GlowsManager.getInstance().getGlows();
Clone this wiki locally