Interface StoryBlitzChallenge
- All Known Implementing Classes:
BellRingChallenge, BreakBlockChallenge, CraftItemChallenge, EmptyInventoryChallenge, HatSwitchChallenge, KillPlayerChallenge, LadderClimbChallenge, PunchPigChallenge, RidePigChallenge, ShearSheepChallenge, SnowballChallenge
public interface StoryBlitzChallenge
Represents a single challenge in StoryBlitz. Implement this interface to provide custom challenge
logic.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidCalled when the challenge ends (cleanup).Returns the description of the challenge, which is shown to players.default StringgetDescriptionWithGoob(String normalDescription) Returns a description with a chance to include "goob" for fun.booleanisCompleted(org.bukkit.entity.Player player) Checks if the player has completed the challenge.default voidCalled when the challenge starts for the given players.
-
Method Details
-
getDescription
String getDescription()Returns the description of the challenge, which is shown to players.- Returns:
- The description of the challenge.
-
start
Called when the challenge starts for the given players.- Parameters:
players- The players in the game.
-
isCompleted
boolean isCompleted(org.bukkit.entity.Player player) Checks if the player has completed the challenge.- Parameters:
player- The player to check.- Returns:
- true if the player has completed the challenge, false otherwise.
-
cleanup
Called when the challenge ends (cleanup).- Parameters:
players- The players in the game.
-
getDescriptionWithGoob
-