public class MinigameThinIce extends MinigameTemplateBreakingFloor
breakingBlocks, eliminatedPlayers, maxLosingPlayers
Constructor and Description |
---|
MinigameThinIce() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
private org.bukkit.inventory.ItemStack |
getSnowballItemStack(int amount)
Gets an item stack of snowballs.
|
void |
handleMoveEvent(org.bukkit.event.player.PlayerMoveEvent event)
Handles the given move event, that occured in the minigame.
|
void |
handleProjectileHitEvent(org.bukkit.event.entity.ProjectileHitEvent event)
Handles the given projectile hit event, that occured in the minigame.
|
void |
handleQuitEvent(org.bukkit.entity.Player player)
Handles the given quit 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 |
makeBlockMelt(org.bukkit.block.Block block)
Makes the given block melt to the next stage and removes it temporarily from the list.
|
private void |
makeBlockMeltable(org.bukkit.block.Block block)
Makes the given block meltable and re-adds it to the list.
|
void |
startGame(java.util.List<org.bukkit.entity.Player> players)
Starts a new game.
|
endGame, getDescription
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handleAnimationEvent, handleDamageEvent, handleDeathEvent, handleInteractEvent
public java.lang.String getName()
public void startGame(java.util.List<org.bukkit.entity.Player> players)
players
- The players who participate.public void handleStartEvent()
public void handleQuitEvent(org.bukkit.entity.Player player)
player
- The player who quit.public void handleProjectileHitEvent(org.bukkit.event.entity.ProjectileHitEvent event)
event
- The projectile hit event.public void handleMoveEvent(org.bukkit.event.player.PlayerMoveEvent event)
event
- The move event.public void handleTick()
public void makeBlockMelt(org.bukkit.block.Block block)
block
- The block to melt.private void makeBlockMeltable(org.bukkit.block.Block block)
block
- The block to make meltable.private org.bukkit.inventory.ItemStack getSnowballItemStack(int amount)
amount
- The amount of snowballs.