Interface StatusHandler<T extends Status>
- Type Parameters:
T- type of status
- All Known Implementing Classes:
ConfuseStatusHandler,DrunkStatusHandler,EatStatusHandler,HeavyStatusHandler,PoisonStatusHandler,ShockStatusHandler,ZombieStatusHandler
public interface StatusHandler<T extends Status>
handles status changes
- Author:
- hendrik
-
Method Summary
Modifier and TypeMethodDescriptionvoidinflict(T status, StatusList statusList, Entity attacker) inflicts a statusvoidremove(T status, StatusList statusList) removes a status
-
Method Details
-
inflict
inflicts a status- Parameters:
status- Status to inflictstatusList- StatusListattacker- the attacker
-
remove
removes a status- Parameters:
status- Status to inflictstatusList- StatusList
-