Remove redundant abstract method.
This commit is contained in:
parent
ad5be20eb6
commit
7269a026eb
|
@ -36,22 +36,9 @@ public abstract class AbstractPenalty<RI> implements Penalty<RI> {
|
|||
return registeredInput;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(final RI input) {
|
||||
return applyGenericEffects(input);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addToPenaltyList(final IPenaltyList penaltyList) {
|
||||
penaltyList.addPenalty(registeredInput, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Override for implementation of input-specific effects.
|
||||
*
|
||||
* @param input
|
||||
* @return See: {@link AbstractPenalty#apply(Object)}
|
||||
*/
|
||||
protected abstract boolean applyGenericEffects(RI input);
|
||||
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@ public class FightPenaltyMultiplyDamage extends FightPenaltyEntityDamage {
|
|||
}
|
||||
|
||||
@Override
|
||||
protected boolean applyGenericEffects(final EntityDamageEvent event) {
|
||||
public boolean apply(final EntityDamageEvent event) {
|
||||
BridgeHealth.multiplyFinalDamage(event, multiplier);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue