public class OneChest
extends java.lang.Object
OnePhase
,
OneChestItem
Modifier and Type | Field and Description |
---|---|
private java.util.List<OneChestItem> |
contentItemStacks
The possible item stacks that can be found in the chest.
|
private OnePhase |
phase
The phase that the chest is part of.
|
private int |
stackCount
How many item stacks are contained in the chest.
|
private OneChestType |
type
The type of the chest.
|
Constructor and Description |
---|
OneChest(OnePhase phase,
OneChestType type)
Constructs a reward chest of a phase, based on the one-block file in the /WauzCore folder.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<OneChestItem> |
getContentItemStacks() |
OnePhase |
getPhase() |
int |
getStackCount() |
OneChestType |
getType() |
void |
spawnRandomFilledChest(org.bukkit.block.Block block)
Spawns a randomly filled instance of this chest.
|
private OnePhase phase
private OneChestType type
private int stackCount
private java.util.List<OneChestItem> contentItemStacks
public OneChest(OnePhase phase, OneChestType type)
phase
- The phase that the chest is part of.type
- The type of the chest.public OnePhase getPhase()
public OneChestType getType()
public int getStackCount()
public java.util.List<OneChestItem> getContentItemStacks()
public void spawnRandomFilledChest(org.bukkit.block.Block block)
block
- The block to turn into a chest.