public class MinigameVanHelsing extends java.lang.Object implements ArcadeMinigame
| Modifier and Type | Field and Description | 
|---|---|
| private java.util.List<org.bukkit.entity.Entity> | batsThe remaining bats in the arena. | 
| private java.util.List<org.bukkit.entity.Player> | finishedPlayersThe players who have shot enough bats. | 
| private int | maxWinningPlayersThe amount of players who can win the game. | 
| private int | neededScoreThe score needed to win the game. | 
| private java.util.Map<org.bukkit.entity.Player,org.bukkit.boss.BossBar> | playerBarMapA map of the player's boss bars. | 
| private java.util.Map<org.bukkit.entity.Player,java.lang.Integer> | playerScoreMapA map of the player's scores. | 
| private java.util.List<org.bukkit.entity.Entity> | silverBatsThe remaining silver bats in the arena. | 
| private SkillParticle | silverParticleThe particles to show around silver bats. | 
| Constructor and Description | 
|---|
| MinigameVanHelsing() | 
| Modifier and Type | Method and Description | 
|---|---|
| private void | addProgress(org.bukkit.entity.Player player,
           int progress)Adds progress to the given player's goal. | 
| java.util.List<org.bukkit.entity.Player> | endGame()Ends the game and decides a winner. | 
| java.util.List<java.lang.String> | getDescription() | 
| java.lang.String | getName() | 
| void | handleDamageEvent(org.bukkit.event.entity.EntityDamageEvent event)Handles the given damage event, that occured in the minigame. | 
| void | handleStartEvent()Handles the start event, that gets fired when the start countdown ends. | 
| void | handleTick()A method that is called every second of the minigame. | 
| void | startGame(java.util.List<org.bukkit.entity.Player> players)Starts a new game. | 
| private void | updateProgressBar(org.bukkit.entity.Player player)Updates the progress bar for the given player. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleAnimationEvent, handleDeathEvent, handleInteractEvent, handleMoveEvent, handleProjectileHitEvent, handleQuitEventprivate java.util.Map<org.bukkit.entity.Player,java.lang.Integer> playerScoreMap
private java.util.Map<org.bukkit.entity.Player,org.bukkit.boss.BossBar> playerBarMap
private java.util.List<org.bukkit.entity.Player> finishedPlayers
private java.util.List<org.bukkit.entity.Entity> bats
private java.util.List<org.bukkit.entity.Entity> silverBats
private SkillParticle silverParticle
private int maxWinningPlayers
private int neededScore
public java.lang.String getName()
getName in interface ArcadeMinigamepublic java.util.List<java.lang.String> getDescription()
getDescription in interface ArcadeMinigamepublic void startGame(java.util.List<org.bukkit.entity.Player> players)
startGame in interface ArcadeMinigameplayers - The players who participate.public void handleStartEvent()
handleStartEvent in interface ArcadeMinigamepublic java.util.List<org.bukkit.entity.Player> endGame()
endGame in interface ArcadeMinigamepublic void handleDamageEvent(org.bukkit.event.entity.EntityDamageEvent event)
handleDamageEvent in interface ArcadeMinigameevent - The damage event.public void handleTick()
handleTick in interface ArcadeMinigameprivate void addProgress(org.bukkit.entity.Player player,
                         int progress)
player - The player to add progress for.progress - The amount of progress to add.private void updateProgressBar(org.bukkit.entity.Player player)
player - The player to update the bar for.