mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-17 02:45:09 +00:00
Implemented guide pages
This commit is contained in:
1 parent
53ba21055d
commit
45642e44bf
3 files changed
+162
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user