Working on an Incense mechanic... You'll find out!

This commit is contained in:
WayofTime committed 2015-04-30 09:37:39 -04:00
1 parent b90db3857b
commit f1ebade718
7 files changed
+221 -8

No files matched your search

@@ -0,0 +1,36 @@
package WayofTime.alchemicalWizardry.api.sacrifice;
import WayofTime.alchemicalWizardry.api.spell.APISpellHelper;
import net.minecraft.entity.player.EntityPlayer;
public class PlayerSacrificeHandler
{
public int getPlayerIncense(EntityPlayer player)
{
return APISpellHelper.getCurrentIncense(player);
}
public void setPlayerIncense(EntityPlayer player, int amount)
{
APISpellHelper.setCurrentIncense(player, amount);
}
public boolean incrementIncense(EntityPlayer player, int min, int max)
{
int amount = this.getPlayerIncense(player);
if(amount < min || amount >= max)
{
return false;
}
amount++;
return true;
}
public boolean sacrificePlayerHealth(EntityPlayer player)
{
return false;
}
}