2023-07-25 11:39:40 +02:00
|
|
|
package com.craftaro.epicenchants.effect;
|
2019-01-24 12:00:57 +01:00
|
|
|
|
2023-07-25 11:39:40 +02:00
|
|
|
import com.craftaro.epicenchants.enums.EventType;
|
2019-01-24 12:00:57 +01:00
|
|
|
import org.bukkit.configuration.ConfigurationSection;
|
2019-01-30 11:58:37 +01:00
|
|
|
import org.bukkit.entity.LivingEntity;
|
2019-01-24 12:00:57 +01:00
|
|
|
import org.bukkit.entity.Player;
|
|
|
|
import org.bukkit.event.Event;
|
2019-01-30 11:58:37 +01:00
|
|
|
import org.jetbrains.annotations.NotNull;
|
2019-01-24 12:00:57 +01:00
|
|
|
|
|
|
|
public abstract class EffectEventExecutor extends EffectExecutor {
|
|
|
|
public EffectEventExecutor(ConfigurationSection section) {
|
|
|
|
super(section);
|
|
|
|
}
|
|
|
|
|
2019-03-26 15:32:53 +01:00
|
|
|
public abstract void execute(Player user, LivingEntity opponent, int level, Event event, EventType eventType);
|
2019-01-24 12:00:57 +01:00
|
|
|
|
|
|
|
@Override
|
2019-03-26 15:32:53 +01:00
|
|
|
public void execute(@NotNull Player user, LivingEntity opponent, int level, EventType eventType) {
|
2019-01-24 12:00:57 +01:00
|
|
|
throw new UnsupportedOperationException("This method can not be called on EventEffects");
|
|
|
|
}
|
|
|
|
}
|