Class ActionBarBuilder

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

public class ActionBarBuilder extends Object
Action Bar Builder
Author:
max
  • Constructor Details

    • ActionBarBuilder

      public ActionBarBuilder(String text)
      Create a new action bar.
      Parameters:
      text - The action bars text.
  • Method Details

    • setText

      public void setText(String text)
      Sets the text of the Action bar.
      Parameters:
      text - The text to set.
    • getText

      public String getText()
      Gets the text of the Action bar.
      Returns:
      The text
    • send

      public void send(org.bukkit.entity.Player player)
      Sends the action bar to a certain player.
      Parameters:
      player - The player.
    • send

      public void send(List<org.bukkit.entity.Player> players)
      Sends the action bar to a list of players.
      Parameters:
      players - The players.
    • sendToAll

      public void sendToAll()
      Sends the action bar to all online players.