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.
SorceryCraft/src/main/java/com/thebrokenrail/sorcerycraft/spell/Spell.java
TheBrokenRail 28fa7115c6
All checks were successful
SorceryCraft/pipeline/head This commit looks good
1.0.3
Tweak Loot Tables
Fix Dispenser Bugs
Fix Inward Bugs
2020-03-03 18:08:22 -05:00

32 lines
676 B
Java

package com.thebrokenrail.sorcerycraft.spell;
import net.minecraft.entity.Entity;
import net.minecraft.item.ItemStack;
import net.minecraft.util.Identifier;
public abstract class Spell {
private final Identifier id;
private final int level;
public Spell(Identifier id, int level) {
this.id = id;
this.level = level;
}
public Identifier getID() {
return id;
}
public int getLevel() {
return level;
}
public abstract void execute(Entity target, Entity source, Entity attacker);
public abstract int getXPCost();
public abstract ItemStack getItemCost();
public abstract int getMaxLevel();
}