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

This commit is contained in:
WayofTime 2015-04-30 09:37:39 -04:00
parent b90db3857b
commit f1ebade718
7 changed files with 221 additions and 8 deletions

View file

@ -42,6 +42,23 @@ public class APISpellHelper
return beaconData;
}
public static int getCurrentIncense(EntityPlayer player)
{
NBTTagCompound data = player.getEntityData();
if(data.hasKey("BM:CurrentIncense"))
{
return data.getInteger("BM:CurrentIncense");
}
return 0;
}
public static void setCurrentIncense(EntityPlayer player, int amount)
{
NBTTagCompound data = player.getEntityData();
data.setInteger("BM:CurrentIncense", amount);
}
public static int getPlayerLPTag(EntityPlayer player)
{
NBTTagCompound data = APISpellHelper.getPersistentDataTag(player);