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
@@ -68,6 +68,7 @@ public class SpellBuff extends Spell {
this.r = r;
this.g = g;
this.b = b;
this.npcSelector((e, o) -> true);
}
@Override
@@ -104,8 +105,6 @@ public class SpellBuff extends Spell {
return this;
}
@Override public boolean canBeCastBy(EntityLiving npc, boolean override){ return true; }
@Override public boolean canBeCastBy(TileEntityDispenser dispenser) { return true; }
@Override