Class StatusResistancesList
java.lang.Object
games.stendhal.server.entity.status.StatusResistancesList
- Author:
- AntumDeluge Some code based on games.stendhal.server.entity.status.StatusList Container that holds information about the entities current resistances to status effects.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor the container for status resistances. -
Method Summary
Modifier and TypeMethodDescriptiongetMap()Get the Map class for parsing.doublegetStatusResistance(StatusType statusType) Find the resistance to a specified status type.isEmpty()Helper method to find if status list is empty after initialized.voidsetStatusResistances(Map<StatusType, Double> resistanceList) Reset or create resistances after construction.toString()
-
Constructor Details
-
StatusResistancesList
public StatusResistancesList()Default constructor the container for status resistances.
-
-
Method Details
-
getMap
Get the Map class for parsing.- Returns:
- Map class of resistance list
-
getStatusResistance
Find the resistance to a specified status type.- Parameters:
statusType- Status type to be resisted- Returns:
- Resistance value
-
isEmpty
Helper method to find if status list is empty after initialized.- Returns:
true if empty,falseif not
-
setStatusResistances
Reset or create resistances after construction.- Parameters:
resistanceList- Status resistances to be created
-
toString
-