Class PlayerHudsHolderWrapper

java.lang.Object
dev.lone.itemsadder.api.FontImages.PlayerHudsHolderWrapper

public class PlayerHudsHolderWrapper extends Object
Wrapper for the HUD holder of a player.
  • Constructor Details

    • PlayerHudsHolderWrapper

      public PlayerHudsHolderWrapper(Player player)
      Creates a HUD holder wrapper for a player.
      Parameters:
      player - the player.
  • Method Details

    • exists

      public boolean exists()
      Checks if the wrapped HUD holder exists.
      Returns:
      true if the internal HUD holder is present.
    • getPlayer

      public Player getPlayer()
      Gets the player associated with this holder.
      Returns:
      the player.
    • recalculateOffsets

      public void recalculateOffsets()
      Recalculates HUD offsets for this player.
    • sendUpdate

      public void sendUpdate()
      Sends a HUD action bar update to this player.