Class HologramBuilder

java.lang.Object
de.maxbossing.maxapi.Builders.HologramBuilder

public class HologramBuilder extends Object
Hologram Builder
Author:
max
  • Constructor Summary

    Constructors
    Constructor
    Description
    HologramBuilder(@NotNull org.bukkit.Location location, @NotNull String text)
    Creates a Hologram at a specified location with text.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the text of the hologram.
    boolean
    If the hologram has gravity
    boolean
    If the hologram's armorstand is small or large.
    boolean
    Checks if the armorstand is visible or not.
    void
    Removes the hologram from the server.
    void
    setGravity(boolean gravity)
    Sets the gravity for the hologram.
    void
    setSmall(boolean b)
    Makes the hologram's armorstand small or large.
    void
    setText(@NotNull String text)
    Sets the text of the hologram.
    void
    setVisible(boolean visible)
    Sets the armorstand to be invisible or visible.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public void setText(@NotNull @NotNull String text)
      Sets the text of the hologram.
      Parameters:
      text - The text.
    • getText

      public String 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.