Remove a bunch of deprecated methods

This commit is contained in:
Electroblob77
2020-05-12 23:09:48 +01:00
parent a97abd26d0
commit bfc23ce6f7
4 changed files with 1 additions and 154 deletions
@@ -211,7 +211,7 @@ public abstract class Spell extends IForgeRegistryEntry.Impl<Spell> implements C
this.sounds = createSounds();
this.id = nextSpellId++;
this.items(WizardryItems.spell_book, WizardryItems.scroll);
this.npcSelector((e, o) -> canBeCastByNPCs()); // Fallback to old behaviour until we remove it entirely
this.npcSelector((e, o) -> false);
}
// ========================================= Initialisation methods ===========================================
@@ -488,17 +488,6 @@ public abstract class Spell extends IForgeRegistryEntry.Impl<Spell> implements C
return npcSelector.test(npc, override);
}
/**
* Whether NPCs such as wizards can cast this spell. If you have overridden
* {@link Spell#cast(World, EntityLiving, EnumHand, int, EntityLivingBase, SpellModifiers)}, you should override
* this to return true.
* @deprecated Use the entity-sensitive version {@link Spell#canBeCastBy(EntityLiving, boolean)}.
*/
@Deprecated
public boolean canBeCastByNPCs(){
return false;
}
/**
* Whether the given dispenser can cast this spell. If you have overridden
* {@link Spell#cast(World, double, double, double, EnumFacing, int, int, SpellModifiers)}, you should override this
@@ -506,17 +495,6 @@ public abstract class Spell extends IForgeRegistryEntry.Impl<Spell> implements C
* @param dispenser The dispenser to query.
*/
public boolean canBeCastBy(TileEntityDispenser dispenser){
return canBeCastByDispensers();
}
/**
* Whether dispensers can cast this spell. If you have overridden
* {@link Spell#cast(World, double, double, double, EnumFacing, int, int, SpellModifiers)}, you should override this
* to return true.
* @deprecated Use the tileentity-sensitive version {@link Spell#canBeCastBy(TileEntityDispenser)}.
*/
@Deprecated
public boolean canBeCastByDispensers(){
return false;
}