public class StageData extends java.lang.Object implements IStageData
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TAG_STAGES |
| Constructor and Description |
|---|
StageData() |
| Modifier and Type | Method and Description |
|---|---|
void |
addStage(java.lang.String stage)
Adds a stage to the unlocked stages collection.
|
void |
clear()
Clears all of the unlocked stages.
|
java.util.Collection<java.lang.String> |
getStages()
Gets a collection of all unlocked stages.
|
boolean |
hasStage(java.lang.String stage)
Checks if a stage is unlocked.
|
void |
readFromNBT(net.minecraft.nbt.CompoundNBT tag) |
void |
removeStage(java.lang.String stage)
Removes a stage from the unlocked stages collection.
|
java.lang.String |
toString() |
net.minecraft.nbt.CompoundNBT |
writeToNBT() |
public static final java.lang.String TAG_STAGES
public java.util.Collection<java.lang.String> getStages()
IStageDatagetStages in interface IStageDatapublic boolean hasStage(java.lang.String stage)
IStageDatahasStage in interface IStageDatastage - The stage to check.public void addStage(java.lang.String stage)
IStageDataaddStage in interface IStageDatastage - The stage to unlock.public void removeStage(java.lang.String stage)
IStageDataremoveStage in interface IStageDatastage - The stage to remove.public void clear()
IStageDataclear in interface IStageDatapublic void readFromNBT(net.minecraft.nbt.CompoundNBT tag)
readFromNBT in interface IStageDatapublic net.minecraft.nbt.CompoundNBT writeToNBT()
writeToNBT in interface IStageDatapublic java.lang.String toString()
toString in class java.lang.Object