Implemented most of the framework required for training specific Living Armour Upgrades.
This commit is contained in:
parent
01d4bdffa2
commit
64efaf854b
24 changed files with 322 additions and 13 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
}
|
|
@ -53,4 +53,6 @@ public abstract class StatTracker
|
|||
{
|
||||
this.isDirty = false;
|
||||
}
|
||||
|
||||
public abstract boolean providesUpgrade(String key);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue