public class MinigameWallSiege extends java.lang.Object implements ArcadeMinigame
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<org.bukkit.entity.Entity> |
boxes
The remaining boxes in the arena.
|
private java.util.List<org.bukkit.entity.Player> |
finishedPlayers
The players who have crossed the finish line.
|
private int |
maxWinningPlayers
The amount of players who can win the game.
|
| Constructor and Description |
|---|
MinigameWallSiege() |
| Modifier and Type | Method and Description |
|---|---|
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 |
handleMoveEvent(org.bukkit.event.player.PlayerMoveEvent event)
Handles the given move event, that occured in the minigame.
|
void |
spawnBoxes(org.bukkit.Location location,
int height,
int amount)
Spawns pushable shulker boxes around the given location.
|
void |
startGame(java.util.List<org.bukkit.entity.Player> players)
Starts a new game.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleAnimationEvent, handleDeathEvent, handleInteractEvent, handleProjectileHitEvent, handleQuitEvent, handleStartEvent, handleTickprivate java.util.List<org.bukkit.entity.Player> finishedPlayers
private java.util.List<org.bukkit.entity.Entity> boxes
private int maxWinningPlayers
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 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 handleMoveEvent(org.bukkit.event.player.PlayerMoveEvent event)
handleMoveEvent in interface ArcadeMinigameevent - The move event.public void spawnBoxes(org.bukkit.Location location,
int height,
int amount)
location - The location where to spawn the boxes.height - The height of the boxes.amount - The amount of boxes to spawn.