Implemented most of the framework required for training specific Living Armour Upgrades.

This commit is contained in:
WayofTime 2016-02-14 21:50:32 -05:00
parent 01d4bdffa2
commit 64efaf854b
24 changed files with 322 additions and 13 deletions

View file

@ -195,7 +195,8 @@ public class Constants
SIGIL_WHIRLWIND("ItemSigilWhirlwind"),
SLATE("ItemSlate"),
TELEPOSITION_FOCUS("ItemTelepositionFocus"),
UPGRADE_TOME("ItemUpgradeTome");
UPGRADE_TOME("ItemUpgradeTome"),
UPGRADE_TRAINER("ItemUpgradeTrainer");
@Getter
private final String regName;

View file

@ -0,0 +1,16 @@
package WayofTime.bloodmagic.api.iface;
import java.util.List;
import net.minecraft.item.ItemStack;
/**
* This interface is used for items intended to train specific upgrades while
* held in the player's inventory.
*/
public interface IUpgradeTrainer
{
public List<String> getTrainedUpgrades(ItemStack stack);
public boolean setTrainedUpgrades(ItemStack stack, List<String> keys);
}

View file

@ -53,4 +53,6 @@ public abstract class StatTracker
{
this.isDirty = false;
}
public abstract boolean providesUpgrade(String key);
}