addition
This commit is contained in:
parent
99ffc6bf74
commit
95ca7f1519
|
@ -1,4 +1,21 @@
|
|||
package anvil.infinity.helpers;
|
||||
|
||||
public class LokkAbilityHelper {
|
||||
import anvil.infinity.registry.Effects;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.potion.PotionEffect;
|
||||
|
||||
public class LookAbilityHelper {
|
||||
public static final int KILL = 0;
|
||||
|
||||
public static void activateEntityLookAbility(Entity entity, int abilityID) {
|
||||
switch (abilityID) {
|
||||
case KILL: if (entity instanceof EntityLivingBase) {
|
||||
((EntityLivingBase) entity).addPotionEffect(new PotionEffect(Effects.snapEffect, 1));
|
||||
} break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue