Added Living Armour stat tracker for movement. Implemented necessary methods for the armour.

This commit is contained in:
WayofTime 2016-01-02 22:04:51 -05:00
parent 5387770fa6
commit 34335d66cc
6 changed files with 175 additions and 11 deletions

View file

@ -9,9 +9,9 @@ import net.minecraft.nbt.NBTTagCompound;
public class LivingArmourHandler
{
public static List<Class<? extends StatTracker>> trackers = new ArrayList();
public static HashMap<String, Class<? extends LivingArmourUpgrade>> upgradeMap = new HashMap();
public static HashMap<String, Constructor<? extends LivingArmourUpgrade>> upgradeConstructorMap = new HashMap();
public static List<Class<? extends StatTracker>> trackers = new ArrayList<Class<? extends StatTracker>>();
public static HashMap<String, Class<? extends LivingArmourUpgrade>> upgradeMap = new HashMap<String, Class<? extends LivingArmourUpgrade>>();
public static HashMap<String, Constructor<? extends LivingArmourUpgrade>> upgradeConstructorMap = new HashMap<String, Constructor<? extends LivingArmourUpgrade>>();
public static void registerStatTracker(Class<? extends StatTracker> tracker)
{

View file

@ -1,5 +1,7 @@
package WayofTime.bloodmagic.api.livingArmour;
import java.util.List;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.world.World;
@ -35,7 +37,7 @@ public abstract class StatTracker
*/
public abstract boolean onTick(World world, EntityPlayer player, LivingArmour livingArmour);
public abstract LivingArmourUpgrade[] getUpgrades();
public abstract List<LivingArmourUpgrade> getUpgrades();
public final boolean isDirty()
{