Interface XPrisonBombsAPI


public interface XPrisonBombsAPI
The XPrisonBombsAPI interface provides methods for managing and interacting with bomb items within the XPrison plugin ecosystem. This includes giving bombs to players and retrieving bomb definitions by name.
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieves a Bomb by its name.
    void
    giveBomb(Bomb bomb, int amount, org.bukkit.entity.Player player)
    Gives a specified amount of a Bomb to a Player.
  • Method Details

    • giveBomb

      void giveBomb(Bomb bomb, int amount, org.bukkit.entity.Player player)
      Gives a specified amount of a Bomb to a Player.
      Parameters:
      bomb - the bomb instance to give to the player
      amount - the number of bombs to give
      player - the player who will receive the bomb(s)
    • getBombByName

      Optional<Bomb> getBombByName(String name)
      Retrieves a Bomb by its name.
      Parameters:
      name - the name of the bomb to retrieve
      Returns:
      an Optional containing the found bomb, or empty if not found