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
ConstructorDescriptionDefault constructor the container for status resistances. -
Method Summary
Modifier and TypeMethodDescriptiongetMap()
Get the Map class for parsing.double
getStatusResistance(StatusType statusType)
Find the resistance to a specified status type.isEmpty()
Helper method to find if status list is empty after initialized.void
setStatusResistances(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,
false
if not
-
setStatusResistances
Reset or create resistances after construction.- Parameters:
resistanceList
- Status resistances to be created
-
toString
-