Class HologramsService
java.lang.Object
io.github.thebusybiscuit.slimefun4.core.services.holograms.HologramsService
This service is responsible for handling holograms.
- Author:
- TheBusyBiscuit
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis returns the defaultHologramoffset.booleanremoveHologram(Location loc) This removes theHologramat that givenLocation.voidsetHologramLabel(Location loc, String label) This will update the label of theHologram.voidstart()This will start theHologramsServiceand schedule a repeating purge-task.
-
Constructor Details
-
HologramsService
This constructs a newHologramsService.- Parameters:
plugin- OurPlugininstance
-
-
Method Details
-
start
public void start()This will start theHologramsServiceand schedule a repeating purge-task. -
getDefaultOffset
This returns the defaultHologramoffset.- Returns:
- The default offset
-
removeHologram
This removes theHologramat that givenLocation.- Parameters:
loc- TheLocation- Returns:
- Whether the
Hologramcould be removed, false if theHologramdoes not exist or was already removed
-
setHologramLabel
This will update the label of theHologram.- Parameters:
loc- TheLocationof thisHologramlabel- The label to set, can be null
-