Class HologramHandler
java.lang.Object
com.bencodez.advancedcore.api.hologram.HologramHandler
Handler for managing holograms.
-
Constructor Summary
ConstructorsConstructorDescriptionHologramHandler(AdvancedCorePlugin plugin) Constructs a new HologramHandler. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a hologram to the handler.voidCalled on shutdown to clean up all holograms.voidRemoves a hologram from the handler and kills it.voidRemoves a hologram from the handler.
-
Constructor Details
-
HologramHandler
Constructs a new HologramHandler.- Parameters:
plugin- the plugin instance
-
-
Method Details
-
add
Adds a hologram to the handler.- Parameters:
hologram- the hologram to add
-
onShutDown
public void onShutDown()Called on shutdown to clean up all holograms. -
remove
Removes a hologram from the handler and kills it.- Parameters:
hologram- the hologram to remove
-
remove
Removes a hologram from the handler.- Parameters:
hologram- the hologram to removekill- whether to kill the hologram
-