public class OnePhaseLevel
extends java.lang.Object
OnePhase
Modifier and Type | Field and Description |
---|---|
private int |
blockAmount
How many blocks need to be mined, to proceed to the next level.
|
private java.util.List<org.bukkit.Material> |
blocks
All the possible blocks spawning in the level.
|
private java.lang.String |
levelKey
The key of the phase's level.
|
private java.lang.String |
levelName
The display name of the level.
|
private OnePhase |
phase
The phase that the level is part of.
|
Constructor and Description |
---|
OnePhaseLevel(OnePhase phase,
java.lang.String levelKey)
Constructs a level of a phase, based on the one-block file in the /WauzCore folder.
|
Modifier and Type | Method and Description |
---|---|
int |
getBlockAmount() |
java.util.List<org.bukkit.Material> |
getBlocks() |
java.lang.String |
getLevelKey() |
java.lang.String |
getLevelName() |
OnePhase |
getPhase() |
org.bukkit.Material |
getRandomBlockMaterial() |
void |
placeRandomBlock(org.bukkit.block.Block block)
Replaces the given block with a random block of the level.
|
private OnePhase phase
private java.lang.String levelKey
private java.lang.String levelName
private int blockAmount
private java.util.List<org.bukkit.Material> blocks
public OnePhaseLevel(OnePhase phase, java.lang.String levelKey)
phase
- The phase that the level is part of.levelKey
- The key of the phase's level.public void placeRandomBlock(org.bukkit.block.Block block)
block
- The block to replace.public OnePhase getPhase()
public java.lang.String getLevelKey()
public java.lang.String getLevelName()
public int getBlockAmount()
public java.util.List<org.bukkit.Material> getBlocks()
public org.bukkit.Material getRandomBlockMaterial()