Implemented guide pages

This commit is contained in:
WayofTime 2015-04-24 07:56:46 -04:00
parent 53ba21055d
commit 45642e44bf
3 changed files with 162 additions and 0 deletions

View file

@ -19,6 +19,8 @@ import net.minecraft.util.Vec3;
import net.minecraft.world.World;
import WayofTime.alchemicalWizardry.api.alchemy.energy.Reagent;
import WayofTime.alchemicalWizardry.api.alchemy.energy.ReagentRegistry;
import WayofTime.alchemicalWizardry.api.items.interfaces.IBloodOrb;
import WayofTime.alchemicalWizardry.client.nei.NEIConfig;
import cpw.mods.fml.common.registry.GameRegistry;
public class APISpellHelper
@ -181,6 +183,19 @@ public class APISpellHelper
data.setInteger("BM:ReagentRegenCooldown", amount);
}
public static ItemStack getOrbForLevel(int level)
{
for (Item item : NEIConfig.bloodOrbs)
{
if (((IBloodOrb) item).getOrbLevel() == level)
{
return new ItemStack(item);
}
}
return null;
}
public static MovingObjectPosition raytraceFromEntity(World world, Entity player, boolean par3, double range)
{
float f = 1.0F;