Swap the API packages
The new one is now built for the api jar and the old one is now internal. It will slowly be moved around to sane places within the internal code. Most of the features provided in the old "api" are addon specific features which will generally rely on the main jar anyways. The new API will be specific to compatibility features, such as blacklists, recipes, and value modification.
This commit is contained in:
parent
4fbcac6aa2
commit
ddaadfbe52
421 changed files with 1006 additions and 999 deletions
|
@ -1,67 +0,0 @@
|
|||
package WayofTime.bloodmagic.api.livingArmour;
|
||||
|
||||
import WayofTime.bloodmagic.livingArmour.LivingArmour;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public abstract class StatTracker {
|
||||
private boolean isDirty = false;
|
||||
|
||||
public abstract String getUniqueIdentifier();
|
||||
|
||||
/**
|
||||
* When called the StatTracker should reset all of its data, including
|
||||
* upgrades.
|
||||
*/
|
||||
public abstract void resetTracker();
|
||||
|
||||
public abstract void readFromNBT(NBTTagCompound tag);
|
||||
|
||||
public abstract void writeToNBT(NBTTagCompound tag);
|
||||
|
||||
/**
|
||||
* Called each tick to update the tracker's information. Called in
|
||||
* LivingArmour
|
||||
*
|
||||
* @param world World the player is in
|
||||
* @param player The player that has the armour equipped
|
||||
* @param livingArmour The equipped LivingArmour
|
||||
* @return True if there is a new upgrade unlocked this tick.
|
||||
*/
|
||||
public abstract boolean onTick(World world, EntityPlayer player, LivingArmour livingArmour);
|
||||
|
||||
public abstract void onDeactivatedTick(World world, EntityPlayer player, LivingArmour livingArmour);
|
||||
|
||||
public abstract List<LivingArmourUpgrade> getUpgrades();
|
||||
|
||||
/**
|
||||
* Used to obtain the progress from the current level to the next level.
|
||||
* <p>
|
||||
* 0.0 being 0% - 1.0 being 100%.
|
||||
*
|
||||
* @param livingArmour The equipped LivingArmour
|
||||
* @return the progress from the current level to the next level.
|
||||
*/
|
||||
public double getProgress(LivingArmour livingArmour, int currentLevel) {
|
||||
return 1.0D;
|
||||
}
|
||||
|
||||
public final boolean isDirty() {
|
||||
return isDirty;
|
||||
}
|
||||
|
||||
public final void markDirty() {
|
||||
this.isDirty = true;
|
||||
}
|
||||
|
||||
public final void resetDirty() {
|
||||
this.isDirty = false;
|
||||
}
|
||||
|
||||
public abstract boolean providesUpgrade(String key);
|
||||
|
||||
public abstract void onArmourUpgradeAdded(LivingArmourUpgrade upgrade);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue