mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-27 15:23:06 +00:00
Working on an Incense mechanic... You'll find out!
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user