Class StatusHealerEater
java.lang.Object
games.stendhal.server.entity.item.consumption.StatusHealerEater
- All Implemented Interfaces:
TurnListener
Times out status healing/immunizing items.
- Author:
- hendrik, AntumDeluge
-
Constructor Summary
ConstructorsConstructorDescriptionStatusHealerEater(RPEntity entity, StatusType status) Constructor defining one status healed by the item.StatusHealerEater(RPEntity entity, Set<StatusType> status) Constructor defining multiple statuses healed by the item. -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()voidonTurnReached(int currentTurn) This method is called when the turn number is reached.
-
Constructor Details
-
StatusHealerEater
Constructor defining one status healed by the item.- Parameters:
entity- Entity the item is used on.status- Status type this item cures.
-
StatusHealerEater
Constructor defining multiple statuses healed by the item.- Parameters:
entity- Entity the item is used on.status- List of statuses this item cures.
-
-
Method Details
-
onTurnReached
public void onTurnReached(int currentTurn) Description copied from interface:TurnListenerThis method is called when the turn number is reached.- Specified by:
onTurnReachedin interfaceTurnListener- Parameters:
currentTurn- current turn number
-
equals
-
hashCode
public int hashCode()
-