A lot more .json files (4)
This commit is contained in:
parent
93d5f4ad83
commit
9658ce06f7
6
base_alchemy_items_concentrated_catalyst.json
Normal file
6
base_alchemy_items_concentrated_catalyst.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseAlchemyItem_concentrated_catalyst"
|
||||
}
|
||||
}
|
6
base_alchemy_items_fractured_bone.json
Normal file
6
base_alchemy_items_fractured_bone.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseAlchemyItem_fractured_bone"
|
||||
}
|
||||
}
|
6
base_alchemy_items_offensa.json
Normal file
6
base_alchemy_items_offensa.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseAlchemyItem_offensa"
|
||||
}
|
||||
}
|
6
base_alchemy_items_orbis_terrae.json
Normal file
6
base_alchemy_items_orbis_terrae.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseAlchemyItem_orbis_terrae"
|
||||
}
|
||||
}
|
6
base_alchemy_items_potentia.json
Normal file
6
base_alchemy_items_potentia.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseAlchemyItem_potentia"
|
||||
}
|
||||
}
|
6
base_alchemy_items_praesidium.json
Normal file
6
base_alchemy_items_praesidium.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseAlchemyItem_praesidium"
|
||||
}
|
||||
}
|
6
base_alchemy_items_reductus.json
Normal file
6
base_alchemy_items_reductus.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseAlchemyItem_reductus"
|
||||
}
|
||||
}
|
6
base_alchemy_items_strengthened_catalyst.json
Normal file
6
base_alchemy_items_strengthened_catalyst.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseAlchemyItem_strengthened_catalyst"
|
||||
}
|
||||
}
|
6
base_alchemy_items_virtus.json
Normal file
6
base_alchemy_items_virtus.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseAlchemyItem_virtus"
|
||||
}
|
||||
}
|
6
base_items_cost_core.json
Normal file
6
base_items_cost_core.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_cost_core"
|
||||
}
|
||||
}
|
6
base_items_cracked_runic_plate.json
Normal file
6
base_items_cracked_runic_plate.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_cracked_runic_plate"
|
||||
}
|
||||
}
|
6
base_items_default_core.json
Normal file
6
base_items_default_core.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_default_core"
|
||||
}
|
||||
}
|
6
base_items_defensive_core.json
Normal file
6
base_items_defensive_core.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_defensive_core"
|
||||
}
|
||||
}
|
6
base_items_earthen_core.json
Normal file
6
base_items_earthen_core.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_earthen_core"
|
||||
}
|
||||
}
|
6
base_items_empty_core.json
Normal file
6
base_items_empty_core.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_empty_core"
|
||||
}
|
||||
}
|
6
base_items_ender_shard.json
Normal file
6
base_items_ender_shard.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_ender_shard"
|
||||
}
|
||||
}
|
6
base_items_environmental_core.json
Normal file
6
base_items_environmental_core.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_environmental_core"
|
||||
}
|
||||
}
|
6
base_items_ethereal_slate.json
Normal file
6
base_items_ethereal_slate.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_ethereal_slate"
|
||||
}
|
||||
}
|
6
base_items_flame_core.json
Normal file
6
base_items_flame_core.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_flame_core"
|
||||
}
|
||||
}
|
6
base_items_gust_core.json
Normal file
6
base_items_gust_core.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_gust_core"
|
||||
}
|
||||
}
|
6
base_items_icy_core.json
Normal file
6
base_items_icy_core.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_icy_core"
|
||||
}
|
||||
}
|
6
base_items_input_cable.json
Normal file
6
base_items_input_cable.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_input_cable"
|
||||
}
|
||||
}
|
6
base_items_life_brace.json
Normal file
6
base_items_life_brace.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_life_brace"
|
||||
}
|
||||
}
|
6
base_items_life_shard.json
Normal file
6
base_items_life_shard.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_life_shard"
|
||||
}
|
||||
}
|
6
base_items_magicales_cable.json
Normal file
6
base_items_magicales_cable.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_magicales_cable"
|
||||
}
|
||||
}
|
6
base_items_melee_core.json
Normal file
6
base_items_melee_core.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_melee_core"
|
||||
}
|
||||
}
|
6
base_items_obsidian_brace.json
Normal file
6
base_items_obsidian_brace.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_obsidian_brace"
|
||||
}
|
||||
}
|
6
base_items_offensive_core.json
Normal file
6
base_items_offensive_core.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_offensive_core"
|
||||
}
|
||||
}
|
6
base_items_output_cable.json
Normal file
6
base_items_output_cable.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_output_cable"
|
||||
}
|
||||
}
|
6
base_items_paradigm_back_plate.json
Normal file
6
base_items_paradigm_back_plate.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_paradigm_back_plate"
|
||||
}
|
||||
}
|
6
base_items_potency_core.json
Normal file
6
base_items_potency_core.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_potency_core"
|
||||
}
|
||||
}
|
6
base_items_power_core.json
Normal file
6
base_items_power_core.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_power_core"
|
||||
}
|
||||
}
|
6
base_items_projectile_core.json
Normal file
6
base_items_projectile_core.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_projectile_core"
|
||||
}
|
||||
}
|
6
base_items_quartz_rod.json
Normal file
6
base_items_quartz_rod.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_quartz_rod"
|
||||
}
|
||||
}
|
6
base_items_runic_plate.json
Normal file
6
base_items_runic_plate.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_runic_plate"
|
||||
}
|
||||
}
|
6
base_items_scribed_runic_plate.json
Normal file
6
base_items_scribed_runic_plate.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_scribed_runic_plate"
|
||||
}
|
||||
}
|
6
base_items_self_core.json
Normal file
6
base_items_self_core.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_self_core"
|
||||
}
|
||||
}
|
6
base_items_soul_runic_plate.json
Normal file
6
base_items_soul_runic_plate.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_soul_runic_plate"
|
||||
}
|
||||
}
|
6
base_items_soul_shard.json
Normal file
6
base_items_soul_shard.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_soul_shard"
|
||||
}
|
||||
}
|
6
base_items_stone_brace.json
Normal file
6
base_items_stone_brace.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_stone_brace"
|
||||
}
|
||||
}
|
6
base_items_tool_core.json
Normal file
6
base_items_tool_core.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_tool_core"
|
||||
}
|
||||
}
|
6
base_items_wood_brace.json
Normal file
6
base_items_wood_brace.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_wood_brace"
|
||||
}
|
||||
}
|
|
@ -1,12 +1,14 @@
|
|||
#
|
||||
#Thu Aug 13 06:05:36 EDT 2015
|
||||
mod_name=BloodMagic
|
||||
forge_version=11.14.3.1499
|
||||
cclib_version=1.1.2.133
|
||||
ccc_version=1.0.5.34
|
||||
cclib_version=1.1.2.133
|
||||
nei_version=1.0.5.82
|
||||
//=Dependency Information
|
||||
guideapi_version=1.0.1-20
|
||||
package_group=com.wayoftime.bloodmagic
|
||||
mod_version=1.3.3
|
||||
mod_version=1.4.0
|
||||
minetweaker_version=Dev-1.7.10-3.0.9B
|
||||
build_number=12
|
||||
build_number=2
|
||||
mc_version=1.8
|
||||
|
|
6
incense_byrrus.json
Normal file
6
incense_byrrus.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseIncenseItem_byrrus"
|
||||
}
|
||||
}
|
6
incense_livens.json
Normal file
6
incense_livens.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseIncenseItem_livens"
|
||||
}
|
||||
}
|
6
incense_purpura.json
Normal file
6
incense_purpura.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseIncenseItem_purpura"
|
||||
}
|
||||
}
|
6
incense_viridis.json
Normal file
6
incense_viridis.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseIncenseItem_viridis"
|
||||
}
|
||||
}
|
6
incense_wood_ash.json
Normal file
6
incense_wood_ash.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseIncenseItem_wood_ash"
|
||||
}
|
||||
}
|
|
@ -11,7 +11,6 @@ import java.util.List;
|
|||
import java.util.zip.ZipEntry;
|
||||
import java.util.zip.ZipInputStream;
|
||||
|
||||
import WayofTime.alchemicalWizardry.common.potion.*;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
|
@ -130,6 +129,7 @@ import WayofTime.alchemicalWizardry.common.omega.OmegaParadigmFire;
|
|||
import WayofTime.alchemicalWizardry.common.omega.OmegaParadigmWater;
|
||||
import WayofTime.alchemicalWizardry.common.omega.OmegaParadigmWind;
|
||||
import WayofTime.alchemicalWizardry.common.omega.OmegaRegistry;
|
||||
import WayofTime.alchemicalWizardry.common.potion.PotionBloodMagic;
|
||||
import WayofTime.alchemicalWizardry.common.renderer.AlchemyCircleRenderer;
|
||||
import WayofTime.alchemicalWizardry.common.rituals.RitualEffectAnimalGrowth;
|
||||
import WayofTime.alchemicalWizardry.common.rituals.RitualEffectAutoAlchemy;
|
||||
|
@ -246,9 +246,9 @@ import WayofTime.alchemicalWizardry.common.summoning.meteor.MeteorRegistry;
|
|||
import WayofTime.alchemicalWizardry.common.tileEntity.TEAlchemicalCalcinator;
|
||||
import WayofTime.alchemicalWizardry.common.tileEntity.TEAltar;
|
||||
import WayofTime.alchemicalWizardry.common.tileEntity.TEBelljar;
|
||||
import WayofTime.alchemicalWizardry.common.tileEntity.TEChemistrySet;
|
||||
import WayofTime.alchemicalWizardry.common.tileEntity.TEConduit;
|
||||
import WayofTime.alchemicalWizardry.common.tileEntity.TECrucible;
|
||||
import WayofTime.alchemicalWizardry.common.tileEntity.TESpellTable;
|
||||
import WayofTime.alchemicalWizardry.common.tileEntity.TEMasterStone;
|
||||
import WayofTime.alchemicalWizardry.common.tileEntity.TEMimicBlock;
|
||||
import WayofTime.alchemicalWizardry.common.tileEntity.TEOrientable;
|
||||
|
@ -263,8 +263,8 @@ import WayofTime.alchemicalWizardry.common.tileEntity.TESpellEffectBlock;
|
|||
import WayofTime.alchemicalWizardry.common.tileEntity.TESpellEnhancementBlock;
|
||||
import WayofTime.alchemicalWizardry.common.tileEntity.TESpellModifierBlock;
|
||||
import WayofTime.alchemicalWizardry.common.tileEntity.TESpellParadigmBlock;
|
||||
import WayofTime.alchemicalWizardry.common.tileEntity.TESpellTable;
|
||||
import WayofTime.alchemicalWizardry.common.tileEntity.TETeleposer;
|
||||
import WayofTime.alchemicalWizardry.common.tileEntity.TEChemistrySet;
|
||||
import WayofTime.alchemicalWizardry.common.tileEntity.gui.GuiHandler;
|
||||
//import WayofTime.alchemicalWizardry.common.tweaker.MineTweakerIntegration;
|
||||
|
||||
|
@ -472,7 +472,7 @@ public class AlchemicalWizardry
|
|||
|
||||
@EventHandler
|
||||
public void preInit(FMLPreInitializationEvent event)
|
||||
{
|
||||
{
|
||||
File bmDirectory = new File("config/BloodMagic/schematics");
|
||||
|
||||
if (!bmDirectory.exists() && bmDirectory.mkdirs())
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
package WayofTime.alchemicalWizardry.client;
|
||||
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.PrintWriter;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.ItemMeshDefinition;
|
||||
|
@ -116,7 +119,7 @@ public class InventoryRenderHelper {
|
|||
registerSimpleItem(ModItems.weakBindingAgent);
|
||||
registerSimpleItem(ModItems.itemRitualDiviner); //TODO Make it work for all 3 metas
|
||||
registerSimpleItem(ModItems.itemKeyOfDiablo);
|
||||
registerToggleItem(ModItems.itemBloodLightSigil);
|
||||
registerSimpleItem(ModItems.itemBloodLightSigil);
|
||||
registerSimpleItem(ModItems.itemComplexSpellCrystal);
|
||||
registerSimpleItem(ModItems.bucketLife);
|
||||
registerToggleItem(ModItems.itemSigilOfEnderSeverance);
|
||||
|
@ -126,21 +129,39 @@ public class InventoryRenderHelper {
|
|||
int i = 0;
|
||||
for(String name : ItemComponents.ITEM_NAMES)
|
||||
{
|
||||
itemRender(ModItems.baseItems, i, ModItems.baseItems.getUnlocalizedName().substring(5) + "_" + name);
|
||||
String funName = ModItems.baseItems.getUnlocalizedName().substring(5) + "_" + name;
|
||||
itemRender(ModItems.baseItems, i, funName);
|
||||
// try {
|
||||
// PrintWriter writer = new PrintWriter(funName + ".json");
|
||||
// writer.println("{");
|
||||
// writer.println(" " + '"' + "parent" + '"' + ":" + '"' + "alchemicalwizardry:item/standard_item" + '"' + ",");
|
||||
// writer.println(" "+ '"' + "textures" + '"' + ": {");
|
||||
// writer.println(" " + '"' + "layer0" + '"' + ":" + '"' + "alchemicalwizardry:items/" + "baseItem" + "_" + name + '"');
|
||||
// writer.println(" }");
|
||||
// writer.println("}");
|
||||
// writer.close();
|
||||
// } catch (FileNotFoundException e1) {
|
||||
// // TODO Auto-generated catch block
|
||||
// e1.printStackTrace();
|
||||
// }
|
||||
i++;
|
||||
}
|
||||
|
||||
i = 0;
|
||||
for(String name : ItemAlchemyBase.ITEM_NAMES)
|
||||
{
|
||||
itemRender(ModItems.baseAlchemyItems, i, ModItems.baseAlchemyItems.getUnlocalizedName().substring(5) + "_" + name);
|
||||
String funName = ModItems.baseAlchemyItems.getUnlocalizedName().substring(5) + "_" + name;
|
||||
itemRender(ModItems.baseAlchemyItems, i, funName);
|
||||
|
||||
i++;
|
||||
}
|
||||
|
||||
i = 0;
|
||||
for(String name : ItemIncense.ITEM_NAMES)
|
||||
{
|
||||
itemRender(ModItems.itemIncense, i, ModItems.itemIncense.getUnlocalizedName().substring(5) + "_" + name);
|
||||
String funName = ModItems.itemIncense.getUnlocalizedName().substring(5) + "_" + name;
|
||||
itemRender(ModItems.itemIncense, i, funName);
|
||||
|
||||
i++;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,178 +1,178 @@
|
|||
package WayofTime.alchemicalWizardry.client.nei;
|
||||
|
||||
import static WayofTime.alchemicalWizardry.client.nei.NEIConfig.bloodOrbs;
|
||||
|
||||
import java.awt.Rectangle;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import WayofTime.alchemicalWizardry.common.tileEntity.gui.GuiChemistrySet;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.gui.inventory.GuiContainer;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import WayofTime.alchemicalWizardry.api.alchemy.AlchemyRecipe;
|
||||
import WayofTime.alchemicalWizardry.api.alchemy.AlchemyRecipeRegistry;
|
||||
import WayofTime.alchemicalWizardry.api.items.interfaces.IBloodOrb;
|
||||
import codechicken.nei.ItemList;
|
||||
import codechicken.nei.NEIServerUtils;
|
||||
import codechicken.nei.PositionedStack;
|
||||
import codechicken.nei.recipe.TemplateRecipeHandler;
|
||||
|
||||
/**
|
||||
* NEI Alchemy Recipe Handler by joshie *
|
||||
*/
|
||||
public class NEIAlchemyRecipeHandler extends TemplateRecipeHandler {
|
||||
public class CachedAlchemyRecipe extends CachedRecipe {
|
||||
public class BloodOrbs {
|
||||
public PositionedStack stack;
|
||||
|
||||
public BloodOrbs(ItemStack orb) {
|
||||
this.stack = new PositionedStack(orb, 136, 47, false);
|
||||
}
|
||||
}
|
||||
|
||||
ArrayList<BloodOrbs> orbs;
|
||||
PositionedStack output;
|
||||
List<PositionedStack> inputs;
|
||||
int lp;
|
||||
|
||||
public CachedAlchemyRecipe(AlchemyRecipe recipe, ItemStack orb) {
|
||||
this(recipe);
|
||||
this.orbs = new ArrayList<BloodOrbs>();
|
||||
orbs.add(new BloodOrbs(orb));
|
||||
}
|
||||
|
||||
public CachedAlchemyRecipe(AlchemyRecipe recipe) {
|
||||
List<PositionedStack> inputs = new ArrayList<PositionedStack>();
|
||||
ItemStack[] stacks = recipe.getRecipe();
|
||||
if (stacks.length > 0) inputs.add(new PositionedStack(stacks[0], 76, 3));
|
||||
if (stacks.length > 1) inputs.add(new PositionedStack(stacks[1], 51, 19));
|
||||
if (stacks.length > 2) inputs.add(new PositionedStack(stacks[2], 101, 19));
|
||||
if (stacks.length > 3) inputs.add(new PositionedStack(stacks[3], 64, 47));
|
||||
if (stacks.length > 4) inputs.add(new PositionedStack(stacks[4], 88, 47));
|
||||
this.inputs = inputs;
|
||||
this.output = new PositionedStack(recipe.getResult(), 76, 25);
|
||||
this.lp = recipe.getAmountNeeded() * 100;
|
||||
this.orbs = new ArrayList<BloodOrbs>();
|
||||
for (Item orb : bloodOrbs) {
|
||||
if (((IBloodOrb) orb).getOrbLevel() >= recipe.getOrbLevel()) {
|
||||
orbs.add(new BloodOrbs(new ItemStack(orb)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PositionedStack> getIngredients() {
|
||||
return inputs;
|
||||
}
|
||||
|
||||
@Override
|
||||
public PositionedStack getResult() {
|
||||
return output;
|
||||
}
|
||||
|
||||
@Override
|
||||
public PositionedStack getOtherStack() {
|
||||
if (orbs == null || orbs.size() <= 0) return null;
|
||||
return orbs.get((cycleticks / 48) % orbs.size()).stack;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public TemplateRecipeHandler newInstance() {
|
||||
for (ItemStack item : ItemList.items) {
|
||||
if (item != null && item.getItem() instanceof IBloodOrb) {
|
||||
bloodOrbs.add(item.getItem());
|
||||
}
|
||||
}
|
||||
|
||||
return super.newInstance();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getOverlayIdentifier() {
|
||||
return "alchemicalwizardry.alchemy";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void loadTransferRects() {
|
||||
transferRects.add(new RecipeTransferRect(new Rectangle(134, 22, 16, 24), "alchemicalwizardry.alchemy"));
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<? extends GuiContainer> getGuiClass() {
|
||||
return GuiChemistrySet.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void loadCraftingRecipes(String outputId, Object... results) {
|
||||
if (outputId.equals("alchemicalwizardry.alchemy") && getClass() == NEIAlchemyRecipeHandler.class) {
|
||||
for (AlchemyRecipe recipe : AlchemyRecipeRegistry.recipes) {
|
||||
if (recipe.getResult() != null) arecipes.add(new CachedAlchemyRecipe(recipe));
|
||||
}
|
||||
} else {
|
||||
super.loadCraftingRecipes(outputId, results);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void loadCraftingRecipes(ItemStack result) {
|
||||
for (AlchemyRecipe recipe : AlchemyRecipeRegistry.recipes) {
|
||||
if (recipe == null) continue;
|
||||
if (NEIServerUtils.areStacksSameTypeCrafting(result, recipe.getResult())) {
|
||||
arecipes.add(new CachedAlchemyRecipe(recipe));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void loadUsageRecipes(ItemStack ingredient) {
|
||||
if (ingredient.getItem() instanceof IBloodOrb) {
|
||||
for (AlchemyRecipe recipe : AlchemyRecipeRegistry.recipes) {
|
||||
if (recipe == null) continue;
|
||||
if (((IBloodOrb) ingredient.getItem()).getOrbLevel() >= recipe.getOrbLevel()) {
|
||||
arecipes.add(new CachedAlchemyRecipe(recipe, ingredient));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for (AlchemyRecipe recipe : AlchemyRecipeRegistry.recipes) {
|
||||
if (recipe == null) continue;
|
||||
ItemStack[] stacks = recipe.getRecipe();
|
||||
for (ItemStack stack : stacks) {
|
||||
if (NEIServerUtils.areStacksSameTypeCrafting(stack, ingredient)) {
|
||||
arecipes.add(new CachedAlchemyRecipe(recipe));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void drawExtras(int id) {
|
||||
CachedAlchemyRecipe cache = (CachedAlchemyRecipe) arecipes.get(id);
|
||||
Minecraft.getMinecraft().fontRendererObj.drawString("\u00a77" + cache.lp + "LP", getLPX(cache.lp), 34, 0);
|
||||
}
|
||||
|
||||
public int getLPX(int lp) {
|
||||
if (lp < 10) return 122;
|
||||
else if (lp < 100) return 122;
|
||||
else if (lp < 1000) return 130;
|
||||
else if (lp < 10000) return 127;
|
||||
else if (lp < 100000) return 124;
|
||||
return 122;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getRecipeName() {
|
||||
return StatCollector.translateToLocal("tile.blockWritingTable.name");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getGuiTexture() {
|
||||
return new ResourceLocation("alchemicalwizardry", "gui/nei/alchemy.png").toString();
|
||||
}
|
||||
}
|
||||
//package WayofTime.alchemicalWizardry.client.nei;
|
||||
//
|
||||
//import static WayofTime.alchemicalWizardry.client.nei.NEIConfig.bloodOrbs;
|
||||
//
|
||||
//import java.awt.Rectangle;
|
||||
//import java.util.ArrayList;
|
||||
//import java.util.List;
|
||||
//
|
||||
//import WayofTime.alchemicalWizardry.common.tileEntity.gui.GuiChemistrySet;
|
||||
//import net.minecraft.client.Minecraft;
|
||||
//import net.minecraft.client.gui.inventory.GuiContainer;
|
||||
//import net.minecraft.item.Item;
|
||||
//import net.minecraft.item.ItemStack;
|
||||
//import net.minecraft.util.ResourceLocation;
|
||||
//import net.minecraft.util.StatCollector;
|
||||
//import WayofTime.alchemicalWizardry.api.alchemy.AlchemyRecipe;
|
||||
//import WayofTime.alchemicalWizardry.api.alchemy.AlchemyRecipeRegistry;
|
||||
//import WayofTime.alchemicalWizardry.api.items.interfaces.IBloodOrb;
|
||||
//import codechicken.nei.ItemList;
|
||||
//import codechicken.nei.NEIServerUtils;
|
||||
//import codechicken.nei.PositionedStack;
|
||||
//import codechicken.nei.recipe.TemplateRecipeHandler;
|
||||
//
|
||||
///**
|
||||
// * NEI Alchemy Recipe Handler by joshie *
|
||||
// */
|
||||
//public class NEIAlchemyRecipeHandler extends TemplateRecipeHandler {
|
||||
// public class CachedAlchemyRecipe extends CachedRecipe {
|
||||
// public class BloodOrbs {
|
||||
// public PositionedStack stack;
|
||||
//
|
||||
// public BloodOrbs(ItemStack orb) {
|
||||
// this.stack = new PositionedStack(orb, 136, 47, false);
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// ArrayList<BloodOrbs> orbs;
|
||||
// PositionedStack output;
|
||||
// List<PositionedStack> inputs;
|
||||
// int lp;
|
||||
//
|
||||
// public CachedAlchemyRecipe(AlchemyRecipe recipe, ItemStack orb) {
|
||||
// this(recipe);
|
||||
// this.orbs = new ArrayList<BloodOrbs>();
|
||||
// orbs.add(new BloodOrbs(orb));
|
||||
// }
|
||||
//
|
||||
// public CachedAlchemyRecipe(AlchemyRecipe recipe) {
|
||||
// List<PositionedStack> inputs = new ArrayList<PositionedStack>();
|
||||
// ItemStack[] stacks = recipe.getRecipe();
|
||||
// if (stacks.length > 0) inputs.add(new PositionedStack(stacks[0], 76, 3));
|
||||
// if (stacks.length > 1) inputs.add(new PositionedStack(stacks[1], 51, 19));
|
||||
// if (stacks.length > 2) inputs.add(new PositionedStack(stacks[2], 101, 19));
|
||||
// if (stacks.length > 3) inputs.add(new PositionedStack(stacks[3], 64, 47));
|
||||
// if (stacks.length > 4) inputs.add(new PositionedStack(stacks[4], 88, 47));
|
||||
// this.inputs = inputs;
|
||||
// this.output = new PositionedStack(recipe.getResult(), 76, 25);
|
||||
// this.lp = recipe.getAmountNeeded() * 100;
|
||||
// this.orbs = new ArrayList<BloodOrbs>();
|
||||
// for (Item orb : bloodOrbs) {
|
||||
// if (((IBloodOrb) orb).getOrbLevel() >= recipe.getOrbLevel()) {
|
||||
// orbs.add(new BloodOrbs(new ItemStack(orb)));
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public List<PositionedStack> getIngredients() {
|
||||
// return inputs;
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public PositionedStack getResult() {
|
||||
// return output;
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public PositionedStack getOtherStack() {
|
||||
// if (orbs == null || orbs.size() <= 0) return null;
|
||||
// return orbs.get((cycleticks / 48) % orbs.size()).stack;
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public TemplateRecipeHandler newInstance() {
|
||||
// for (ItemStack item : ItemList.items) {
|
||||
// if (item != null && item.getItem() instanceof IBloodOrb) {
|
||||
// bloodOrbs.add(item.getItem());
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// return super.newInstance();
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public String getOverlayIdentifier() {
|
||||
// return "alchemicalwizardry.alchemy";
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void loadTransferRects() {
|
||||
// transferRects.add(new RecipeTransferRect(new Rectangle(134, 22, 16, 24), "alchemicalwizardry.alchemy"));
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public Class<? extends GuiContainer> getGuiClass() {
|
||||
// return GuiChemistrySet.class;
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void loadCraftingRecipes(String outputId, Object... results) {
|
||||
// if (outputId.equals("alchemicalwizardry.alchemy") && getClass() == NEIAlchemyRecipeHandler.class) {
|
||||
// for (AlchemyRecipe recipe : AlchemyRecipeRegistry.recipes) {
|
||||
// if (recipe.getResult() != null) arecipes.add(new CachedAlchemyRecipe(recipe));
|
||||
// }
|
||||
// } else {
|
||||
// super.loadCraftingRecipes(outputId, results);
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void loadCraftingRecipes(ItemStack result) {
|
||||
// for (AlchemyRecipe recipe : AlchemyRecipeRegistry.recipes) {
|
||||
// if (recipe == null) continue;
|
||||
// if (NEIServerUtils.areStacksSameTypeCrafting(result, recipe.getResult())) {
|
||||
// arecipes.add(new CachedAlchemyRecipe(recipe));
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void loadUsageRecipes(ItemStack ingredient) {
|
||||
// if (ingredient.getItem() instanceof IBloodOrb) {
|
||||
// for (AlchemyRecipe recipe : AlchemyRecipeRegistry.recipes) {
|
||||
// if (recipe == null) continue;
|
||||
// if (((IBloodOrb) ingredient.getItem()).getOrbLevel() >= recipe.getOrbLevel()) {
|
||||
// arecipes.add(new CachedAlchemyRecipe(recipe, ingredient));
|
||||
// }
|
||||
// }
|
||||
// } else {
|
||||
// for (AlchemyRecipe recipe : AlchemyRecipeRegistry.recipes) {
|
||||
// if (recipe == null) continue;
|
||||
// ItemStack[] stacks = recipe.getRecipe();
|
||||
// for (ItemStack stack : stacks) {
|
||||
// if (NEIServerUtils.areStacksSameTypeCrafting(stack, ingredient)) {
|
||||
// arecipes.add(new CachedAlchemyRecipe(recipe));
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void drawExtras(int id) {
|
||||
// CachedAlchemyRecipe cache = (CachedAlchemyRecipe) arecipes.get(id);
|
||||
// Minecraft.getMinecraft().fontRendererObj.drawString("\u00a77" + cache.lp + "LP", getLPX(cache.lp), 34, 0);
|
||||
// }
|
||||
//
|
||||
// public int getLPX(int lp) {
|
||||
// if (lp < 10) return 122;
|
||||
// else if (lp < 100) return 122;
|
||||
// else if (lp < 1000) return 130;
|
||||
// else if (lp < 10000) return 127;
|
||||
// else if (lp < 100000) return 124;
|
||||
// return 122;
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public String getRecipeName() {
|
||||
// return StatCollector.translateToLocal("tile.blockWritingTable.name");
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public String getGuiTexture() {
|
||||
// return new ResourceLocation("alchemicalwizardry", "gui/nei/alchemy.png").toString();
|
||||
// }
|
||||
//}
|
||||
|
|
|
@ -1,187 +1,187 @@
|
|||
package WayofTime.alchemicalWizardry.client.nei;
|
||||
|
||||
import java.awt.Dimension;
|
||||
import java.awt.Point;
|
||||
import java.awt.Rectangle;
|
||||
import java.lang.reflect.Field;
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.gui.ScaledResolution;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.util.StatCollector;
|
||||
|
||||
import org.lwjgl.input.Mouse;
|
||||
|
||||
import WayofTime.alchemicalWizardry.api.altarRecipeRegistry.AltarRecipe;
|
||||
import WayofTime.alchemicalWizardry.api.altarRecipeRegistry.AltarRecipeRegistry;
|
||||
import codechicken.nei.NEIServerUtils;
|
||||
import codechicken.nei.PositionedStack;
|
||||
import codechicken.nei.recipe.GuiRecipe;
|
||||
import codechicken.nei.recipe.TemplateRecipeHandler;
|
||||
|
||||
/**
|
||||
* NEI Altar Recipe Handler by joshie *
|
||||
*/
|
||||
public class NEIAltarRecipeHandler extends TemplateRecipeHandler {
|
||||
public class CachedAltarRecipe extends CachedRecipe {
|
||||
PositionedStack input;
|
||||
// PositionedStack inputItems;
|
||||
PositionedStack output;
|
||||
int tier, lp_amount, consumption, drain;
|
||||
|
||||
public CachedAltarRecipe(AltarRecipe recipe) {
|
||||
// inputItems = new PositionedStack(recipe.input, 38, 2, false);
|
||||
input = new PositionedStack(recipe.requiredItem, 38, 2, false);
|
||||
output = new PositionedStack(recipe.result, 132, 32, false);
|
||||
tier = recipe.minTier;
|
||||
lp_amount = recipe.liquidRequired;
|
||||
consumption = recipe.consumptionRate;
|
||||
drain = recipe.drainRate;
|
||||
}
|
||||
|
||||
@Override
|
||||
public PositionedStack getIngredient() {
|
||||
return input;
|
||||
}
|
||||
|
||||
@Override
|
||||
public PositionedStack getResult() {
|
||||
return output;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void loadCraftingRecipes(String outputId, Object... results) {
|
||||
if (outputId.equals("alchemicalwizardry.altar") && getClass() == NEIAltarRecipeHandler.class) {
|
||||
for(AltarRecipe recipe: AltarRecipeRegistry.altarRecipes) {
|
||||
if(recipe != null && recipe.result != null) arecipes.add(new CachedAltarRecipe(recipe));
|
||||
}
|
||||
} else {
|
||||
super.loadCraftingRecipes(outputId, results);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void loadCraftingRecipes(ItemStack result) {
|
||||
for(AltarRecipe recipe: AltarRecipeRegistry.altarRecipes) {
|
||||
if(NEIServerUtils.areStacksSameTypeCrafting(recipe.result, result)) {
|
||||
if(recipe != null && recipe.result != null) arecipes.add(new CachedAltarRecipe(recipe));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void loadUsageRecipes(ItemStack ingredient) {
|
||||
for(AltarRecipe recipe: AltarRecipeRegistry.altarRecipes) {
|
||||
if(NEIServerUtils.areStacksSameTypeCrafting(recipe.requiredItem, ingredient)) {
|
||||
if(recipe != null && recipe.result != null) arecipes.add(new CachedAltarRecipe(recipe));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//Mouse Position helper
|
||||
public Point getMouse(int width, int height) {
|
||||
Point mousepos = getMousePosition();
|
||||
int guiLeft = (width - 176) / 2;
|
||||
int guiTop = (height - 166) / 2;
|
||||
Point relMouse = new Point(mousepos.x - guiLeft, mousepos.y - guiTop);
|
||||
return relMouse;
|
||||
}
|
||||
|
||||
//width helper, getting width normal way hates me on compile
|
||||
public int getGuiWidth(GuiRecipe gui) {
|
||||
try {
|
||||
Field f = gui.getClass().getField("width");
|
||||
return (Integer) f.get(gui);
|
||||
} catch (NoSuchFieldException e) {
|
||||
try {
|
||||
Field f = gui.getClass().getField("field_146294_l");
|
||||
return (Integer) f.get(gui);
|
||||
} catch (Exception e2) {
|
||||
return 0;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
//height helper, getting height normal way hates me on compile
|
||||
public int getGuiHeight(GuiRecipe gui) {
|
||||
try {
|
||||
Field f = gui.getClass().getField("height");
|
||||
return (Integer) f.get(gui);
|
||||
} catch (NoSuchFieldException e) {
|
||||
try {
|
||||
Field f = gui.getClass().getField("field_146295_m");
|
||||
return (Integer) f.get(gui);
|
||||
} catch (Exception e2) {
|
||||
return 0;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void drawExtras(int id) {
|
||||
CachedAltarRecipe recipe = (CachedAltarRecipe) arecipes.get(id);
|
||||
Minecraft.getMinecraft().fontRendererObj.drawString("\u00a77" + StatCollector.translateToLocal("bm.string.tier") + ": " + recipe.tier, 78, 5, 0);
|
||||
Minecraft.getMinecraft().fontRendererObj.drawString("\u00a77" + "LP: " + recipe.lp_amount, 78, 15, 0);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> handleTooltip(GuiRecipe gui, List<String> currenttip, int id) {
|
||||
currenttip = super.handleTooltip(gui, currenttip, id);
|
||||
Point mouse = getMouse(getGuiWidth(gui), getGuiHeight(gui));
|
||||
CachedAltarRecipe recipe = (CachedAltarRecipe) arecipes.get(id);
|
||||
int yLow = id % 2 == 0 ? 38 : 102;
|
||||
int yHigh = id % 2 == 0 ? 72 : 136;
|
||||
if(mouse.x >= 19 && mouse.x <= 80 && mouse.y >= yLow && mouse.y <= yHigh) {
|
||||
currenttip.add(StatCollector.translateToLocal("bm.string.consume") + ": " + recipe.consumption + "LP/t");
|
||||
currenttip.add(StatCollector.translateToLocal("bm.string.drain") + ": " + recipe.drain + "LP/t");
|
||||
}
|
||||
|
||||
return currenttip;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getOverlayIdentifier() {
|
||||
return "altarrecipes";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void loadTransferRects() {
|
||||
transferRects.add(new RecipeTransferRect(new Rectangle(90, 32, 22, 16), "alchemicalwizardry.altar"));
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getRecipeName() {
|
||||
return " " + StatCollector.translateToLocal("tile.bloodAltar.name");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getGuiTexture() {
|
||||
return new ResourceLocation("alchemicalwizardry", "gui/nei/altar.png").toString();
|
||||
}
|
||||
|
||||
public static Point getMousePosition() {
|
||||
Dimension size = displaySize();
|
||||
Dimension res = displayRes();
|
||||
return new Point(Mouse.getX() * size.width / res.width, size.height - Mouse.getY() * size.height / res.height - 1);
|
||||
}
|
||||
|
||||
public static Dimension displaySize() {
|
||||
Minecraft mc = Minecraft.getMinecraft();
|
||||
ScaledResolution res = new ScaledResolution(mc, mc.displayWidth, mc.displayHeight);
|
||||
return new Dimension(res.getScaledWidth(), res.getScaledHeight());
|
||||
}
|
||||
|
||||
public static Dimension displayRes() {
|
||||
Minecraft mc = Minecraft.getMinecraft();
|
||||
return new Dimension(mc.displayWidth, mc.displayHeight);
|
||||
}
|
||||
}
|
||||
//package WayofTime.alchemicalWizardry.client.nei;
|
||||
//
|
||||
//import java.awt.Dimension;
|
||||
//import java.awt.Point;
|
||||
//import java.awt.Rectangle;
|
||||
//import java.lang.reflect.Field;
|
||||
//import java.util.List;
|
||||
//
|
||||
//import net.minecraft.client.Minecraft;
|
||||
//import net.minecraft.client.gui.ScaledResolution;
|
||||
//import net.minecraft.item.ItemStack;
|
||||
//import net.minecraft.util.ResourceLocation;
|
||||
//import net.minecraft.util.StatCollector;
|
||||
//
|
||||
//import org.lwjgl.input.Mouse;
|
||||
//
|
||||
//import WayofTime.alchemicalWizardry.api.altarRecipeRegistry.AltarRecipe;
|
||||
//import WayofTime.alchemicalWizardry.api.altarRecipeRegistry.AltarRecipeRegistry;
|
||||
//import codechicken.nei.NEIServerUtils;
|
||||
//import codechicken.nei.PositionedStack;
|
||||
//import codechicken.nei.recipe.GuiRecipe;
|
||||
//import codechicken.nei.recipe.TemplateRecipeHandler;
|
||||
//
|
||||
///**
|
||||
// * NEI Altar Recipe Handler by joshie *
|
||||
// */
|
||||
//public class NEIAltarRecipeHandler extends TemplateRecipeHandler {
|
||||
// public class CachedAltarRecipe extends CachedRecipe {
|
||||
// PositionedStack input;
|
||||
//// PositionedStack inputItems;
|
||||
// PositionedStack output;
|
||||
// int tier, lp_amount, consumption, drain;
|
||||
//
|
||||
// public CachedAltarRecipe(AltarRecipe recipe) {
|
||||
//// inputItems = new PositionedStack(recipe.input, 38, 2, false);
|
||||
// input = new PositionedStack(recipe.requiredItem, 38, 2, false);
|
||||
// output = new PositionedStack(recipe.result, 132, 32, false);
|
||||
// tier = recipe.minTier;
|
||||
// lp_amount = recipe.liquidRequired;
|
||||
// consumption = recipe.consumptionRate;
|
||||
// drain = recipe.drainRate;
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public PositionedStack getIngredient() {
|
||||
// return input;
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public PositionedStack getResult() {
|
||||
// return output;
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void loadCraftingRecipes(String outputId, Object... results) {
|
||||
// if (outputId.equals("alchemicalwizardry.altar") && getClass() == NEIAltarRecipeHandler.class) {
|
||||
// for(AltarRecipe recipe: AltarRecipeRegistry.altarRecipes) {
|
||||
// if(recipe != null && recipe.result != null) arecipes.add(new CachedAltarRecipe(recipe));
|
||||
// }
|
||||
// } else {
|
||||
// super.loadCraftingRecipes(outputId, results);
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void loadCraftingRecipes(ItemStack result) {
|
||||
// for(AltarRecipe recipe: AltarRecipeRegistry.altarRecipes) {
|
||||
// if(NEIServerUtils.areStacksSameTypeCrafting(recipe.result, result)) {
|
||||
// if(recipe != null && recipe.result != null) arecipes.add(new CachedAltarRecipe(recipe));
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void loadUsageRecipes(ItemStack ingredient) {
|
||||
// for(AltarRecipe recipe: AltarRecipeRegistry.altarRecipes) {
|
||||
// if(NEIServerUtils.areStacksSameTypeCrafting(recipe.requiredItem, ingredient)) {
|
||||
// if(recipe != null && recipe.result != null) arecipes.add(new CachedAltarRecipe(recipe));
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// //Mouse Position helper
|
||||
// public Point getMouse(int width, int height) {
|
||||
// Point mousepos = getMousePosition();
|
||||
// int guiLeft = (width - 176) / 2;
|
||||
// int guiTop = (height - 166) / 2;
|
||||
// Point relMouse = new Point(mousepos.x - guiLeft, mousepos.y - guiTop);
|
||||
// return relMouse;
|
||||
// }
|
||||
//
|
||||
// //width helper, getting width normal way hates me on compile
|
||||
// public int getGuiWidth(GuiRecipe gui) {
|
||||
// try {
|
||||
// Field f = gui.getClass().getField("width");
|
||||
// return (Integer) f.get(gui);
|
||||
// } catch (NoSuchFieldException e) {
|
||||
// try {
|
||||
// Field f = gui.getClass().getField("field_146294_l");
|
||||
// return (Integer) f.get(gui);
|
||||
// } catch (Exception e2) {
|
||||
// return 0;
|
||||
// }
|
||||
// } catch (Exception e) {
|
||||
// e.printStackTrace();
|
||||
// return 0;
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// //height helper, getting height normal way hates me on compile
|
||||
// public int getGuiHeight(GuiRecipe gui) {
|
||||
// try {
|
||||
// Field f = gui.getClass().getField("height");
|
||||
// return (Integer) f.get(gui);
|
||||
// } catch (NoSuchFieldException e) {
|
||||
// try {
|
||||
// Field f = gui.getClass().getField("field_146295_m");
|
||||
// return (Integer) f.get(gui);
|
||||
// } catch (Exception e2) {
|
||||
// return 0;
|
||||
// }
|
||||
// } catch (Exception e) {
|
||||
// e.printStackTrace();
|
||||
// return 0;
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void drawExtras(int id) {
|
||||
// CachedAltarRecipe recipe = (CachedAltarRecipe) arecipes.get(id);
|
||||
// Minecraft.getMinecraft().fontRendererObj.drawString("\u00a77" + StatCollector.translateToLocal("bm.string.tier") + ": " + recipe.tier, 78, 5, 0);
|
||||
// Minecraft.getMinecraft().fontRendererObj.drawString("\u00a77" + "LP: " + recipe.lp_amount, 78, 15, 0);
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public List<String> handleTooltip(GuiRecipe gui, List<String> currenttip, int id) {
|
||||
// currenttip = super.handleTooltip(gui, currenttip, id);
|
||||
// Point mouse = getMouse(getGuiWidth(gui), getGuiHeight(gui));
|
||||
// CachedAltarRecipe recipe = (CachedAltarRecipe) arecipes.get(id);
|
||||
// int yLow = id % 2 == 0 ? 38 : 102;
|
||||
// int yHigh = id % 2 == 0 ? 72 : 136;
|
||||
// if(mouse.x >= 19 && mouse.x <= 80 && mouse.y >= yLow && mouse.y <= yHigh) {
|
||||
// currenttip.add(StatCollector.translateToLocal("bm.string.consume") + ": " + recipe.consumption + "LP/t");
|
||||
// currenttip.add(StatCollector.translateToLocal("bm.string.drain") + ": " + recipe.drain + "LP/t");
|
||||
// }
|
||||
//
|
||||
// return currenttip;
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public String getOverlayIdentifier() {
|
||||
// return "altarrecipes";
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void loadTransferRects() {
|
||||
// transferRects.add(new RecipeTransferRect(new Rectangle(90, 32, 22, 16), "alchemicalwizardry.altar"));
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public String getRecipeName() {
|
||||
// return " " + StatCollector.translateToLocal("tile.bloodAltar.name");
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public String getGuiTexture() {
|
||||
// return new ResourceLocation("alchemicalwizardry", "gui/nei/altar.png").toString();
|
||||
// }
|
||||
//
|
||||
// public static Point getMousePosition() {
|
||||
// Dimension size = displaySize();
|
||||
// Dimension res = displayRes();
|
||||
// return new Point(Mouse.getX() * size.width / res.width, size.height - Mouse.getY() * size.height / res.height - 1);
|
||||
// }
|
||||
//
|
||||
// public static Dimension displaySize() {
|
||||
// Minecraft mc = Minecraft.getMinecraft();
|
||||
// ScaledResolution res = new ScaledResolution(mc, mc.displayWidth, mc.displayHeight);
|
||||
// return new Dimension(res.getScaledWidth(), res.getScaledHeight());
|
||||
// }
|
||||
//
|
||||
// public static Dimension displayRes() {
|
||||
// Minecraft mc = Minecraft.getMinecraft();
|
||||
// return new Dimension(mc.displayWidth, mc.displayHeight);
|
||||
// }
|
||||
//}
|
||||
|
|
|
@ -1,136 +1,136 @@
|
|||
package WayofTime.alchemicalWizardry.client.nei;
|
||||
|
||||
import WayofTime.alchemicalWizardry.api.bindingRegistry.BindingRecipe;
|
||||
import WayofTime.alchemicalWizardry.api.bindingRegistry.BindingRegistry;
|
||||
import codechicken.nei.NEIServerUtils;
|
||||
import codechicken.nei.PositionedStack;
|
||||
import codechicken.nei.recipe.TemplateRecipeHandler;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.gui.ScaledResolution;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import org.lwjgl.input.Mouse;
|
||||
|
||||
import java.awt.*;
|
||||
|
||||
/**
|
||||
* Binding Ritual Handler by Arcaratus
|
||||
*/
|
||||
public class NEIBindingRitualHandler extends TemplateRecipeHandler
|
||||
{
|
||||
public class CachedBindingRecipe extends CachedRecipe
|
||||
{
|
||||
PositionedStack input, output;
|
||||
|
||||
public CachedBindingRecipe(BindingRecipe recipe)
|
||||
{
|
||||
input = new PositionedStack(recipe.requiredItem, 37, 21, false);
|
||||
output = new PositionedStack(recipe.outputItem, 110, 21, false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PositionedStack getIngredient()
|
||||
{
|
||||
return input;
|
||||
}
|
||||
|
||||
@Override
|
||||
public PositionedStack getResult()
|
||||
{
|
||||
return output;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void loadCraftingRecipes(String outputId, Object... results)
|
||||
{
|
||||
if (outputId.equals("alchemicalwizardry.bindingritual") && getClass() == NEIBindingRitualHandler.class)
|
||||
{
|
||||
for (BindingRecipe recipe : BindingRegistry.bindingRecipes)
|
||||
{
|
||||
if (recipe != null && recipe.outputItem != null)
|
||||
{
|
||||
arecipes.add(new CachedBindingRecipe(recipe));
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
super.loadCraftingRecipes(outputId, results);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void loadCraftingRecipes(ItemStack result)
|
||||
{
|
||||
for (BindingRecipe recipe: BindingRegistry.bindingRecipes)
|
||||
{
|
||||
if (NEIServerUtils.areStacksSameTypeCrafting(recipe.outputItem, result))
|
||||
{
|
||||
if (recipe != null && recipe.outputItem != null)
|
||||
{
|
||||
arecipes.add(new CachedBindingRecipe(recipe));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void loadUsageRecipes(ItemStack ingredient)
|
||||
{
|
||||
for (BindingRecipe recipe: BindingRegistry.bindingRecipes)
|
||||
{
|
||||
if (NEIServerUtils.areStacksSameTypeCrafting(recipe.requiredItem, ingredient))
|
||||
{
|
||||
if (recipe != null && recipe.outputItem != null)
|
||||
{
|
||||
arecipes.add(new CachedBindingRecipe(recipe));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getOverlayIdentifier()
|
||||
{
|
||||
return "alchemicalwizardry.bindingritual";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void loadTransferRects()
|
||||
{
|
||||
transferRects.add(new RecipeTransferRect(new Rectangle(68, 20, 22, 16), "alchemicalwizardry.bindingritual"));
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getRecipeName()
|
||||
{
|
||||
return "Binding Ritual";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getGuiTexture()
|
||||
{
|
||||
return new ResourceLocation("alchemicalwizardry", "gui/nei/bindingRitual.png").toString();
|
||||
}
|
||||
|
||||
public static Point getMousePosition()
|
||||
{
|
||||
Dimension size = displaySize();
|
||||
Dimension res = displayRes();
|
||||
return new Point(Mouse.getX() * size.width / res.width, size.height - Mouse.getY() * size.height / res.height - 1);
|
||||
}
|
||||
|
||||
public static Dimension displaySize()
|
||||
{
|
||||
Minecraft mc = Minecraft.getMinecraft();
|
||||
ScaledResolution res = new ScaledResolution(mc, mc.displayWidth, mc.displayHeight);
|
||||
return new Dimension(res.getScaledWidth(), res.getScaledHeight());
|
||||
}
|
||||
|
||||
public static Dimension displayRes()
|
||||
{
|
||||
Minecraft mc = Minecraft.getMinecraft();
|
||||
return new Dimension(mc.displayWidth, mc.displayHeight);
|
||||
}
|
||||
}
|
||||
//package WayofTime.alchemicalWizardry.client.nei;
|
||||
//
|
||||
//import WayofTime.alchemicalWizardry.api.bindingRegistry.BindingRecipe;
|
||||
//import WayofTime.alchemicalWizardry.api.bindingRegistry.BindingRegistry;
|
||||
//import codechicken.nei.NEIServerUtils;
|
||||
//import codechicken.nei.PositionedStack;
|
||||
//import codechicken.nei.recipe.TemplateRecipeHandler;
|
||||
//import net.minecraft.client.Minecraft;
|
||||
//import net.minecraft.client.gui.ScaledResolution;
|
||||
//import net.minecraft.item.ItemStack;
|
||||
//import net.minecraft.util.ResourceLocation;
|
||||
//import org.lwjgl.input.Mouse;
|
||||
//
|
||||
//import java.awt.*;
|
||||
//
|
||||
///**
|
||||
// * Binding Ritual Handler by Arcaratus
|
||||
// */
|
||||
//public class NEIBindingRitualHandler extends TemplateRecipeHandler
|
||||
//{
|
||||
// public class CachedBindingRecipe extends CachedRecipe
|
||||
// {
|
||||
// PositionedStack input, output;
|
||||
//
|
||||
// public CachedBindingRecipe(BindingRecipe recipe)
|
||||
// {
|
||||
// input = new PositionedStack(recipe.requiredItem, 37, 21, false);
|
||||
// output = new PositionedStack(recipe.outputItem, 110, 21, false);
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public PositionedStack getIngredient()
|
||||
// {
|
||||
// return input;
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public PositionedStack getResult()
|
||||
// {
|
||||
// return output;
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void loadCraftingRecipes(String outputId, Object... results)
|
||||
// {
|
||||
// if (outputId.equals("alchemicalwizardry.bindingritual") && getClass() == NEIBindingRitualHandler.class)
|
||||
// {
|
||||
// for (BindingRecipe recipe : BindingRegistry.bindingRecipes)
|
||||
// {
|
||||
// if (recipe != null && recipe.outputItem != null)
|
||||
// {
|
||||
// arecipes.add(new CachedBindingRecipe(recipe));
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// super.loadCraftingRecipes(outputId, results);
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void loadCraftingRecipes(ItemStack result)
|
||||
// {
|
||||
// for (BindingRecipe recipe: BindingRegistry.bindingRecipes)
|
||||
// {
|
||||
// if (NEIServerUtils.areStacksSameTypeCrafting(recipe.outputItem, result))
|
||||
// {
|
||||
// if (recipe != null && recipe.outputItem != null)
|
||||
// {
|
||||
// arecipes.add(new CachedBindingRecipe(recipe));
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void loadUsageRecipes(ItemStack ingredient)
|
||||
// {
|
||||
// for (BindingRecipe recipe: BindingRegistry.bindingRecipes)
|
||||
// {
|
||||
// if (NEIServerUtils.areStacksSameTypeCrafting(recipe.requiredItem, ingredient))
|
||||
// {
|
||||
// if (recipe != null && recipe.outputItem != null)
|
||||
// {
|
||||
// arecipes.add(new CachedBindingRecipe(recipe));
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public String getOverlayIdentifier()
|
||||
// {
|
||||
// return "alchemicalwizardry.bindingritual";
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void loadTransferRects()
|
||||
// {
|
||||
// transferRects.add(new RecipeTransferRect(new Rectangle(68, 20, 22, 16), "alchemicalwizardry.bindingritual"));
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public String getRecipeName()
|
||||
// {
|
||||
// return "Binding Ritual";
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public String getGuiTexture()
|
||||
// {
|
||||
// return new ResourceLocation("alchemicalwizardry", "gui/nei/bindingRitual.png").toString();
|
||||
// }
|
||||
//
|
||||
// public static Point getMousePosition()
|
||||
// {
|
||||
// Dimension size = displaySize();
|
||||
// Dimension res = displayRes();
|
||||
// return new Point(Mouse.getX() * size.width / res.width, size.height - Mouse.getY() * size.height / res.height - 1);
|
||||
// }
|
||||
//
|
||||
// public static Dimension displaySize()
|
||||
// {
|
||||
// Minecraft mc = Minecraft.getMinecraft();
|
||||
// ScaledResolution res = new ScaledResolution(mc, mc.displayWidth, mc.displayHeight);
|
||||
// return new Dimension(res.getScaledWidth(), res.getScaledHeight());
|
||||
// }
|
||||
//
|
||||
// public static Dimension displayRes()
|
||||
// {
|
||||
// Minecraft mc = Minecraft.getMinecraft();
|
||||
// return new Dimension(mc.displayWidth, mc.displayHeight);
|
||||
// }
|
||||
//}
|
|
@ -1,142 +1,142 @@
|
|||
package WayofTime.alchemicalWizardry.client.nei;
|
||||
|
||||
import java.awt.Rectangle;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.CraftingManager;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import WayofTime.alchemicalWizardry.api.items.ShapedBloodOrbRecipe;
|
||||
import WayofTime.alchemicalWizardry.api.items.interfaces.IBloodOrb;
|
||||
import codechicken.nei.NEIServerUtils;
|
||||
import codechicken.nei.PositionedStack;
|
||||
import codechicken.nei.recipe.ShapedRecipeHandler;
|
||||
|
||||
/**
|
||||
* NEI Blood Orb Shaped Recipe Handler by joshie *
|
||||
*/
|
||||
public class NEIBloodOrbShapedHandler extends ShapedRecipeHandler {
|
||||
public class CachedBloodOrbRecipe extends CachedShapedRecipe {
|
||||
public CachedBloodOrbRecipe(int width, int height, Object[] items, ItemStack out) {
|
||||
super(width, height, items, out);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setIngredients(int width, int height, Object[] items) {
|
||||
for (int x = 0; x < width; x++) {
|
||||
for (int y = 0; y < height; y++) {
|
||||
if (items[y * width + x] == null)
|
||||
continue;
|
||||
|
||||
Object o = items[y * width + x];
|
||||
if (o instanceof ItemStack) {
|
||||
PositionedStack stack = new PositionedStack(items[y * width + x], 25 + x * 18, 6 + y * 18, false);
|
||||
stack.setMaxSize(1);
|
||||
ingredients.add(stack);
|
||||
} else if (o instanceof Integer) {
|
||||
ArrayList<ItemStack> orbs = new ArrayList();
|
||||
for (Item item : NEIConfig.bloodOrbs) {
|
||||
if (((IBloodOrb) item).getOrbLevel() >= (Integer) o) {
|
||||
orbs.add(new ItemStack(item));
|
||||
}
|
||||
}
|
||||
|
||||
PositionedStack stack = new PositionedStack(orbs, 25 + x * 18, 6 + y * 18, false);
|
||||
stack.setMaxSize(1);
|
||||
ingredients.add(stack);
|
||||
}else if(o instanceof List)
|
||||
{
|
||||
PositionedStack stack = new PositionedStack(o, 25 + x * 18, 6 + y * 18, false);
|
||||
stack.setMaxSize(1);
|
||||
ingredients.add(stack);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void loadCraftingRecipes(String outputId, Object... results) {
|
||||
if (outputId.equals("crafting") && getClass() == NEIBloodOrbShapedHandler.class) {
|
||||
for (IRecipe irecipe : (List<IRecipe>) CraftingManager.getInstance().getRecipeList()) {
|
||||
if (irecipe instanceof ShapedBloodOrbRecipe) {
|
||||
CachedBloodOrbRecipe recipe = forgeShapedRecipe((ShapedBloodOrbRecipe) irecipe);
|
||||
if (recipe == null)
|
||||
continue;
|
||||
|
||||
recipe.computeVisuals();
|
||||
arecipes.add(recipe);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
super.loadCraftingRecipes(outputId, results);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void loadCraftingRecipes(ItemStack result) {
|
||||
for (IRecipe irecipe : (List<IRecipe>) CraftingManager.getInstance().getRecipeList()) {
|
||||
if (irecipe instanceof ShapedBloodOrbRecipe) {
|
||||
CachedBloodOrbRecipe recipe = forgeShapedRecipe((ShapedBloodOrbRecipe) irecipe);
|
||||
if (recipe == null || !NEIServerUtils.areStacksSameTypeCrafting(recipe.result.item, result))
|
||||
continue;
|
||||
|
||||
recipe.computeVisuals();
|
||||
arecipes.add(recipe);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void loadUsageRecipes(ItemStack ingredient) {
|
||||
for (IRecipe irecipe : (List<IRecipe>) CraftingManager.getInstance().getRecipeList()) {
|
||||
CachedShapedRecipe recipe = null;
|
||||
if (irecipe instanceof ShapedBloodOrbRecipe)
|
||||
recipe = forgeShapedRecipe((ShapedBloodOrbRecipe) irecipe);
|
||||
|
||||
if (recipe == null || !recipe.contains(recipe.ingredients, ingredient.getItem()))
|
||||
continue;
|
||||
|
||||
recipe.computeVisuals();
|
||||
if (recipe.contains(recipe.ingredients, ingredient)) {
|
||||
recipe.setIngredientPermutation(recipe.ingredients, ingredient);
|
||||
arecipes.add(recipe);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private CachedBloodOrbRecipe forgeShapedRecipe(ShapedBloodOrbRecipe recipe) {
|
||||
int width;
|
||||
int height;
|
||||
try {
|
||||
width = recipe.width;
|
||||
height = recipe.height;
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return null;
|
||||
}
|
||||
|
||||
Object[] items = recipe.getInput();
|
||||
for (Object item : items)
|
||||
if (item instanceof List && ((List<?>) item).isEmpty())// ore
|
||||
// handler,
|
||||
// no ores
|
||||
return null;
|
||||
|
||||
return new CachedBloodOrbRecipe(width, height, items, recipe.getRecipeOutput());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void loadTransferRects() {
|
||||
transferRects.add(new RecipeTransferRect(new Rectangle(84, 23, 24, 18), "crafting"));
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String getRecipeName() {
|
||||
return StatCollector.translateToLocal("bm.string.crafting.orb.shaped");
|
||||
}
|
||||
}
|
||||
//package WayofTime.alchemicalWizardry.client.nei;
|
||||
//
|
||||
//import java.awt.Rectangle;
|
||||
//import java.util.ArrayList;
|
||||
//import java.util.List;
|
||||
//
|
||||
//import net.minecraft.item.Item;
|
||||
//import net.minecraft.item.ItemStack;
|
||||
//import net.minecraft.item.crafting.CraftingManager;
|
||||
//import net.minecraft.item.crafting.IRecipe;
|
||||
//import net.minecraft.util.StatCollector;
|
||||
//import WayofTime.alchemicalWizardry.api.items.ShapedBloodOrbRecipe;
|
||||
//import WayofTime.alchemicalWizardry.api.items.interfaces.IBloodOrb;
|
||||
//import codechicken.nei.NEIServerUtils;
|
||||
//import codechicken.nei.PositionedStack;
|
||||
//import codechicken.nei.recipe.ShapedRecipeHandler;
|
||||
//
|
||||
///**
|
||||
// * NEI Blood Orb Shaped Recipe Handler by joshie *
|
||||
// */
|
||||
//public class NEIBloodOrbShapedHandler extends ShapedRecipeHandler {
|
||||
// public class CachedBloodOrbRecipe extends CachedShapedRecipe {
|
||||
// public CachedBloodOrbRecipe(int width, int height, Object[] items, ItemStack out) {
|
||||
// super(width, height, items, out);
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void setIngredients(int width, int height, Object[] items) {
|
||||
// for (int x = 0; x < width; x++) {
|
||||
// for (int y = 0; y < height; y++) {
|
||||
// if (items[y * width + x] == null)
|
||||
// continue;
|
||||
//
|
||||
// Object o = items[y * width + x];
|
||||
// if (o instanceof ItemStack) {
|
||||
// PositionedStack stack = new PositionedStack(items[y * width + x], 25 + x * 18, 6 + y * 18, false);
|
||||
// stack.setMaxSize(1);
|
||||
// ingredients.add(stack);
|
||||
// } else if (o instanceof Integer) {
|
||||
// ArrayList<ItemStack> orbs = new ArrayList();
|
||||
// for (Item item : NEIConfig.bloodOrbs) {
|
||||
// if (((IBloodOrb) item).getOrbLevel() >= (Integer) o) {
|
||||
// orbs.add(new ItemStack(item));
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// PositionedStack stack = new PositionedStack(orbs, 25 + x * 18, 6 + y * 18, false);
|
||||
// stack.setMaxSize(1);
|
||||
// ingredients.add(stack);
|
||||
// }else if(o instanceof List)
|
||||
// {
|
||||
// PositionedStack stack = new PositionedStack(o, 25 + x * 18, 6 + y * 18, false);
|
||||
// stack.setMaxSize(1);
|
||||
// ingredients.add(stack);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void loadCraftingRecipes(String outputId, Object... results) {
|
||||
// if (outputId.equals("crafting") && getClass() == NEIBloodOrbShapedHandler.class) {
|
||||
// for (IRecipe irecipe : (List<IRecipe>) CraftingManager.getInstance().getRecipeList()) {
|
||||
// if (irecipe instanceof ShapedBloodOrbRecipe) {
|
||||
// CachedBloodOrbRecipe recipe = forgeShapedRecipe((ShapedBloodOrbRecipe) irecipe);
|
||||
// if (recipe == null)
|
||||
// continue;
|
||||
//
|
||||
// recipe.computeVisuals();
|
||||
// arecipes.add(recipe);
|
||||
// }
|
||||
// }
|
||||
// } else {
|
||||
// super.loadCraftingRecipes(outputId, results);
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void loadCraftingRecipes(ItemStack result) {
|
||||
// for (IRecipe irecipe : (List<IRecipe>) CraftingManager.getInstance().getRecipeList()) {
|
||||
// if (irecipe instanceof ShapedBloodOrbRecipe) {
|
||||
// CachedBloodOrbRecipe recipe = forgeShapedRecipe((ShapedBloodOrbRecipe) irecipe);
|
||||
// if (recipe == null || !NEIServerUtils.areStacksSameTypeCrafting(recipe.result.item, result))
|
||||
// continue;
|
||||
//
|
||||
// recipe.computeVisuals();
|
||||
// arecipes.add(recipe);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void loadUsageRecipes(ItemStack ingredient) {
|
||||
// for (IRecipe irecipe : (List<IRecipe>) CraftingManager.getInstance().getRecipeList()) {
|
||||
// CachedShapedRecipe recipe = null;
|
||||
// if (irecipe instanceof ShapedBloodOrbRecipe)
|
||||
// recipe = forgeShapedRecipe((ShapedBloodOrbRecipe) irecipe);
|
||||
//
|
||||
// if (recipe == null || !recipe.contains(recipe.ingredients, ingredient.getItem()))
|
||||
// continue;
|
||||
//
|
||||
// recipe.computeVisuals();
|
||||
// if (recipe.contains(recipe.ingredients, ingredient)) {
|
||||
// recipe.setIngredientPermutation(recipe.ingredients, ingredient);
|
||||
// arecipes.add(recipe);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// private CachedBloodOrbRecipe forgeShapedRecipe(ShapedBloodOrbRecipe recipe) {
|
||||
// int width;
|
||||
// int height;
|
||||
// try {
|
||||
// width = recipe.width;
|
||||
// height = recipe.height;
|
||||
// } catch (Exception e) {
|
||||
// e.printStackTrace();
|
||||
// return null;
|
||||
// }
|
||||
//
|
||||
// Object[] items = recipe.getInput();
|
||||
// for (Object item : items)
|
||||
// if (item instanceof List && ((List<?>) item).isEmpty())// ore
|
||||
// // handler,
|
||||
// // no ores
|
||||
// return null;
|
||||
//
|
||||
// return new CachedBloodOrbRecipe(width, height, items, recipe.getRecipeOutput());
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void loadTransferRects() {
|
||||
// transferRects.add(new RecipeTransferRect(new Rectangle(84, 23, 24, 18), "crafting"));
|
||||
// }
|
||||
//
|
||||
//
|
||||
// @Override
|
||||
// public String getRecipeName() {
|
||||
// return StatCollector.translateToLocal("bm.string.crafting.orb.shaped");
|
||||
// }
|
||||
//}
|
||||
|
|
|
@ -1,135 +1,135 @@
|
|||
package WayofTime.alchemicalWizardry.client.nei;
|
||||
|
||||
import java.awt.Rectangle;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.CraftingManager;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import WayofTime.alchemicalWizardry.api.items.ShapelessBloodOrbRecipe;
|
||||
import WayofTime.alchemicalWizardry.api.items.interfaces.IBloodOrb;
|
||||
import codechicken.nei.NEIServerUtils;
|
||||
import codechicken.nei.PositionedStack;
|
||||
import codechicken.nei.recipe.ShapelessRecipeHandler;
|
||||
|
||||
/**
|
||||
* NEI Blood Orb Shapeless Recipe Handler by joshie *
|
||||
*/
|
||||
public class NEIBloodOrbShapelessHandler extends ShapelessRecipeHandler {
|
||||
public class CachedBloodOrbRecipe extends CachedShapelessRecipe {
|
||||
public CachedBloodOrbRecipe(ArrayList<Object> items, ItemStack recipeOutput) {
|
||||
super(items, recipeOutput);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setIngredients(List<?> items) {
|
||||
ingredients.clear();
|
||||
for (int ingred = 0; ingred < items.size(); ingred++) {
|
||||
Object o = items.get(ingred);
|
||||
if (o instanceof ItemStack) {
|
||||
PositionedStack stack = new PositionedStack(items.get(ingred), 25 + stackorder[ingred][0] * 18, 6 + stackorder[ingred][1] * 18);
|
||||
stack.setMaxSize(1);
|
||||
ingredients.add(stack);
|
||||
} else if (o instanceof Integer) {
|
||||
ArrayList<ItemStack> orbs = new ArrayList<ItemStack>();
|
||||
for (Item item : NEIConfig.bloodOrbs) {
|
||||
if (((IBloodOrb) item).getOrbLevel() >= (Integer) o) {
|
||||
orbs.add(new ItemStack(item));
|
||||
}
|
||||
}
|
||||
|
||||
PositionedStack stack = new PositionedStack(orbs, 25 + stackorder[ingred][0] * 18, 6 + stackorder[ingred][1] * 18);
|
||||
stack.setMaxSize(1);
|
||||
ingredients.add(stack);
|
||||
}else if(o instanceof List)
|
||||
{
|
||||
PositionedStack stack = new PositionedStack(o, 25 + stackorder[ingred][0] * 18, 6 + stackorder[ingred][1] * 18);
|
||||
stack.setMaxSize(1);
|
||||
ingredients.add(stack);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void loadCraftingRecipes(String outputId, Object... results) {
|
||||
if (outputId.equals("crafting") && getClass() == NEIBloodOrbShapelessHandler.class) {
|
||||
List<IRecipe> allrecipes = CraftingManager.getInstance().getRecipeList();
|
||||
for (IRecipe irecipe : allrecipes) {
|
||||
CachedBloodOrbRecipe recipe = null;
|
||||
if (irecipe instanceof ShapelessBloodOrbRecipe)
|
||||
recipe = forgeShapelessRecipe((ShapelessBloodOrbRecipe) irecipe);
|
||||
|
||||
if (recipe == null)
|
||||
continue;
|
||||
|
||||
arecipes.add(recipe);
|
||||
}
|
||||
} else {
|
||||
super.loadCraftingRecipes(outputId, results);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void loadCraftingRecipes(ItemStack result) {
|
||||
List<IRecipe> allrecipes = CraftingManager.getInstance().getRecipeList();
|
||||
for (IRecipe irecipe : allrecipes) {
|
||||
if (NEIServerUtils.areStacksSameTypeCrafting(irecipe.getRecipeOutput(), result)) {
|
||||
CachedBloodOrbRecipe recipe = null;
|
||||
if (irecipe instanceof ShapelessBloodOrbRecipe)
|
||||
recipe = forgeShapelessRecipe((ShapelessBloodOrbRecipe) irecipe);
|
||||
|
||||
if (recipe == null)
|
||||
continue;
|
||||
|
||||
arecipes.add(recipe);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void loadUsageRecipes(ItemStack ingredient) {
|
||||
List<IRecipe> allrecipes = CraftingManager.getInstance().getRecipeList();
|
||||
for (IRecipe irecipe : allrecipes) {
|
||||
CachedBloodOrbRecipe recipe = null;
|
||||
if (irecipe instanceof ShapelessBloodOrbRecipe)
|
||||
recipe = forgeShapelessRecipe((ShapelessBloodOrbRecipe) irecipe);
|
||||
|
||||
if (recipe == null)
|
||||
continue;
|
||||
|
||||
if (recipe.contains(recipe.ingredients, ingredient)) {
|
||||
recipe.setIngredientPermutation(recipe.ingredients, ingredient);
|
||||
arecipes.add(recipe);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public CachedBloodOrbRecipe forgeShapelessRecipe(ShapelessBloodOrbRecipe recipe) {
|
||||
ArrayList<Object> items = recipe.getInput();
|
||||
|
||||
for (Object item : items)
|
||||
if (item instanceof List && ((List<?>) item).isEmpty())//ore handler, no ores
|
||||
return null;
|
||||
|
||||
return new CachedBloodOrbRecipe(items, recipe.getRecipeOutput());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void loadTransferRects() {
|
||||
transferRects.add(new RecipeTransferRect(new Rectangle(84, 23, 24, 18), "crafting"));
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getOverlayIdentifier() {
|
||||
return "crafting";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getRecipeName() {
|
||||
return StatCollector.translateToLocal("bm.string.crafting.orb.shapeless");
|
||||
}
|
||||
}
|
||||
//package WayofTime.alchemicalWizardry.client.nei;
|
||||
//
|
||||
//import java.awt.Rectangle;
|
||||
//import java.util.ArrayList;
|
||||
//import java.util.List;
|
||||
//
|
||||
//import net.minecraft.item.Item;
|
||||
//import net.minecraft.item.ItemStack;
|
||||
//import net.minecraft.item.crafting.CraftingManager;
|
||||
//import net.minecraft.item.crafting.IRecipe;
|
||||
//import net.minecraft.util.StatCollector;
|
||||
//import WayofTime.alchemicalWizardry.api.items.ShapelessBloodOrbRecipe;
|
||||
//import WayofTime.alchemicalWizardry.api.items.interfaces.IBloodOrb;
|
||||
//import codechicken.nei.NEIServerUtils;
|
||||
//import codechicken.nei.PositionedStack;
|
||||
//import codechicken.nei.recipe.ShapelessRecipeHandler;
|
||||
//
|
||||
///**
|
||||
// * NEI Blood Orb Shapeless Recipe Handler by joshie *
|
||||
// */
|
||||
//public class NEIBloodOrbShapelessHandler extends ShapelessRecipeHandler {
|
||||
// public class CachedBloodOrbRecipe extends CachedShapelessRecipe {
|
||||
// public CachedBloodOrbRecipe(ArrayList<Object> items, ItemStack recipeOutput) {
|
||||
// super(items, recipeOutput);
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void setIngredients(List<?> items) {
|
||||
// ingredients.clear();
|
||||
// for (int ingred = 0; ingred < items.size(); ingred++) {
|
||||
// Object o = items.get(ingred);
|
||||
// if (o instanceof ItemStack) {
|
||||
// PositionedStack stack = new PositionedStack(items.get(ingred), 25 + stackorder[ingred][0] * 18, 6 + stackorder[ingred][1] * 18);
|
||||
// stack.setMaxSize(1);
|
||||
// ingredients.add(stack);
|
||||
// } else if (o instanceof Integer) {
|
||||
// ArrayList<ItemStack> orbs = new ArrayList<ItemStack>();
|
||||
// for (Item item : NEIConfig.bloodOrbs) {
|
||||
// if (((IBloodOrb) item).getOrbLevel() >= (Integer) o) {
|
||||
// orbs.add(new ItemStack(item));
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// PositionedStack stack = new PositionedStack(orbs, 25 + stackorder[ingred][0] * 18, 6 + stackorder[ingred][1] * 18);
|
||||
// stack.setMaxSize(1);
|
||||
// ingredients.add(stack);
|
||||
// }else if(o instanceof List)
|
||||
// {
|
||||
// PositionedStack stack = new PositionedStack(o, 25 + stackorder[ingred][0] * 18, 6 + stackorder[ingred][1] * 18);
|
||||
// stack.setMaxSize(1);
|
||||
// ingredients.add(stack);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void loadCraftingRecipes(String outputId, Object... results) {
|
||||
// if (outputId.equals("crafting") && getClass() == NEIBloodOrbShapelessHandler.class) {
|
||||
// List<IRecipe> allrecipes = CraftingManager.getInstance().getRecipeList();
|
||||
// for (IRecipe irecipe : allrecipes) {
|
||||
// CachedBloodOrbRecipe recipe = null;
|
||||
// if (irecipe instanceof ShapelessBloodOrbRecipe)
|
||||
// recipe = forgeShapelessRecipe((ShapelessBloodOrbRecipe) irecipe);
|
||||
//
|
||||
// if (recipe == null)
|
||||
// continue;
|
||||
//
|
||||
// arecipes.add(recipe);
|
||||
// }
|
||||
// } else {
|
||||
// super.loadCraftingRecipes(outputId, results);
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void loadCraftingRecipes(ItemStack result) {
|
||||
// List<IRecipe> allrecipes = CraftingManager.getInstance().getRecipeList();
|
||||
// for (IRecipe irecipe : allrecipes) {
|
||||
// if (NEIServerUtils.areStacksSameTypeCrafting(irecipe.getRecipeOutput(), result)) {
|
||||
// CachedBloodOrbRecipe recipe = null;
|
||||
// if (irecipe instanceof ShapelessBloodOrbRecipe)
|
||||
// recipe = forgeShapelessRecipe((ShapelessBloodOrbRecipe) irecipe);
|
||||
//
|
||||
// if (recipe == null)
|
||||
// continue;
|
||||
//
|
||||
// arecipes.add(recipe);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void loadUsageRecipes(ItemStack ingredient) {
|
||||
// List<IRecipe> allrecipes = CraftingManager.getInstance().getRecipeList();
|
||||
// for (IRecipe irecipe : allrecipes) {
|
||||
// CachedBloodOrbRecipe recipe = null;
|
||||
// if (irecipe instanceof ShapelessBloodOrbRecipe)
|
||||
// recipe = forgeShapelessRecipe((ShapelessBloodOrbRecipe) irecipe);
|
||||
//
|
||||
// if (recipe == null)
|
||||
// continue;
|
||||
//
|
||||
// if (recipe.contains(recipe.ingredients, ingredient)) {
|
||||
// recipe.setIngredientPermutation(recipe.ingredients, ingredient);
|
||||
// arecipes.add(recipe);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// public CachedBloodOrbRecipe forgeShapelessRecipe(ShapelessBloodOrbRecipe recipe) {
|
||||
// ArrayList<Object> items = recipe.getInput();
|
||||
//
|
||||
// for (Object item : items)
|
||||
// if (item instanceof List && ((List<?>) item).isEmpty())//ore handler, no ores
|
||||
// return null;
|
||||
//
|
||||
// return new CachedBloodOrbRecipe(items, recipe.getRecipeOutput());
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void loadTransferRects() {
|
||||
// transferRects.add(new RecipeTransferRect(new Rectangle(84, 23, 24, 18), "crafting"));
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public String getOverlayIdentifier() {
|
||||
// return "crafting";
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public String getRecipeName() {
|
||||
// return StatCollector.translateToLocal("bm.string.crafting.orb.shapeless");
|
||||
// }
|
||||
//}
|
||||
|
|
|
@ -1,36 +1,36 @@
|
|||
package WayofTime.alchemicalWizardry.client.nei;
|
||||
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import net.minecraft.item.Item;
|
||||
import codechicken.nei.api.API;
|
||||
import codechicken.nei.api.IConfigureNEI;
|
||||
|
||||
public class NEIConfig implements IConfigureNEI {
|
||||
public static ArrayList<Item> bloodOrbs = new ArrayList<Item>();
|
||||
|
||||
@Override
|
||||
public void loadConfig() {
|
||||
API.registerRecipeHandler(new NEIAlchemyRecipeHandler());
|
||||
API.registerUsageHandler(new NEIAlchemyRecipeHandler());
|
||||
API.registerRecipeHandler(new NEIAltarRecipeHandler());
|
||||
API.registerUsageHandler(new NEIAltarRecipeHandler());
|
||||
API.registerRecipeHandler(new NEIBloodOrbShapedHandler());
|
||||
API.registerUsageHandler(new NEIBloodOrbShapedHandler());
|
||||
API.registerRecipeHandler(new NEIBloodOrbShapelessHandler());
|
||||
API.registerUsageHandler(new NEIBloodOrbShapelessHandler());
|
||||
API.registerRecipeHandler(new NEIBindingRitualHandler());
|
||||
API.registerUsageHandler(new NEIBindingRitualHandler());
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "Blood Magic NEI";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getVersion() {
|
||||
return "1.3";
|
||||
}
|
||||
}
|
||||
//package WayofTime.alchemicalWizardry.client.nei;
|
||||
//
|
||||
//
|
||||
//import java.util.ArrayList;
|
||||
//
|
||||
//import net.minecraft.item.Item;
|
||||
//import codechicken.nei.api.API;
|
||||
//import codechicken.nei.api.IConfigureNEI;
|
||||
//
|
||||
//public class NEIConfig implements IConfigureNEI {
|
||||
// public static ArrayList<Item> bloodOrbs = new ArrayList<Item>();
|
||||
//
|
||||
// @Override
|
||||
// public void loadConfig() {
|
||||
// API.registerRecipeHandler(new NEIAlchemyRecipeHandler());
|
||||
// API.registerUsageHandler(new NEIAlchemyRecipeHandler());
|
||||
// API.registerRecipeHandler(new NEIAltarRecipeHandler());
|
||||
// API.registerUsageHandler(new NEIAltarRecipeHandler());
|
||||
// API.registerRecipeHandler(new NEIBloodOrbShapedHandler());
|
||||
// API.registerUsageHandler(new NEIBloodOrbShapedHandler());
|
||||
// API.registerRecipeHandler(new NEIBloodOrbShapelessHandler());
|
||||
// API.registerUsageHandler(new NEIBloodOrbShapelessHandler());
|
||||
// API.registerRecipeHandler(new NEIBindingRitualHandler());
|
||||
// API.registerUsageHandler(new NEIBindingRitualHandler());
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public String getName() {
|
||||
// return "Blood Magic NEI";
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public String getVersion() {
|
||||
// return "1.3";
|
||||
// }
|
||||
//}
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseAlchemyItem_concentrated_catalyst"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseAlchemyItem_fractured_bone"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseAlchemyItem_offensa"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseAlchemyItem_orbis_terrae"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseAlchemyItem_potentia"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseAlchemyItem_praesidium"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseAlchemyItem_reductus"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseAlchemyItem_strengthened_catalyst"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseAlchemyItem_virtus"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_cost_core"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_cracked_runic_plate"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_default_core"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_defensive_core"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_earthen_core"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_empty_core"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_ender_shard"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_environmental_core"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_ethereal_slate"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_flame_core"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_gust_core"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_icy_core"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_input_cable"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_life_brace"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_life_shard"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_magicales_cable"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_melee_core"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_obsidian_brace"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_offensive_core"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_output_cable"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_paradigm_back_plate"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_potency_core"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_power_core"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_projectile_core"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_quartz_rod"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_runic_plate"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_scribed_runic_plate"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_self_core"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_soul_runic_plate"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_soul_shard"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_stone_brace"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_tool_core"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/baseItem_wood_brace"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/BloodLightSigil"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"parent":"alchemicalwizardry:item/standard_item",
|
||||
"textures": {
|
||||
"layer0":"alchemicalwizardry:items/LifeBucket"
|
||||
}
|
||||
}
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue