public static interface PlayerDataHandler.IStageData
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all stages for the player.
|
net.minecraft.entity.player.EntityPlayer |
getPlayer()
Gets the player for the stage data.
|
java.util.Collection<java.lang.String> |
getUnlockedStages()
Gets the name of all unlocked stages.
|
boolean |
hasUnlockedAll(java.util.Collection<java.lang.String> stages)
Checks if a player has all of the passed stages.
|
boolean |
hasUnlockedAnyOf(java.util.Collection<java.lang.String> stages)
Checks if a player has any of the passed stages.
|
boolean |
hasUnlockedStage(java.lang.String stage)
Checks if a player has a stage unlocked.
|
void |
lockStage(java.lang.String stage)
Locks a stage again, for the player.
|
void |
setPlayer(net.minecraft.entity.player.EntityPlayer player)
Sets the player for the stage data.
|
void |
unlockStage(java.lang.String stage)
Unlocks a stage for the player.
|
java.util.Collection<java.lang.String> getUnlockedStages()
boolean hasUnlockedStage(@Nonnull
java.lang.String stage)
stage - The name of the stage to look for.boolean hasUnlockedAnyOf(java.util.Collection<java.lang.String> stages)
stages - The stages to check for, the player only needs one of them.boolean hasUnlockedAll(java.util.Collection<java.lang.String> stages)
stages - The stages to check for, the player must have all of them.void unlockStage(@Nonnull
java.lang.String stage)
stage - The stage to unlock.void lockStage(@Nonnull
java.lang.String stage)
stage - The stage to lock.void setPlayer(@Nonnull
net.minecraft.entity.player.EntityPlayer player)
player - The player to set.void clear()
@Nullable net.minecraft.entity.player.EntityPlayer getPlayer()