public class GameStageHelper
extends java.lang.Object
| Constructor and Description |
|---|
GameStageHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addStage(net.minecraft.entity.player.EntityPlayer player,
java.lang.String stage)
Adds a stage to a player.
|
static boolean |
clientHasAllOf(net.minecraft.entity.player.EntityPlayer player,
java.util.Collection<java.lang.String> stages)
Deprecated.
Non-client methods should work. Will be removed in 1.13.
|
static boolean |
clientHasAllOf(net.minecraft.entity.player.EntityPlayer player,
java.lang.String... stages)
Deprecated.
Non-client methods should work. Will be removed in 1.13.
|
static boolean |
clientHasAnyOf(net.minecraft.entity.player.EntityPlayer player,
java.util.Collection<java.lang.String> stages)
Deprecated.
Non-client methods should work. Will be removed in 1.13.
|
static boolean |
clientHasAnyOf(net.minecraft.entity.player.EntityPlayer player,
java.lang.String... stages)
Deprecated.
Non-client methods should work. Will be removed in 1.13.
|
static boolean |
clientHasStage(net.minecraft.entity.player.EntityPlayer player,
java.lang.String stage)
Deprecated.
Non-client methods should work. Will be removed in 1.13.
|
static IStageData |
getPlayerData(net.minecraft.entity.player.EntityPlayer player)
Gets the player data for an EntityPlayer.
|
static boolean |
hasAllOf(net.minecraft.entity.player.EntityPlayer player,
java.util.Collection<java.lang.String> stages)
Checks if a player has all of the passed stages.
|
static boolean |
hasAllOf(net.minecraft.entity.player.EntityPlayer player,
IStageData playerData,
java.util.Collection<java.lang.String> stages)
Checks if a player data has all of the passed stages.
|
static boolean |
hasAllOf(net.minecraft.entity.player.EntityPlayer player,
IStageData playerData,
java.lang.String... stages)
Checks if a player data has all of the passed stages.
|
static boolean |
hasAllOf(net.minecraft.entity.player.EntityPlayer player,
java.lang.String... stages)
Checks if a player has all of the passed stages.
|
static boolean |
hasAnyOf(net.minecraft.entity.player.EntityPlayer player,
java.util.Collection<java.lang.String> stages)
Checks if a player has any of the passed stages.
|
static boolean |
hasAnyOf(net.minecraft.entity.player.EntityPlayer player,
IStageData playerData,
java.util.Collection<java.lang.String> stages)
Checks if a player data has any of the passed stages.
|
static boolean |
hasAnyOf(net.minecraft.entity.player.EntityPlayer player,
IStageData playerData,
java.lang.String... stages)
Checks if a player data has any of the passed stages.
|
static boolean |
hasAnyOf(net.minecraft.entity.player.EntityPlayer player,
java.lang.String... stages)
Checks if a player has any of the passed stages.
|
static boolean |
hasStage(net.minecraft.entity.player.EntityPlayer player,
IStageData data,
java.lang.String stage)
Internal helper method to fire a stage check.
|
static boolean |
hasStage(net.minecraft.entity.player.EntityPlayer player,
java.lang.String stage)
Checks if a player has a stage.
|
static void |
removeStage(net.minecraft.entity.player.EntityPlayer player,
java.lang.String stage)
Removes a stages from a player.
|
static void |
syncPlayer(net.minecraft.entity.player.EntityPlayer player)
A generic version of
syncPlayer(EntityPlayerMP). |
static void |
syncPlayer(net.minecraft.entity.player.EntityPlayerMP player)
Syncs a client's data with the data that is on the server.
|
public static boolean hasStage(net.minecraft.entity.player.EntityPlayer player,
java.lang.String stage)
player - The player to check the stages of.stage - The stage to look for.public static boolean hasAnyOf(net.minecraft.entity.player.EntityPlayer player,
java.lang.String... stages)
player - The player to check the stages of.stages - The stages to look for.public static boolean hasAnyOf(net.minecraft.entity.player.EntityPlayer player,
java.util.Collection<java.lang.String> stages)
player - The player to check the stages of.stages - The stages to look for.public static boolean hasAnyOf(net.minecraft.entity.player.EntityPlayer player,
IStageData playerData,
java.util.Collection<java.lang.String> stages)
player - The player to check the stages of.playerData - The player data to check.stages - The stages to look for.public static boolean hasAnyOf(net.minecraft.entity.player.EntityPlayer player,
IStageData playerData,
java.lang.String... stages)
player - The player to check the stages of.playerData - The player data to check.stages - The stages to look for.public static boolean hasAllOf(net.minecraft.entity.player.EntityPlayer player,
java.lang.String... stages)
player - The player to check the stages of.stages - The stages to look for.public static boolean hasAllOf(net.minecraft.entity.player.EntityPlayer player,
java.util.Collection<java.lang.String> stages)
player - The player to check the stages of.stages - The stages to look for.public static boolean hasAllOf(net.minecraft.entity.player.EntityPlayer player,
IStageData playerData,
java.util.Collection<java.lang.String> stages)
player - The player to check the stages of.playerData - The player data to check.stages - The stages to look for.public static boolean hasAllOf(net.minecraft.entity.player.EntityPlayer player,
IStageData playerData,
java.lang.String... stages)
player - The player to check the stages of.playerData - The player data to check.stages - The stages to look for.public static boolean hasStage(net.minecraft.entity.player.EntityPlayer player,
IStageData data,
java.lang.String stage)
player - The player to check the stages of.data - The player's stage data. This is to allow multiple stage checks to look this
up only once.stage - The stage to check for.public static void addStage(net.minecraft.entity.player.EntityPlayer player,
java.lang.String stage)
player - The player to add the stage too.stage - The stage to add.public static void removeStage(net.minecraft.entity.player.EntityPlayer player,
java.lang.String stage)
player - The player to remove the stage from.stage - The stage to remove.public static IStageData getPlayerData(net.minecraft.entity.player.EntityPlayer player)
player - The player to get the data of.public static void syncPlayer(net.minecraft.entity.player.EntityPlayer player)
syncPlayer(EntityPlayerMP). It still only works for
multiplayer, but allows some code to be cleaner.player - The player to sync.public static void syncPlayer(net.minecraft.entity.player.EntityPlayerMP player)
player - The player to sync.@Deprecated
public static boolean clientHasStage(net.minecraft.entity.player.EntityPlayer player,
java.lang.String stage)
player - The player to check the stages of.stage - The stage to look for.@Deprecated
public static boolean clientHasAllOf(net.minecraft.entity.player.EntityPlayer player,
java.lang.String... stages)
player - The player to check the stages of.stages - The stages to look for.@Deprecated
public static boolean clientHasAllOf(net.minecraft.entity.player.EntityPlayer player,
java.util.Collection<java.lang.String> stages)
player - The player to check the stages of.stages - The stages to look for.@Deprecated
public static boolean clientHasAnyOf(net.minecraft.entity.player.EntityPlayer player,
java.lang.String... stages)
player - The player to check the stages of.stages - The stages to look for.@Deprecated
public static boolean clientHasAnyOf(net.minecraft.entity.player.EntityPlayer player,
java.util.Collection<java.lang.String> stages)
player - The player to check the stages of.stages - The stages to look for.