Package dev.drawethree.xprison.api.bombs
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
-
Method Details
-
giveBomb
Gives a specified amount of aBomb
to aPlayer
.- Parameters:
bomb
- the bomb instance to give to the playeramount
- the number of bombs to giveplayer
- the player who will receive the bomb(s)
-
getBombByName
Retrieves aBomb
by its name.- Parameters:
name
- the name of the bomb to retrieve- Returns:
- an
Optional
containing the found bomb, or empty if not found
-