mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-19 19:49:51 +00:00
Added an auto-crafting ritual
Fixed Blood Light sigil glitches Fixed some issues with the Reagent HP bar not draining correctly - what was I thinking?!?
This commit is contained in:
1 parent
d1fc806113
commit
3d89bd6b90
13 files changed
+503
-55
No files matched your search
@@ -164,6 +164,23 @@ public class APISpellHelper
|
||||
data.setFloat("BM:MaxAddedHP", maxHP);
|
||||
}
|
||||
|
||||
public static int getPlayerReagentRegenCooldownTag(EntityPlayer player)
|
||||
{
|
||||
NBTTagCompound data = APISpellHelper.getPersistentDataTag(player);
|
||||
if(data.hasKey("BM:ReagentRegenCooldown"))
|
||||
{
|
||||
return data.getInteger("BM:ReagentRegenCooldown");
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static void setPlayerReagentRegenCooldownTag(EntityPlayer player, int amount)
|
||||
{
|
||||
NBTTagCompound data = APISpellHelper.getPersistentDataTag(player);
|
||||
data.setInteger("BM:ReagentRegenCooldown", amount);
|
||||
}
|
||||
|
||||
public static MovingObjectPosition raytraceFromEntity(World world, Entity player, boolean par3, double range)
|
||||
{
|
||||
float f = 1.0F;
|
||||
|
||||
Reference in new issue
Block a user