Class DHHologramProvider
java.lang.Object
io.github.projectunified.unihologram.spigot.decentholograms.DHHologramProvider
- All Implemented Interfaces:
HologramProvider<org.bukkit.Location>
The hologram provider for DecentHolograms
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull Hologram<org.bukkit.Location>
createHologram
(@NotNull String name, @NotNull org.bukkit.Location location) Create a new hologramCollection<Hologram<org.bukkit.Location>>
Get all hologramsgetHologram
(@NotNull String name) Get a hologram by its namestatic boolean
Check if DecentHolograms is available
-
Constructor Details
-
DHHologramProvider
public DHHologramProvider()
-
-
Method Details
-
isAvailable
public static boolean isAvailable()Check if DecentHolograms is available- Returns:
- true if available
-
createHologram
@NotNull public @NotNull Hologram<org.bukkit.Location> createHologram(@NotNull @NotNull String name, @NotNull @NotNull org.bukkit.Location location) Description copied from interface:HologramProvider
Create a new hologram- Specified by:
createHologram
in interfaceHologramProvider<org.bukkit.Location>
- Parameters:
name
- the name of the hologramlocation
- the location of the hologram- Returns:
- the hologram
-
getHologram
Description copied from interface:HologramProvider
Get a hologram by its name- Specified by:
getHologram
in interfaceHologramProvider<org.bukkit.Location>
- Parameters:
name
- the name of the hologram- Returns:
- the hologram
-
getAllHolograms
Description copied from interface:HologramProvider
Get all holograms- Specified by:
getAllHolograms
in interfaceHologramProvider<org.bukkit.Location>
- Returns:
- the collection of holograms
-