Add chainable method for assigning spell NPC selector
This commit is contained in:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user