This repository has been archived on 2023-11-26. You can view files and clone it, but cannot push or open issues or pull requests.
2020-03-01 18:19:59 +00:00
|
|
|
package com.thebrokenrail.sorcerycraft.spell;
|
|
|
|
|
2020-03-06 23:35:29 +00:00
|
|
|
import com.thebrokenrail.sorcerycraft.spell.registry.Spell;
|
2020-03-01 18:19:59 +00:00
|
|
|
import net.minecraft.entity.Entity;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
import net.minecraft.item.Items;
|
2020-03-03 23:08:22 +00:00
|
|
|
import net.minecraft.util.Identifier;
|
2020-03-01 18:19:59 +00:00
|
|
|
|
|
|
|
public class SteadfastSpell extends Spell {
|
2020-03-03 23:08:22 +00:00
|
|
|
public SteadfastSpell(Identifier id, int level) {
|
2020-03-01 18:19:59 +00:00
|
|
|
super(id, level);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void execute(Entity target, Entity source, Entity attacker) {
|
2020-03-03 23:08:22 +00:00
|
|
|
// NOOP
|
2020-03-01 18:19:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public int getXPCost() {
|
|
|
|
return 18;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public ItemStack getItemCost() {
|
|
|
|
return new ItemStack(Items.NETHERITE_INGOT);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public int getMaxLevel() {
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
}
|