Add chainable method for assigning spell NPC selector

This commit is contained in:
Electroblob77
2020-01-27 17:51:32 +00:00
parent ba83cb7985
commit d37ab6072f
9 changed files with 73 additions and 53 deletions
@@ -59,12 +59,11 @@ public class SpellArrow<T extends EntityMagicArrow> extends Spell {
super(modID, name, EnumAction.NONE, false);
this.arrowFactory = arrowFactory;
this.addProperties(RANGE);
this.npcSelector((e, o) -> true);
}
@Override public boolean requiresPacket(){ return false; }
@Override public boolean canBeCastBy(EntityLiving npc, boolean override){ return true; }
@Override public boolean canBeCastBy(TileEntityDispenser dispenser) { return true; }
/** Computes the velocity the projectile should be launched at to achieve the required range. */