Package de.maxbossing.maxapi.Builders
Class HologramBuilder
java.lang.Object
de.maxbossing.maxapi.Builders.HologramBuilder
Hologram Builder
- Author:
- max
-
Constructor Summary
ConstructorsConstructorDescriptionHologramBuilder(@NotNull org.bukkit.Location location, @NotNull String text) Creates a Hologram at a specified location with text. -
Method Summary
Modifier and TypeMethodDescriptiongetText()Gets the text of the hologram.booleanIf the hologram has gravitybooleanisSmall()If the hologram's armorstand is small or large.booleanChecks if the armorstand is visible or not.voidremove()Removes the hologram from the server.voidsetGravity(boolean gravity) Sets the gravity for the hologram.voidsetSmall(boolean b) Makes the hologram's armorstand small or large.voidSets the text of the hologram.voidsetVisible(boolean visible) Sets the armorstand to be invisible or visible.
-
Constructor Details
-
HologramBuilder
public HologramBuilder(@NotNull @NotNull org.bukkit.Location location, @NotNull @NotNull String text) Creates a Hologram at a specified location with text.- Parameters:
location- The location to create the Hologram at.text- The text for the hologram, it is already formatted with color codes, use the and symbol.
-
-
Method Details
-
setText
Sets the text of the hologram.- Parameters:
text- The text.
-
getText
Gets the text of the hologram.- Returns:
- The text.
-
setSmall
public void setSmall(boolean b) Makes the hologram's armorstand small or large.- Parameters:
b- The boolean.
-
isSmall
public boolean isSmall()If the hologram's armorstand is small or large.- Returns:
- If the armorstand is small or not.
-
setVisible
public void setVisible(boolean visible) Sets the armorstand to be invisible or visible.- Parameters:
visible- The boolean.
-
isVisible
public boolean isVisible()Checks if the armorstand is visible or not.- Returns:
- If the armorstand is visible.
-
setGravity
public void setGravity(boolean gravity) Sets the gravity for the hologram.- Parameters:
gravity- The boolean.
-
hasGravity
public boolean hasGravity()If the hologram has gravity- Returns:
- The boolean.
-
remove
public void remove()Removes the hologram from the server.
-