update to 1.12.1
This commit is contained in:
@@ -52,7 +52,7 @@ dependencies {
|
|||||||
//compile against the JEI API
|
//compile against the JEI API
|
||||||
deobfCompile "mezz.jei:jei_${mc_version}:${jei_version}:api"
|
deobfCompile "mezz.jei:jei_${mc_version}:${jei_version}:api"
|
||||||
//runtime "mezz.jei:jei_${mc_version}:${jei_version}"
|
//runtime "mezz.jei:jei_${mc_version}:${jei_version}"
|
||||||
deobfCompile "nmd.primal.core:PrimalCore:${primal_version}:dev"
|
deobfCompile "nmd.primal.core:PrimalCore:${mc_version}-${primal_version}:dev"
|
||||||
//runtime "nmd.primal.core:PrimalCore:${primal_version}"
|
//runtime "nmd.primal.core:PrimalCore:${primal_version}"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ mod_group=nmd.primal.forgecraft
|
|||||||
mod_name=ForgeCraft
|
mod_name=ForgeCraft
|
||||||
mod_version=1.3.0
|
mod_version=1.3.0
|
||||||
|
|
||||||
forge_version=14.21.0.2368
|
forge_version=14.22.0.2463
|
||||||
mcp_mappings=snapshot_20170624
|
mcp_mappings=snapshot_20170624
|
||||||
mc_version=1.12
|
mc_version=1.12.1
|
||||||
|
|
||||||
primal_version=0.5+
|
primal_version=0.5+
|
||||||
jei_version=4.7+
|
jei_version=4.7+
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ import net.minecraft.util.EnumHand;
|
|||||||
import net.minecraft.util.math.BlockPos;
|
import net.minecraft.util.math.BlockPos;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import net.minecraftforge.client.model.ModelLoader;
|
import net.minecraftforge.client.model.ModelLoader;
|
||||||
|
import net.minecraftforge.fml.common.registry.ForgeRegistries;
|
||||||
import net.minecraftforge.fml.common.registry.GameRegistry;
|
import net.minecraftforge.fml.common.registry.GameRegistry;
|
||||||
import net.minecraftforge.fml.relauncher.Side;
|
import net.minecraftforge.fml.relauncher.Side;
|
||||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||||
@@ -599,25 +600,36 @@ public class ModBlocks {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void registerBlock(Block block) {
|
private static void registerBlock(Block block)
|
||||||
GameRegistry.register(block);
|
{
|
||||||
|
ForgeRegistries.BLOCKS.register(block);
|
||||||
|
//GameRegistry.register(block);
|
||||||
|
|
||||||
ItemBlock item = new ItemBlock(block);
|
ItemBlock item = new ItemBlock(block);
|
||||||
item.setRegistryName(block.getRegistryName());
|
item.setRegistryName(block.getRegistryName());
|
||||||
GameRegistry.register(item);
|
|
||||||
|
ForgeRegistries.ITEMS.register(item);
|
||||||
|
//GameRegistry.register(item);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void registerBlockSubType(Block block, ItemBlock itemBlock, String registryName){
|
private static void registerBlockSubType(Block block, ItemBlock item, String registryName)
|
||||||
GameRegistry.register(block);
|
{
|
||||||
ItemBlock item = itemBlock;
|
ForgeRegistries.BLOCKS.register(block);
|
||||||
|
//GameRegistry.register(block);
|
||||||
|
|
||||||
item.setRegistryName(registryName);
|
item.setRegistryName(registryName);
|
||||||
GameRegistry.register(item);
|
|
||||||
|
ForgeRegistries.ITEMS.register(item);
|
||||||
|
//GameRegistry.register(item);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void registerRender(Block block) {
|
private static void registerRender(Block block)
|
||||||
|
{
|
||||||
Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(block), 0, new ModelResourceLocation(block.getRegistryName(), "inventory"));
|
Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(block), 0, new ModelResourceLocation(block.getRegistryName(), "inventory"));
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void registerRenderCustom(ItemBlock item, Integer meta, ModelResourceLocation model){
|
private static void registerRenderCustom(ItemBlock item, Integer meta, ModelResourceLocation model)
|
||||||
|
{
|
||||||
ModelLoader.setCustomModelResourceLocation(item, meta, model);
|
ModelLoader.setCustomModelResourceLocation(item, meta, model);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import net.minecraftforge.fml.common.registry.GameRegistry;
|
|||||||
import net.minecraftforge.oredict.OreDictionary;
|
import net.minecraftforge.oredict.OreDictionary;
|
||||||
import net.minecraftforge.oredict.ShapedOreRecipe;
|
import net.minecraftforge.oredict.ShapedOreRecipe;
|
||||||
import nmd.primal.core.api.PrimalItems;
|
import nmd.primal.core.api.PrimalItems;
|
||||||
|
import nmd.primal.core.common.crafting.RecipeHandler;
|
||||||
import nmd.primal.core.common.helper.CommonUtils;
|
import nmd.primal.core.common.helper.CommonUtils;
|
||||||
import nmd.primal.forgecraft.crafting.AnvilCrafting;
|
import nmd.primal.forgecraft.crafting.AnvilCrafting;
|
||||||
import nmd.primal.forgecraft.crafting.BloomeryCrafting;
|
import nmd.primal.forgecraft.crafting.BloomeryCrafting;
|
||||||
@@ -25,176 +26,178 @@ public class ModCrafting {
|
|||||||
|
|
||||||
Random rand = new Random();
|
Random rand = new Random();
|
||||||
|
|
||||||
|
//RecipeHandler.addShapedOreRecipe();
|
||||||
|
|
||||||
/***CASTING BLOCK***/
|
/***CASTING BLOCK***/
|
||||||
GameRegistry.addShapedRecipe(new ItemStack(ModBlocks.castingblock),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModBlocks.castingblock),
|
||||||
" B ", "BXB", " B ", 'X', Blocks.STONE_SLAB, 'B', PrimalItems.ADOBEBRICK_DRY);
|
" B ", "BXB", " B ", 'X', Blocks.STONE_SLAB, 'B', PrimalItems.ADOBEBRICK_DRY);
|
||||||
|
|
||||||
/***CASTING FORM***/
|
/***CASTING FORM***/
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.castingform, 1),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModBlocks.castingform, 1),
|
||||||
true, new Object[]{" S ", "S S", " S ",
|
true, new Object[]{" S ", "S S", " S ",
|
||||||
('S'), "logSplit"
|
('S'), "logSplit"
|
||||||
}));
|
});
|
||||||
/***CASTING MUD***/
|
/***CASTING MUD***/
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.castingmud, 4),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModItems.castingmud, 4),
|
||||||
true, new Object[]{" C ", "CSC", " C ",
|
true, new Object[]{" C ", "CSC", " C ",
|
||||||
('S'), Blocks.SAND,
|
('S'), Blocks.SAND,
|
||||||
('C'), PrimalItems.MUD_CLUMP
|
('C'), PrimalItems.MUD_CLUMP
|
||||||
}));
|
});
|
||||||
/***YEW STAVE***/
|
/***YEW STAVE***/
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.yewstave, 2),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModBlocks.yewstave, 2),
|
||||||
true, new Object[]{"C", "C",
|
true, new Object[]{"C", "C",
|
||||||
('C'), PrimalItems.LOGS_SPLIT_YEW
|
('C'), PrimalItems.LOGS_SPLIT_YEW
|
||||||
}));
|
});
|
||||||
/***Unstrung Longbow***/
|
/***Unstrung Longbow***/
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.unstrunglongbow, 1),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModItems.unstrunglongbow, 1),
|
||||||
true, new Object[]{"C", "A",
|
true, new Object[]{"C", "A",
|
||||||
('C'), "fatAnimal",
|
('C'), "fatAnimal",
|
||||||
('A'), ModItems.rawlongbow
|
('A'), ModItems.rawlongbow
|
||||||
}));
|
});
|
||||||
/***Longbow***/
|
/***Longbow***/
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.longbow, 1),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModItems.longbow, 1),
|
||||||
true, new Object[]{"C ","CA","C ",
|
true, new Object[]{"C ","CA","C ",
|
||||||
('C'), PrimalItems.SILK_CORDAGE,
|
('C'), PrimalItems.SILK_CORDAGE,
|
||||||
('A'), ModItems.unstrunglongbow
|
('A'), ModItems.unstrunglongbow
|
||||||
}));
|
});
|
||||||
|
|
||||||
|
|
||||||
/***Forge***/
|
/***Forge***/
|
||||||
GameRegistry.addShapedRecipe(new ItemStack(ModBlocks.forge_brick),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModBlocks.forge_brick),
|
||||||
"X X", "XYX", "X X", 'X', Items.BRICK, 'Y', Blocks.FURNACE);
|
"X X", "XYX", "X X", 'X', Items.BRICK, 'Y', Blocks.FURNACE);
|
||||||
GameRegistry.addShapedRecipe(new ItemStack(ModBlocks.forge_adobe),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModBlocks.forge_adobe),
|
||||||
"X X", "XYX", "X X", 'X', PrimalItems.ADOBEBRICK_DRY, 'Y', Blocks.FURNACE);
|
"X X", "XYX", "X X", 'X', PrimalItems.ADOBEBRICK_DRY, 'Y', Blocks.FURNACE);
|
||||||
/***Bloomery***/
|
/***Bloomery***/
|
||||||
GameRegistry.addShapedRecipe(new ItemStack(ModBlocks.bloomery_brick),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModBlocks.bloomery_brick),
|
||||||
"X X", "X X", "XXX", 'X', Items.BRICK);
|
"X X", "X X", "XXX", 'X', Items.BRICK);
|
||||||
|
|
||||||
GameRegistry.addShapedRecipe(new ItemStack(ModBlocks.bloomery_adobe),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModBlocks.bloomery_adobe),
|
||||||
"X X", "X X", "XXX", 'X', PrimalItems.ADOBEBRICK_DRY);
|
"X X", "X X", "XXX", 'X', PrimalItems.ADOBEBRICK_DRY);
|
||||||
/***Block Breaker***/
|
/***Block Breaker***/
|
||||||
GameRegistry.addShapedRecipe(new ItemStack(ModBlocks.blockbreaker),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModBlocks.blockbreaker),
|
||||||
"L ", "BSB", "BBB", 'L', Blocks.LEVER, 'B', new ItemStack(Blocks.PLANKS, 1, OreDictionary.WILDCARD_VALUE), 'S', PrimalItems.SILK_CORDAGE_COILED);
|
"L ", "BSB", "BBB", 'L', Blocks.LEVER, 'B', new ItemStack(Blocks.PLANKS, 1, OreDictionary.WILDCARD_VALUE), 'S', PrimalItems.SILK_CORDAGE_COILED);
|
||||||
|
|
||||||
/*** Soft Crucible ***/
|
/*** Soft Crucible ***/
|
||||||
GameRegistry.addShapedRecipe(new ItemStack(ModItems.softcrucible),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModItems.softcrucible),
|
||||||
"X X", "X X", "XXX", 'X', Items.CLAY_BALL);
|
"X X", "X X", "XXX", 'X', Items.CLAY_BALL);
|
||||||
|
|
||||||
/*** Soft Crucible ***/
|
/*** Soft Crucible ***/
|
||||||
GameRegistry.addShapedRecipe(new ItemStack(ModItems.softcrucible),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModItems.softcrucible),
|
||||||
"X X", "X X", "XXX", 'X', PrimalItems.MUD_CLUMP);
|
"X X", "X X", "XXX", 'X', PrimalItems.MUD_CLUMP);
|
||||||
|
|
||||||
/***Wooden PistonBellows***/
|
/***Wooden PistonBellows***/
|
||||||
GameRegistry.addShapedRecipe(new ItemStack(ModBlocks.pistonbellowsoak), "XXX", "X Y", "XXX",
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModBlocks.pistonbellowsoak), "XXX", "X Y", "XXX",
|
||||||
'X', new ItemStack(Blocks.PLANKS, 1, 0), 'Y', ModItems.bellowshandle);
|
'X', new ItemStack(Blocks.PLANKS, 1, 0), 'Y', ModItems.bellowshandle);
|
||||||
GameRegistry.addShapedRecipe(new ItemStack(ModBlocks.pistonbellowsspruce), "XXX", "X Y", "XXX",
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModBlocks.pistonbellowsspruce), "XXX", "X Y", "XXX",
|
||||||
'X', new ItemStack(Blocks.PLANKS, 1, 1), 'Y', ModItems.bellowshandle);
|
'X', new ItemStack(Blocks.PLANKS, 1, 1), 'Y', ModItems.bellowshandle);
|
||||||
GameRegistry.addShapedRecipe(new ItemStack(ModBlocks.pistonbellowsbirch), "XXX", "X Y", "XXX",
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModBlocks.pistonbellowsbirch), "XXX", "X Y", "XXX",
|
||||||
'X', new ItemStack(Blocks.PLANKS, 1, 2), 'Y', ModItems.bellowshandle);
|
'X', new ItemStack(Blocks.PLANKS, 1, 2), 'Y', ModItems.bellowshandle);
|
||||||
GameRegistry.addShapedRecipe(new ItemStack(ModBlocks.pistonbellowsjungle), "XXX", "X Y", "XXX",
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModBlocks.pistonbellowsjungle), "XXX", "X Y", "XXX",
|
||||||
'X', new ItemStack(Blocks.PLANKS, 1, 3), 'Y', ModItems.bellowshandle);
|
'X', new ItemStack(Blocks.PLANKS, 1, 3), 'Y', ModItems.bellowshandle);
|
||||||
GameRegistry.addShapedRecipe(new ItemStack(ModBlocks.pistonbellowsacacia), "XXX", "X Y", "XXX",
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModBlocks.pistonbellowsacacia), "XXX", "X Y", "XXX",
|
||||||
'X', new ItemStack(Blocks.PLANKS, 1, 4), 'Y', ModItems.bellowshandle);
|
'X', new ItemStack(Blocks.PLANKS, 1, 4), 'Y', ModItems.bellowshandle);
|
||||||
GameRegistry.addShapedRecipe(new ItemStack(ModBlocks.pistonbellowsdarkoak), "XXX", "X Y", "XXX",
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModBlocks.pistonbellowsdarkoak), "XXX", "X Y", "XXX",
|
||||||
'X', new ItemStack(Blocks.PLANKS, 1, 5), 'Y', ModItems.bellowshandle);
|
'X', new ItemStack(Blocks.PLANKS, 1, 5), 'Y', ModItems.bellowshandle);
|
||||||
|
|
||||||
/***Bellows Handle***/
|
/***Bellows Handle***/
|
||||||
GameRegistry.addShapedRecipe(new ItemStack(ModItems.bellowshandle),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModItems.bellowshandle),
|
||||||
"X X", "X X", " X ", 'X', Items.STICK);
|
"X X", "X X", " X ", 'X', Items.STICK);
|
||||||
|
|
||||||
/***Tongs***/
|
/***Tongs***/
|
||||||
GameRegistry.addShapedRecipe(new ItemStack(ModItems.stonetongs, 1),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModItems.stonetongs, 1),
|
||||||
"X X", "YSY", 'X', Blocks.STONE, 'S', Items.STRING, 'Y', Items.STICK);
|
"X X", "YSY", 'X', Blocks.STONE, 'S', Items.STRING, 'Y', Items.STICK);
|
||||||
|
|
||||||
/***RAW CRUCIBLES***/
|
/***RAW CRUCIBLES***/
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.rawironcrucible),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModBlocks.rawironcrucible),
|
||||||
"X","Y",
|
"X","Y",
|
||||||
('X'), "oreIron",
|
('X'), "oreIron",
|
||||||
('Y'), ModBlocks.emptycrucible));
|
('Y'), ModBlocks.emptycrucible);
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.rawcleanironcrucible),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModBlocks.rawcleanironcrucible),
|
||||||
"XL","Y ",
|
"XL","Y ",
|
||||||
('X'), "dustIron",
|
('X'), "dustIron",
|
||||||
('L'), PrimalItems.CARBONATE_SLACK,
|
('L'), PrimalItems.CARBONATE_SLACK,
|
||||||
('Y'), ModBlocks.emptycrucible));
|
('Y'), ModBlocks.emptycrucible);
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.rawsteelcrucible),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModBlocks.rawsteelcrucible),
|
||||||
"XC","Y ",
|
"XC","Y ",
|
||||||
('X'), new ItemStack(ModBlocks.ironcleanball, 1),
|
('X'), new ItemStack(ModBlocks.ironcleanball, 1),
|
||||||
('C'), new ItemStack(PrimalItems.CHARCOAL_HIGH),
|
('C'), new ItemStack(PrimalItems.CHARCOAL_HIGH),
|
||||||
('Y'), ModBlocks.emptycrucible));
|
('Y'), ModBlocks.emptycrucible);
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.rawbronzecrucible),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModBlocks.rawbronzecrucible),
|
||||||
"XCX"," X "," Y ",
|
"XCX"," X "," Y ",
|
||||||
('X'), "dustCopper",
|
('X'), "dustCopper",
|
||||||
('C'), "dustTin",
|
('C'), "dustTin",
|
||||||
('Y'), ModBlocks.emptycrucible));
|
('Y'), ModBlocks.emptycrucible);
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.rawbronzecrucible),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModBlocks.rawbronzecrucible),
|
||||||
"XXX"," X "," Y ",
|
"XXX"," X "," Y ",
|
||||||
('X'), "nuggetBronze",
|
('X'), "nuggetBronze",
|
||||||
('Y'), ModBlocks.emptycrucible));
|
('Y'), ModBlocks.emptycrucible);
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.rawbronzecrucible),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModBlocks.rawbronzecrucible),
|
||||||
"X","Y",
|
"X","Y",
|
||||||
('X'), new ItemStack(ModItems.bronzepickaxehead, 1, OreDictionary.WILDCARD_VALUE),
|
('X'), new ItemStack(ModItems.bronzepickaxehead, 1, OreDictionary.WILDCARD_VALUE),
|
||||||
('Y'), ModBlocks.emptycrucible));
|
('Y'), ModBlocks.emptycrucible);
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.rawbronzecrucible),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModBlocks.rawbronzecrucible),
|
||||||
"X","Y",
|
"X","Y",
|
||||||
('X'), new ItemStack(ModItems.bronzeaxehead, 1, OreDictionary.WILDCARD_VALUE),
|
('X'), new ItemStack(ModItems.bronzeaxehead, 1, OreDictionary.WILDCARD_VALUE),
|
||||||
('Y'), ModBlocks.emptycrucible));
|
('Y'), ModBlocks.emptycrucible);
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.rawbronzecrucible),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModBlocks.rawbronzecrucible),
|
||||||
"X","Y",
|
"X","Y",
|
||||||
('X'), new ItemStack(ModItems.bronzeshovelhead, 1, OreDictionary.WILDCARD_VALUE),
|
('X'), new ItemStack(ModItems.bronzeshovelhead, 1, OreDictionary.WILDCARD_VALUE),
|
||||||
('Y'), ModBlocks.emptycrucible));
|
('Y'), ModBlocks.emptycrucible);
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.rawbronzecrucible),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModBlocks.rawbronzecrucible),
|
||||||
"X","Y",
|
"X","Y",
|
||||||
('X'), new ItemStack(ModItems.bronzehoehead, 1, OreDictionary.WILDCARD_VALUE),
|
('X'), new ItemStack(ModItems.bronzehoehead, 1, OreDictionary.WILDCARD_VALUE),
|
||||||
('Y'), ModBlocks.emptycrucible));
|
('Y'), ModBlocks.emptycrucible);
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.rawbronzecrucible),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModBlocks.rawbronzecrucible),
|
||||||
"X","Y",
|
"X","Y",
|
||||||
('X'), new ItemStack(ModItems.bronzegladius, 1, OreDictionary.WILDCARD_VALUE),
|
('X'), new ItemStack(ModItems.bronzegladius, 1, OreDictionary.WILDCARD_VALUE),
|
||||||
('Y'), ModBlocks.emptycrucible));
|
('Y'), ModBlocks.emptycrucible);
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.rawbronzecrucible_redstone),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModBlocks.rawbronzecrucible_redstone),
|
||||||
"R","Y",
|
"R","Y",
|
||||||
('R'), Items.REDSTONE,
|
('R'), Items.REDSTONE,
|
||||||
('Y'), ModBlocks.rawbronzecrucible));
|
('Y'), ModBlocks.rawbronzecrucible);
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.rawbronzecrucible_diamond),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModBlocks.rawbronzecrucible_diamond),
|
||||||
"D","Y",
|
"D","Y",
|
||||||
('D'), PrimalItems.DIAMOND_KNAPP,
|
('D'), PrimalItems.DIAMOND_KNAPP,
|
||||||
('Y'), ModBlocks.rawbronzecrucible));
|
('Y'), ModBlocks.rawbronzecrucible);
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.rawbronzecrucible_lapis),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModBlocks.rawbronzecrucible_lapis),
|
||||||
"L","Y",
|
"L","Y",
|
||||||
('L'), new ItemStack(Items.DYE, 1, 4),
|
('L'), new ItemStack(Items.DYE, 1, 4),
|
||||||
('Y'), ModBlocks.rawbronzecrucible));
|
('Y'), ModBlocks.rawbronzecrucible);
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.rawbronzecrucible_emerald),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModBlocks.rawbronzecrucible_emerald),
|
||||||
"E","Y",
|
"E","Y",
|
||||||
('E'), PrimalItems.EMERALD_KNAPP,
|
('E'), PrimalItems.EMERALD_KNAPP,
|
||||||
('Y'), ModBlocks.rawbronzecrucible));
|
('Y'), ModBlocks.rawbronzecrucible);
|
||||||
|
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.rawbronzecrucible, 1),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModBlocks.rawbronzecrucible, 1),
|
||||||
"T", "Y",
|
"T", "Y",
|
||||||
('T'), new ItemStack(ModItems.brokenbronzetool, 1),
|
('T'), new ItemStack(ModItems.brokenbronzetool, 1),
|
||||||
('Y'), new ItemStack(ModBlocks.emptycrucible, 1)
|
('Y'), new ItemStack(ModBlocks.emptycrucible, 1)
|
||||||
));
|
);
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.rawironcrucible, 1),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModBlocks.rawironcrucible, 1),
|
||||||
"T", "Y",
|
"T", "Y",
|
||||||
('T'), new ItemStack(ModItems.brokenwroughtirontool, 1),
|
('T'), new ItemStack(ModItems.brokenwroughtirontool, 1),
|
||||||
('Y'), new ItemStack(ModBlocks.emptycrucible, 1)
|
('Y'), new ItemStack(ModBlocks.emptycrucible, 1)
|
||||||
));
|
);
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.rawcleanironcrucible, 1),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModBlocks.rawcleanironcrucible, 1),
|
||||||
"T", "Y",
|
"T", "Y",
|
||||||
('T'), new ItemStack(ModItems.brokencleanirontool, 1),
|
('T'), new ItemStack(ModItems.brokencleanirontool, 1),
|
||||||
('Y'), new ItemStack(ModBlocks.emptycrucible, 1)
|
('Y'), new ItemStack(ModBlocks.emptycrucible, 1)
|
||||||
));
|
);
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.rawsteelcrucible, 1),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModBlocks.rawsteelcrucible, 1),
|
||||||
"T", "Y",
|
"T", "Y",
|
||||||
('T'), new ItemStack(ModItems.brokensteeltool, 1),
|
('T'), new ItemStack(ModItems.brokensteeltool, 1),
|
||||||
('Y'), new ItemStack(ModBlocks.emptycrucible, 1)
|
('Y'), new ItemStack(ModBlocks.emptycrucible, 1)
|
||||||
));
|
);
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.rawwootzcrucible, 1),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModBlocks.rawwootzcrucible, 1),
|
||||||
"T", "Y",
|
"T", "Y",
|
||||||
('T'), new ItemStack(ModItems.brokenwootztool, 1),
|
('T'), new ItemStack(ModItems.brokenwootztool, 1),
|
||||||
('Y'), new ItemStack(ModBlocks.emptycrucible, 1)
|
('Y'), new ItemStack(ModBlocks.emptycrucible, 1)
|
||||||
));
|
);
|
||||||
|
|
||||||
|
|
||||||
/***************************************************************
|
/***************************************************************
|
||||||
@@ -202,163 +205,163 @@ public class ModCrafting {
|
|||||||
***************************************************************/
|
***************************************************************/
|
||||||
|
|
||||||
/***Pickaxe Crafting***/
|
/***Pickaxe Crafting***/
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.bronzepickaxe, 1, OreDictionary.WILDCARD_VALUE), "T", "C", "S",
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModItems.bronzepickaxe, 1, OreDictionary.WILDCARD_VALUE), "T", "C", "S",
|
||||||
('T'), new ItemStack(ModItems.bronzepickaxehead, 1, OreDictionary.WILDCARD_VALUE), //new ItemStack( 1, OreDictionary.WILDCARD_VALUE),
|
('T'), new ItemStack(ModItems.bronzepickaxehead, 1, OreDictionary.WILDCARD_VALUE), //new ItemStack( 1, OreDictionary.WILDCARD_VALUE),
|
||||||
('S'), PrimalItems.LACQUER_STICK,
|
('S'), PrimalItems.LACQUER_STICK,
|
||||||
('C'), "cordageGeneral"));
|
('C'), "cordageGeneral");
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.ironpickaxe, 1, OreDictionary.WILDCARD_VALUE), "T", "C", "S",
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModItems.ironpickaxe, 1, OreDictionary.WILDCARD_VALUE), "T", "C", "S",
|
||||||
('T'), new ItemStack(ModItems.pickaxehead, 1, OreDictionary.WILDCARD_VALUE), //new ItemStack( 1, OreDictionary.WILDCARD_VALUE),
|
('T'), new ItemStack(ModItems.pickaxehead, 1, OreDictionary.WILDCARD_VALUE), //new ItemStack( 1, OreDictionary.WILDCARD_VALUE),
|
||||||
('S'), PrimalItems.LACQUER_STICK,
|
('S'), PrimalItems.LACQUER_STICK,
|
||||||
('C'), "cordageGeneral"));
|
('C'), "cordageGeneral");
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.cleanironpickaxe, 1, OreDictionary.WILDCARD_VALUE), "T", "C", "S",
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModItems.cleanironpickaxe, 1, OreDictionary.WILDCARD_VALUE), "T", "C", "S",
|
||||||
('T'), new ItemStack(ModItems.cleanironpickaxehead, 1, OreDictionary.WILDCARD_VALUE),
|
('T'), new ItemStack(ModItems.cleanironpickaxehead, 1, OreDictionary.WILDCARD_VALUE),
|
||||||
('S'), PrimalItems.LACQUER_STICK,
|
('S'), PrimalItems.LACQUER_STICK,
|
||||||
('C'), "cordageGeneral"));
|
('C'), "cordageGeneral");
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.steelpickaxe, 1, OreDictionary.WILDCARD_VALUE), "T", "C", "S",
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModItems.steelpickaxe, 1, OreDictionary.WILDCARD_VALUE), "T", "C", "S",
|
||||||
('T'), new ItemStack(ModItems.steelpickaxehead, 1, OreDictionary.WILDCARD_VALUE),
|
('T'), new ItemStack(ModItems.steelpickaxehead, 1, OreDictionary.WILDCARD_VALUE),
|
||||||
('S'), PrimalItems.LACQUER_STICK,
|
('S'), PrimalItems.LACQUER_STICK,
|
||||||
('C'), "cordageGeneral"));
|
('C'), "cordageGeneral");
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Items.IRON_PICKAXE), "T", "S",
|
RecipeHandler.addShapedOreRecipe(new ItemStack(Items.IRON_PICKAXE), "T", "S",
|
||||||
('T'), ModItems.pickaxehead,
|
('T'), ModItems.pickaxehead,
|
||||||
('S'), Items.STICK));
|
('S'), Items.STICK);
|
||||||
//TODO wootz placeholder
|
//TODO wootz placeholder
|
||||||
|
|
||||||
/***Axe Crafting***/
|
/***Axe Crafting***/
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.bronzeaxe, 1, OreDictionary.WILDCARD_VALUE), "T", "C", "S",
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModItems.bronzeaxe, 1, OreDictionary.WILDCARD_VALUE), "T", "C", "S",
|
||||||
('T'), new ItemStack(ModItems.bronzeaxehead, 1, OreDictionary.WILDCARD_VALUE),
|
('T'), new ItemStack(ModItems.bronzeaxehead, 1, OreDictionary.WILDCARD_VALUE),
|
||||||
('S'), PrimalItems.LACQUER_STICK,
|
('S'), PrimalItems.LACQUER_STICK,
|
||||||
('C'), "cordageGeneral"));
|
('C'), "cordageGeneral");
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.ironaxe, 1, OreDictionary.WILDCARD_VALUE), "T", "C", "S",
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModItems.ironaxe, 1, OreDictionary.WILDCARD_VALUE), "T", "C", "S",
|
||||||
('T'), new ItemStack(ModItems.ironaxehead, 1, OreDictionary.WILDCARD_VALUE),
|
('T'), new ItemStack(ModItems.ironaxehead, 1, OreDictionary.WILDCARD_VALUE),
|
||||||
('S'), PrimalItems.LACQUER_STICK,
|
('S'), PrimalItems.LACQUER_STICK,
|
||||||
('C'), "cordageGeneral"));
|
('C'), "cordageGeneral");
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.cleanironaxe, 1, OreDictionary.WILDCARD_VALUE), "T", "C", "S",
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModItems.cleanironaxe, 1, OreDictionary.WILDCARD_VALUE), "T", "C", "S",
|
||||||
('T'), new ItemStack(ModItems.cleanironaxehead, 1, OreDictionary.WILDCARD_VALUE),
|
('T'), new ItemStack(ModItems.cleanironaxehead, 1, OreDictionary.WILDCARD_VALUE),
|
||||||
('S'), PrimalItems.LACQUER_STICK,
|
('S'), PrimalItems.LACQUER_STICK,
|
||||||
('C'), "cordageGeneral"));
|
('C'), "cordageGeneral");
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.steelaxe, 1, OreDictionary.WILDCARD_VALUE), "T", "C", "S",
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModItems.steelaxe, 1, OreDictionary.WILDCARD_VALUE), "T", "C", "S",
|
||||||
('T'), new ItemStack(ModItems.steelaxehead,1, OreDictionary.WILDCARD_VALUE),
|
('T'), new ItemStack(ModItems.steelaxehead,1, OreDictionary.WILDCARD_VALUE),
|
||||||
('S'), PrimalItems.LACQUER_STICK,
|
('S'), PrimalItems.LACQUER_STICK,
|
||||||
('C'), "cordageGeneral"));
|
('C'), "cordageGeneral");
|
||||||
//TODO wootz placeholder
|
//TODO wootz placeholder
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Items.IRON_AXE), "T", "S",
|
RecipeHandler.addShapedOreRecipe(new ItemStack(Items.IRON_AXE), "T", "S",
|
||||||
('T'), ModItems.ironaxehead,
|
('T'), ModItems.ironaxehead,
|
||||||
('S'), Items.STICK));
|
('S'), Items.STICK);
|
||||||
|
|
||||||
/***Shovel Crafting***/
|
/***Shovel Crafting***/
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.bronzeshovel, 1, OreDictionary.WILDCARD_VALUE), "T", "C", "S",
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModItems.bronzeshovel, 1, OreDictionary.WILDCARD_VALUE), "T", "C", "S",
|
||||||
('T'), new ItemStack(ModItems.bronzeshovelhead, 1, OreDictionary.WILDCARD_VALUE),
|
('T'), new ItemStack(ModItems.bronzeshovelhead, 1, OreDictionary.WILDCARD_VALUE),
|
||||||
('S'), PrimalItems.LACQUER_STICK,
|
('S'), PrimalItems.LACQUER_STICK,
|
||||||
('C'), "cordageGeneral"));
|
('C'), "cordageGeneral");
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.ironshovel, 1, OreDictionary.WILDCARD_VALUE), "T", "C", "S",
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModItems.ironshovel, 1, OreDictionary.WILDCARD_VALUE), "T", "C", "S",
|
||||||
('T'), new ItemStack(ModItems.ironshovelhead, 1, OreDictionary.WILDCARD_VALUE),
|
('T'), new ItemStack(ModItems.ironshovelhead, 1, OreDictionary.WILDCARD_VALUE),
|
||||||
('S'), PrimalItems.LACQUER_STICK,
|
('S'), PrimalItems.LACQUER_STICK,
|
||||||
('C'), "cordageGeneral"));
|
('C'), "cordageGeneral");
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.cleanironshovel, 1, OreDictionary.WILDCARD_VALUE), "T", "C", "S",
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModItems.cleanironshovel, 1, OreDictionary.WILDCARD_VALUE), "T", "C", "S",
|
||||||
('T'), new ItemStack(ModItems.cleanironshovelhead, 1, OreDictionary.WILDCARD_VALUE),
|
('T'), new ItemStack(ModItems.cleanironshovelhead, 1, OreDictionary.WILDCARD_VALUE),
|
||||||
('S'), PrimalItems.LACQUER_STICK,
|
('S'), PrimalItems.LACQUER_STICK,
|
||||||
('C'), "cordageGeneral"));
|
('C'), "cordageGeneral");
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.steelshovel, 1, OreDictionary.WILDCARD_VALUE), "T", "C", "S",
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModItems.steelshovel, 1, OreDictionary.WILDCARD_VALUE), "T", "C", "S",
|
||||||
('T'), new ItemStack(ModItems.steelshovelhead, 1, OreDictionary.WILDCARD_VALUE),
|
('T'), new ItemStack(ModItems.steelshovelhead, 1, OreDictionary.WILDCARD_VALUE),
|
||||||
('S'), PrimalItems.LACQUER_STICK,
|
('S'), PrimalItems.LACQUER_STICK,
|
||||||
('C'), "cordageGeneral"));
|
('C'), "cordageGeneral");
|
||||||
//TODO placed holder for wootz
|
//TODO placed holder for wootz
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Items.IRON_SHOVEL), "T", "S",
|
RecipeHandler.addShapedOreRecipe(new ItemStack(Items.IRON_SHOVEL), "T", "S",
|
||||||
('T'), ModItems.ironshovelhead,
|
('T'), ModItems.ironshovelhead,
|
||||||
('S'), Items.STICK));
|
('S'), Items.STICK);
|
||||||
|
|
||||||
/***Hoe Crafting***/
|
/***Hoe Crafting***/
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.bronzehoe, 1, OreDictionary.WILDCARD_VALUE), "T", "C", "S",
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModItems.bronzehoe, 1, OreDictionary.WILDCARD_VALUE), "T", "C", "S",
|
||||||
('T'), new ItemStack(ModItems.bronzehoehead, 1, OreDictionary.WILDCARD_VALUE),
|
('T'), new ItemStack(ModItems.bronzehoehead, 1, OreDictionary.WILDCARD_VALUE),
|
||||||
('S'), PrimalItems.LACQUER_STICK,
|
('S'), PrimalItems.LACQUER_STICK,
|
||||||
('C'), "cordageGeneral"));
|
('C'), "cordageGeneral");
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.ironhoe, 1, OreDictionary.WILDCARD_VALUE), "T", "C", "S",
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModItems.ironhoe, 1, OreDictionary.WILDCARD_VALUE), "T", "C", "S",
|
||||||
('T'), new ItemStack(ModItems.ironhoehead, 1, OreDictionary.WILDCARD_VALUE),
|
('T'), new ItemStack(ModItems.ironhoehead, 1, OreDictionary.WILDCARD_VALUE),
|
||||||
('S'), PrimalItems.LACQUER_STICK,
|
('S'), PrimalItems.LACQUER_STICK,
|
||||||
('C'), "cordageGeneral"));
|
('C'), "cordageGeneral");
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.cleanironhoe, 1, OreDictionary.WILDCARD_VALUE), "T", "C", "S",
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModItems.cleanironhoe, 1, OreDictionary.WILDCARD_VALUE), "T", "C", "S",
|
||||||
('T'), new ItemStack(ModItems.cleanironhoehead, 1, OreDictionary.WILDCARD_VALUE),
|
('T'), new ItemStack(ModItems.cleanironhoehead, 1, OreDictionary.WILDCARD_VALUE),
|
||||||
('S'), PrimalItems.LACQUER_STICK,
|
('S'), PrimalItems.LACQUER_STICK,
|
||||||
('C'), "cordageGeneral"));
|
('C'), "cordageGeneral");
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.steelhoe, 1, OreDictionary.WILDCARD_VALUE), "T", "C", "S",
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModItems.steelhoe, 1, OreDictionary.WILDCARD_VALUE), "T", "C", "S",
|
||||||
('T'), new ItemStack(ModItems.steelhoehead, 1, OreDictionary.WILDCARD_VALUE),
|
('T'), new ItemStack(ModItems.steelhoehead, 1, OreDictionary.WILDCARD_VALUE),
|
||||||
('S'), PrimalItems.LACQUER_STICK,
|
('S'), PrimalItems.LACQUER_STICK,
|
||||||
('C'), "cordageGeneral"));
|
('C'), "cordageGeneral");
|
||||||
//TODO PLACE HOLDER FOR WOOTZ STEEL
|
//TODO PLACE HOLDER FOR WOOTZ STEEL
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Items.IRON_HOE), "T", "S",
|
RecipeHandler.addShapedOreRecipe(new ItemStack(Items.IRON_HOE), "T", "S",
|
||||||
('T'), ModItems.ironhoehead,
|
('T'), ModItems.ironhoehead,
|
||||||
('S'), Items.STICK));
|
('S'), Items.STICK);
|
||||||
|
|
||||||
|
|
||||||
/***************************************************************
|
/***************************************************************
|
||||||
* TOOL DISASSEMBLY RECIPES
|
* TOOL DISASSEMBLY RECIPES
|
||||||
***************************************************************/
|
***************************************************************/
|
||||||
//GameRegistry.addShapedRecipe(new ItemStack(ModItems.ironaxehead, 1, OreDictionary.WILDCARD_VALUE),
|
//RecipeHandler.addShapedOreRecipe(new ItemStack(ModItems.ironaxehead, 1, OreDictionary.WILDCARD_VALUE),
|
||||||
// " ", " X ", " ", 'X', ModItems.ironaxe);
|
// " ", " X ", " ", 'X', ModItems.ironaxe);
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.bronzeaxehead, 1, OreDictionary.WILDCARD_VALUE),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModItems.bronzeaxehead, 1, OreDictionary.WILDCARD_VALUE),
|
||||||
true, "X", ('X'), new ItemStack(ModItems.bronzeaxe, 1, OreDictionary.WILDCARD_VALUE)));
|
true, "X", ('X'), new ItemStack(ModItems.bronzeaxe, 1, OreDictionary.WILDCARD_VALUE));
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.bronzepickaxehead, 1, OreDictionary.WILDCARD_VALUE),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModItems.bronzepickaxehead, 1, OreDictionary.WILDCARD_VALUE),
|
||||||
true, "X", ('X'), new ItemStack(ModItems.bronzepickaxe, 1, OreDictionary.WILDCARD_VALUE)));
|
true, "X", ('X'), new ItemStack(ModItems.bronzepickaxe, 1, OreDictionary.WILDCARD_VALUE));
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.bronzeshovelhead, 1, OreDictionary.WILDCARD_VALUE),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModItems.bronzeshovelhead, 1, OreDictionary.WILDCARD_VALUE),
|
||||||
true, "X", ('X'), new ItemStack(ModItems.bronzeshovel, 1, OreDictionary.WILDCARD_VALUE)));
|
true, "X", ('X'), new ItemStack(ModItems.bronzeshovel, 1, OreDictionary.WILDCARD_VALUE));
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.bronzehoehead, 1, OreDictionary.WILDCARD_VALUE),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModItems.bronzehoehead, 1, OreDictionary.WILDCARD_VALUE),
|
||||||
true, "X", ('X'), new ItemStack(ModItems.bronzehoe, 1, OreDictionary.WILDCARD_VALUE)));
|
true, "X", ('X'), new ItemStack(ModItems.bronzehoe, 1, OreDictionary.WILDCARD_VALUE));
|
||||||
|
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.ironaxehead, 1, OreDictionary.WILDCARD_VALUE),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModItems.ironaxehead, 1, OreDictionary.WILDCARD_VALUE),
|
||||||
true, "X", ('X'), new ItemStack(ModItems.ironaxe, 1, OreDictionary.WILDCARD_VALUE)));
|
true, "X", ('X'), new ItemStack(ModItems.ironaxe, 1, OreDictionary.WILDCARD_VALUE));
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.pickaxehead, 1, OreDictionary.WILDCARD_VALUE),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModItems.pickaxehead, 1, OreDictionary.WILDCARD_VALUE),
|
||||||
true, "X", ('X'), new ItemStack(ModItems.ironpickaxe, 1, OreDictionary.WILDCARD_VALUE)));
|
true, "X", ('X'), new ItemStack(ModItems.ironpickaxe, 1, OreDictionary.WILDCARD_VALUE));
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.ironshovelhead, 1, OreDictionary.WILDCARD_VALUE),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModItems.ironshovelhead, 1, OreDictionary.WILDCARD_VALUE),
|
||||||
true, "X", ('X'), new ItemStack(ModItems.ironshovel, 1, OreDictionary.WILDCARD_VALUE)));
|
true, "X", ('X'), new ItemStack(ModItems.ironshovel, 1, OreDictionary.WILDCARD_VALUE));
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.ironhoehead, 1, OreDictionary.WILDCARD_VALUE),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModItems.ironhoehead, 1, OreDictionary.WILDCARD_VALUE),
|
||||||
true, "X", ('X'), new ItemStack(ModItems.ironhoe, 1, OreDictionary.WILDCARD_VALUE)));
|
true, "X", ('X'), new ItemStack(ModItems.ironhoe, 1, OreDictionary.WILDCARD_VALUE));
|
||||||
|
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.cleanironaxehead, 1, OreDictionary.WILDCARD_VALUE),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModItems.cleanironaxehead, 1, OreDictionary.WILDCARD_VALUE),
|
||||||
true, "X", ('X'), new ItemStack(ModItems.cleanironaxe, 1, OreDictionary.WILDCARD_VALUE)));
|
true, "X", ('X'), new ItemStack(ModItems.cleanironaxe, 1, OreDictionary.WILDCARD_VALUE));
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.cleanironpickaxehead, 1, OreDictionary.WILDCARD_VALUE),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModItems.cleanironpickaxehead, 1, OreDictionary.WILDCARD_VALUE),
|
||||||
true, "X", ('X'), new ItemStack(ModItems.cleanironpickaxe, 1, OreDictionary.WILDCARD_VALUE)));
|
true, "X", ('X'), new ItemStack(ModItems.cleanironpickaxe, 1, OreDictionary.WILDCARD_VALUE));
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.cleanironshovelhead, 1, OreDictionary.WILDCARD_VALUE),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModItems.cleanironshovelhead, 1, OreDictionary.WILDCARD_VALUE),
|
||||||
true, "X", ('X'), new ItemStack(ModItems.cleanironshovel, 1, OreDictionary.WILDCARD_VALUE)));
|
true, "X", ('X'), new ItemStack(ModItems.cleanironshovel, 1, OreDictionary.WILDCARD_VALUE));
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.cleanironhoehead, 1, OreDictionary.WILDCARD_VALUE),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModItems.cleanironhoehead, 1, OreDictionary.WILDCARD_VALUE),
|
||||||
true, "X", ('X'), new ItemStack(ModItems.cleanironhoe, 1, OreDictionary.WILDCARD_VALUE)));
|
true, "X", ('X'), new ItemStack(ModItems.cleanironhoe, 1, OreDictionary.WILDCARD_VALUE));
|
||||||
|
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.steelaxehead, 1, OreDictionary.WILDCARD_VALUE),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModItems.steelaxehead, 1, OreDictionary.WILDCARD_VALUE),
|
||||||
true, "X", ('X'), new ItemStack(ModItems.steelaxe, 1, OreDictionary.WILDCARD_VALUE)));
|
true, "X", ('X'), new ItemStack(ModItems.steelaxe, 1, OreDictionary.WILDCARD_VALUE));
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.steelpickaxehead, 1, OreDictionary.WILDCARD_VALUE),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModItems.steelpickaxehead, 1, OreDictionary.WILDCARD_VALUE),
|
||||||
true, "X", ('X'), new ItemStack(ModItems.steelpickaxe, 1, OreDictionary.WILDCARD_VALUE)));
|
true, "X", ('X'), new ItemStack(ModItems.steelpickaxe, 1, OreDictionary.WILDCARD_VALUE));
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.steelshovelhead, 1, OreDictionary.WILDCARD_VALUE),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModItems.steelshovelhead, 1, OreDictionary.WILDCARD_VALUE),
|
||||||
true, "X", ('X'), new ItemStack(ModItems.steelshovel, 1, OreDictionary.WILDCARD_VALUE)));
|
true, "X", ('X'), new ItemStack(ModItems.steelshovel, 1, OreDictionary.WILDCARD_VALUE));
|
||||||
|
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.steelhoehead, 1, OreDictionary.WILDCARD_VALUE),
|
RecipeHandler.addShapedOreRecipe(new ItemStack(ModItems.steelhoehead, 1, OreDictionary.WILDCARD_VALUE),
|
||||||
true, "X", ('X'), new ItemStack(ModItems.steelhoe, 1, OreDictionary.WILDCARD_VALUE)));
|
true, "X", ('X'), new ItemStack(ModItems.steelhoe, 1, OreDictionary.WILDCARD_VALUE));
|
||||||
|
|
||||||
/***************************************************************/
|
/***************************************************************/
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import net.minecraft.item.ItemBlock;
|
|||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.util.ResourceLocation;
|
import net.minecraft.util.ResourceLocation;
|
||||||
import net.minecraftforge.client.model.ModelLoader;
|
import net.minecraftforge.client.model.ModelLoader;
|
||||||
|
import net.minecraftforge.fml.common.registry.ForgeRegistries;
|
||||||
import net.minecraftforge.fml.common.registry.GameRegistry;
|
import net.minecraftforge.fml.common.registry.GameRegistry;
|
||||||
import net.minecraftforge.fml.relauncher.Side;
|
import net.minecraftforge.fml.relauncher.Side;
|
||||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||||
@@ -265,120 +266,120 @@ public class ModItems {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void register() {
|
public static void register() {
|
||||||
GameRegistry.register(castingmud);
|
ForgeRegistries.ITEMS.register(castingmud);
|
||||||
GameRegistry.register(bellowshandle);
|
ForgeRegistries.ITEMS.register(bellowshandle);
|
||||||
GameRegistry.register(softcrucible);
|
ForgeRegistries.ITEMS.register(softcrucible);
|
||||||
GameRegistry.register(stonetongs);
|
ForgeRegistries.ITEMS.register(stonetongs);
|
||||||
GameRegistry.register(forgehammer);
|
ForgeRegistries.ITEMS.register(forgehammer);
|
||||||
GameRegistry.register(ironingotballhot);
|
ForgeRegistries.ITEMS.register(ironingotballhot);
|
||||||
GameRegistry.register(ironchunkhot);
|
ForgeRegistries.ITEMS.register(ironchunkhot);
|
||||||
GameRegistry.register(ironcleaningotballhot);
|
ForgeRegistries.ITEMS.register(ironcleaningotballhot);
|
||||||
GameRegistry.register(ironcleanchunkhot);
|
ForgeRegistries.ITEMS.register(ironcleanchunkhot);
|
||||||
GameRegistry.register(steelingotballhot);
|
ForgeRegistries.ITEMS.register(steelingotballhot);
|
||||||
GameRegistry.register(steelchunkhot);
|
ForgeRegistries.ITEMS.register(steelchunkhot);
|
||||||
GameRegistry.register(wootzingotballhot);
|
ForgeRegistries.ITEMS.register(wootzingotballhot);
|
||||||
GameRegistry.register(wootzchunkhot);
|
ForgeRegistries.ITEMS.register(wootzchunkhot);
|
||||||
//GameRegistry.register(test);
|
//ForgeRegistries.ITEMS.register(test);
|
||||||
|
|
||||||
/**********
|
/**********
|
||||||
CASTING PARTS
|
CASTING PARTS
|
||||||
**********/
|
**********/
|
||||||
GameRegistry.register(cast_axe);
|
ForgeRegistries.ITEMS.register(cast_axe);
|
||||||
GameRegistry.register(cast_gladius);
|
ForgeRegistries.ITEMS.register(cast_gladius);
|
||||||
GameRegistry.register(cast_hoe);
|
ForgeRegistries.ITEMS.register(cast_hoe);
|
||||||
GameRegistry.register(cast_pickaxe);
|
ForgeRegistries.ITEMS.register(cast_pickaxe);
|
||||||
GameRegistry.register(cast_shovel);
|
ForgeRegistries.ITEMS.register(cast_shovel);
|
||||||
|
|
||||||
/**********
|
/**********
|
||||||
TOOL PARTS
|
TOOL PARTS
|
||||||
**********/
|
**********/
|
||||||
GameRegistry.register(bronzepickaxehead);
|
ForgeRegistries.ITEMS.register(bronzepickaxehead);
|
||||||
GameRegistry.register(bronzeaxehead);
|
ForgeRegistries.ITEMS.register(bronzeaxehead);
|
||||||
GameRegistry.register(bronzeshovelhead);
|
ForgeRegistries.ITEMS.register(bronzeshovelhead);
|
||||||
GameRegistry.register(bronzehoehead);
|
ForgeRegistries.ITEMS.register(bronzehoehead);
|
||||||
|
|
||||||
GameRegistry.register(pickaxehead);
|
ForgeRegistries.ITEMS.register(pickaxehead);
|
||||||
GameRegistry.register(ironaxehead);
|
ForgeRegistries.ITEMS.register(ironaxehead);
|
||||||
GameRegistry.register(ironshovelhead);
|
ForgeRegistries.ITEMS.register(ironshovelhead);
|
||||||
GameRegistry.register(ironhoehead);
|
ForgeRegistries.ITEMS.register(ironhoehead);
|
||||||
|
|
||||||
GameRegistry.register(cleanironpickaxehead);
|
ForgeRegistries.ITEMS.register(cleanironpickaxehead);
|
||||||
GameRegistry.register(cleanironaxehead);
|
ForgeRegistries.ITEMS.register(cleanironaxehead);
|
||||||
GameRegistry.register(cleanironshovelhead);
|
ForgeRegistries.ITEMS.register(cleanironshovelhead);
|
||||||
GameRegistry.register(cleanironhoehead);
|
ForgeRegistries.ITEMS.register(cleanironhoehead);
|
||||||
|
|
||||||
GameRegistry.register(steelpickaxehead);
|
ForgeRegistries.ITEMS.register(steelpickaxehead);
|
||||||
GameRegistry.register(steelaxehead);
|
ForgeRegistries.ITEMS.register(steelaxehead);
|
||||||
GameRegistry.register(steelshovelhead);
|
ForgeRegistries.ITEMS.register(steelshovelhead);
|
||||||
GameRegistry.register(steelhoehead);
|
ForgeRegistries.ITEMS.register(steelhoehead);
|
||||||
|
|
||||||
GameRegistry.register(wootzpickaxehead);
|
ForgeRegistries.ITEMS.register(wootzpickaxehead);
|
||||||
GameRegistry.register(wootzaxehead);
|
ForgeRegistries.ITEMS.register(wootzaxehead);
|
||||||
GameRegistry.register(wootzshovelhead);
|
ForgeRegistries.ITEMS.register(wootzshovelhead);
|
||||||
GameRegistry.register(wootzhoehead);
|
ForgeRegistries.ITEMS.register(wootzhoehead);
|
||||||
|
|
||||||
/**********
|
/**********
|
||||||
TOOLS
|
TOOLS
|
||||||
**********/
|
**********/
|
||||||
GameRegistry.register(bronzepickaxe);
|
ForgeRegistries.ITEMS.register(bronzepickaxe);
|
||||||
GameRegistry.register(bronzeaxe);
|
ForgeRegistries.ITEMS.register(bronzeaxe);
|
||||||
GameRegistry.register(bronzeshovel);
|
ForgeRegistries.ITEMS.register(bronzeshovel);
|
||||||
GameRegistry.register(bronzehoe);
|
ForgeRegistries.ITEMS.register(bronzehoe);
|
||||||
|
|
||||||
GameRegistry.register(ironpickaxe);
|
ForgeRegistries.ITEMS.register(ironpickaxe);
|
||||||
GameRegistry.register(ironaxe);
|
ForgeRegistries.ITEMS.register(ironaxe);
|
||||||
GameRegistry.register(ironshovel);
|
ForgeRegistries.ITEMS.register(ironshovel);
|
||||||
GameRegistry.register(ironhoe);
|
ForgeRegistries.ITEMS.register(ironhoe);
|
||||||
|
|
||||||
GameRegistry.register(cleanironpickaxe);
|
ForgeRegistries.ITEMS.register(cleanironpickaxe);
|
||||||
GameRegistry.register(cleanironaxe);
|
ForgeRegistries.ITEMS.register(cleanironaxe);
|
||||||
GameRegistry.register(cleanironshovel);
|
ForgeRegistries.ITEMS.register(cleanironshovel);
|
||||||
GameRegistry.register(cleanironhoe);
|
ForgeRegistries.ITEMS.register(cleanironhoe);
|
||||||
|
|
||||||
GameRegistry.register(steelpickaxe);
|
ForgeRegistries.ITEMS.register(steelpickaxe);
|
||||||
GameRegistry.register(steelaxe);
|
ForgeRegistries.ITEMS.register(steelaxe);
|
||||||
GameRegistry.register(steelshovel);
|
ForgeRegistries.ITEMS.register(steelshovel);
|
||||||
GameRegistry.register(steelhoe);
|
ForgeRegistries.ITEMS.register(steelhoe);
|
||||||
|
|
||||||
GameRegistry.register(wootzpickaxe);
|
ForgeRegistries.ITEMS.register(wootzpickaxe);
|
||||||
GameRegistry.register(wootzaxe);
|
ForgeRegistries.ITEMS.register(wootzaxe);
|
||||||
GameRegistry.register(wootzshovel);
|
ForgeRegistries.ITEMS.register(wootzshovel);
|
||||||
GameRegistry.register(wootzhoe);
|
ForgeRegistries.ITEMS.register(wootzhoe);
|
||||||
|
|
||||||
/**********
|
/**********
|
||||||
WEAPONS
|
WEAPONS
|
||||||
**********/
|
**********/
|
||||||
GameRegistry.register(wroughtirongladius);
|
ForgeRegistries.ITEMS.register(wroughtirongladius);
|
||||||
GameRegistry.register(bronzegladius);
|
ForgeRegistries.ITEMS.register(bronzegladius);
|
||||||
GameRegistry.register(cleanirongladius);
|
ForgeRegistries.ITEMS.register(cleanirongladius);
|
||||||
GameRegistry.register(steelgladius);
|
ForgeRegistries.ITEMS.register(steelgladius);
|
||||||
|
|
||||||
GameRegistry.register(cleanironlongsword);
|
ForgeRegistries.ITEMS.register(cleanironlongsword);
|
||||||
GameRegistry.register(steellongsword);
|
ForgeRegistries.ITEMS.register(steellongsword);
|
||||||
|
|
||||||
GameRegistry.register(wroughtironslayer);
|
ForgeRegistries.ITEMS.register(wroughtironslayer);
|
||||||
GameRegistry.register(cleanironslayer);
|
ForgeRegistries.ITEMS.register(cleanironslayer);
|
||||||
GameRegistry.register(steelslayer);
|
ForgeRegistries.ITEMS.register(steelslayer);
|
||||||
|
|
||||||
GameRegistry.register(rawlongbow);
|
ForgeRegistries.ITEMS.register(rawlongbow);
|
||||||
GameRegistry.register(unstrunglongbow);
|
ForgeRegistries.ITEMS.register(unstrunglongbow);
|
||||||
GameRegistry.register(longbow);
|
ForgeRegistries.ITEMS.register(longbow);
|
||||||
//GameRegistry.register(matchlockmusket);
|
//ForgeRegistries.ITEMS.register(matchlockmusket);
|
||||||
|
|
||||||
GameRegistry.register(brokenbronzetool);
|
ForgeRegistries.ITEMS.register(brokenbronzetool);
|
||||||
GameRegistry.register(brokenwroughtirontool);
|
ForgeRegistries.ITEMS.register(brokenwroughtirontool);
|
||||||
GameRegistry.register(brokencleanirontool);
|
ForgeRegistries.ITEMS.register(brokencleanirontool);
|
||||||
GameRegistry.register(brokensteeltool);
|
ForgeRegistries.ITEMS.register(brokensteeltool);
|
||||||
GameRegistry.register(brokenwootztool);
|
ForgeRegistries.ITEMS.register(brokenwootztool);
|
||||||
|
|
||||||
/**********
|
/**********
|
||||||
ARMOR
|
ARMOR
|
||||||
**********/
|
**********/
|
||||||
//GameRegistry.register(testleggings);
|
//ForgeRegistries.ITEMS.register(testleggings);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//GameRegistry.register(forgingmanual);
|
//ForgeRegistries.ITEMS.register(forgingmanual);
|
||||||
}
|
}
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package nmd.primal.forgecraft.items;
|
package nmd.primal.forgecraft.items;
|
||||||
|
|
||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
|
import net.minecraft.client.util.ITooltipFlag;
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
import net.minecraft.init.Blocks;
|
import net.minecraft.init.Blocks;
|
||||||
@@ -27,6 +28,7 @@ import nmd.primal.forgecraft.tiles.TileBaseCrucible;
|
|||||||
import nmd.primal.forgecraft.tiles.TileBloomery;
|
import nmd.primal.forgecraft.tiles.TileBloomery;
|
||||||
import nmd.primal.forgecraft.tiles.TileForge;
|
import nmd.primal.forgecraft.tiles.TileForge;
|
||||||
|
|
||||||
|
import javax.annotation.Nullable;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -888,7 +890,7 @@ public class ItemStoneTongs extends Item {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public void addInformation(ItemStack item, EntityPlayer player, List<String> tooltip, boolean advanced)
|
public void addInformation(ItemStack stack, @Nullable World worldIn, List<String> tooltip, ITooltipFlag flagIn)
|
||||||
{
|
{
|
||||||
//tooltip.add(ChatFormatting.BLUE + "NBT: " + item.getSubCompound("tags"));
|
//tooltip.add(ChatFormatting.BLUE + "NBT: " + item.getSubCompound("tags"));
|
||||||
//tooltip.add(ChatFormatting.RED + "NBT: " + item.getTagCompound().getInteger("type"));
|
//tooltip.add(ChatFormatting.RED + "NBT: " + item.getTagCompound().getInteger("type"));
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package nmd.primal.forgecraft.items.parts;
|
package nmd.primal.forgecraft.items.parts;
|
||||||
|
|
||||||
import com.mojang.realmsclient.gui.ChatFormatting;
|
import com.mojang.realmsclient.gui.ChatFormatting;
|
||||||
|
import net.minecraft.client.util.ITooltipFlag;
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.entity.EntityLivingBase;
|
import net.minecraft.entity.EntityLivingBase;
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
@@ -125,30 +126,23 @@ public class BronzeToolPart extends Item implements ToolNBT{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public void addInformation(ItemStack item, EntityPlayer player, List<String> tooltip, boolean advanced)
|
public void addInformation(ItemStack item, @Nullable World world, List<String> tooltip, ITooltipFlag flagIn)
|
||||||
{
|
{
|
||||||
if(player.getEntityWorld().isRemote) {
|
if(item.hasTagCompound())
|
||||||
|
{
|
||||||
if(item.hasTagCompound()) {
|
tooltip.add(ChatFormatting.GRAY + "Upgrades");
|
||||||
|
if (getEmerald(item) == true) {
|
||||||
tooltip.add(ChatFormatting.GRAY + "Upgrades");
|
tooltip.add(ChatFormatting.DARK_GREEN + "Emerald");
|
||||||
if (getEmerald(item) == true) {
|
}
|
||||||
tooltip.add(ChatFormatting.DARK_GREEN + "Emerald");
|
if (getDiamondLevel(item) > 0) {
|
||||||
}
|
tooltip.add(ChatFormatting.AQUA + "Diamond Level: " + getDiamondLevel(item));
|
||||||
if (getDiamondLevel(item) > 0) {
|
}
|
||||||
tooltip.add(ChatFormatting.AQUA + "Diamond Level: " + getDiamondLevel(item));
|
if (getRedstoneLevel(item) > 0) {
|
||||||
}
|
tooltip.add(ChatFormatting.RED + "Redstone Level: " + getRedstoneLevel(item));
|
||||||
if (getRedstoneLevel(item) > 0) {
|
}
|
||||||
tooltip.add(ChatFormatting.RED + "Redstone Level: " + getRedstoneLevel(item));
|
if (getLapisLevel(item) > 0) {
|
||||||
}
|
tooltip.add(ChatFormatting.BLUE + "Lapis Level: " + getLapisLevel(item));
|
||||||
if (getLapisLevel(item) > 0) {
|
|
||||||
tooltip.add(ChatFormatting.BLUE + "Lapis Level: " + getLapisLevel(item));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
package nmd.primal.forgecraft.items.parts;
|
package nmd.primal.forgecraft.items.parts;
|
||||||
|
|
||||||
import com.mojang.realmsclient.gui.ChatFormatting;
|
import com.mojang.realmsclient.gui.ChatFormatting;
|
||||||
|
import net.minecraft.client.util.ITooltipFlag;
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.entity.EntityLivingBase;
|
import net.minecraft.entity.EntityLivingBase;
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
@@ -271,30 +272,23 @@ public class ToolPart extends Item implements ToolNBT{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public void addInformation(ItemStack item, EntityPlayer player, List<String> tooltip, boolean advanced)
|
public void addInformation(ItemStack item, @Nullable World world, List<String> tooltip, ITooltipFlag flagIn)
|
||||||
{
|
{
|
||||||
if(player.getEntityWorld().isRemote) {
|
if(item.hasTagCompound())
|
||||||
|
{
|
||||||
if(item.hasTagCompound()) {
|
tooltip.add(ChatFormatting.GRAY + "Upgrades");
|
||||||
|
if (getEmerald(item) == true) {
|
||||||
tooltip.add(ChatFormatting.GRAY + "Upgrades");
|
tooltip.add(ChatFormatting.DARK_GREEN + "Emerald");
|
||||||
if (getEmerald(item) == true) {
|
}
|
||||||
tooltip.add(ChatFormatting.DARK_GREEN + "Emerald");
|
if (getDiamondLevel(item) > 0) {
|
||||||
}
|
tooltip.add(ChatFormatting.AQUA + "Diamond Level: " + getDiamondLevel(item));
|
||||||
if (getDiamondLevel(item) > 0) {
|
}
|
||||||
tooltip.add(ChatFormatting.AQUA + "Diamond Level: " + getDiamondLevel(item));
|
if (getRedstoneLevel(item) > 0) {
|
||||||
}
|
tooltip.add(ChatFormatting.RED + "Redstone Level: " + getRedstoneLevel(item));
|
||||||
if (getRedstoneLevel(item) > 0) {
|
}
|
||||||
tooltip.add(ChatFormatting.RED + "Redstone Level: " + getRedstoneLevel(item));
|
if (getLapisLevel(item) > 0) {
|
||||||
}
|
tooltip.add(ChatFormatting.BLUE + "Lapis Level: " + getLapisLevel(item));
|
||||||
if (getLapisLevel(item) > 0) {
|
|
||||||
tooltip.add(ChatFormatting.BLUE + "Lapis Level: " + getLapisLevel(item));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -3,6 +3,7 @@ package nmd.primal.forgecraft.items.tools;
|
|||||||
import com.mojang.realmsclient.gui.ChatFormatting;
|
import com.mojang.realmsclient.gui.ChatFormatting;
|
||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
import net.minecraft.block.state.IBlockState;
|
import net.minecraft.block.state.IBlockState;
|
||||||
|
import net.minecraft.client.util.ITooltipFlag;
|
||||||
import net.minecraft.enchantment.Enchantment;
|
import net.minecraft.enchantment.Enchantment;
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.entity.EntityLivingBase;
|
import net.minecraft.entity.EntityLivingBase;
|
||||||
@@ -136,28 +137,26 @@ public class BronzeAxe extends ItemAxe implements ToolNBT {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public void addInformation(ItemStack item, EntityPlayer player, List<String> tooltip, boolean advanced)
|
public void addInformation(ItemStack item, @Nullable World world, List<String> tooltip, ITooltipFlag flagIn)
|
||||||
{
|
{
|
||||||
if(!item.isEmpty()) {
|
if(!item.isEmpty())
|
||||||
if (player.getEntityWorld().isRemote) {
|
{
|
||||||
|
if (item.hasTagCompound())
|
||||||
if (item.hasTagCompound()) {
|
{
|
||||||
|
tooltip.add(ChatFormatting.GRAY + "Upgrades Left: " + (1 - getModifiers(item)) );
|
||||||
tooltip.add(ChatFormatting.GRAY + "Upgrades Left: " + (1 - getModifiers(item)) );
|
if (getEmerald(item) == true) {
|
||||||
if (getEmerald(item) == true) {
|
tooltip.add(ChatFormatting.DARK_GREEN + "Emerald");
|
||||||
tooltip.add(ChatFormatting.DARK_GREEN + "Emerald");
|
|
||||||
}
|
|
||||||
if (getDiamondLevel(item) > 0) {
|
|
||||||
tooltip.add(ChatFormatting.AQUA + "Diamond Level: " + getDiamondLevel(item));
|
|
||||||
}
|
|
||||||
if (getRedstoneLevel(item) > 0) {
|
|
||||||
tooltip.add(ChatFormatting.RED + "Redstone Level: " + "1" );
|
|
||||||
}
|
|
||||||
if (getLapisLevel(item) > 0) {
|
|
||||||
tooltip.add(ChatFormatting.BLUE + "Lapis Level: " + "5" );
|
|
||||||
}
|
|
||||||
tooltip.add(ChatFormatting.LIGHT_PURPLE + "Damage: " + item.getItemDamage() );
|
|
||||||
}
|
}
|
||||||
|
if (getDiamondLevel(item) > 0) {
|
||||||
|
tooltip.add(ChatFormatting.AQUA + "Diamond Level: " + getDiamondLevel(item));
|
||||||
|
}
|
||||||
|
if (getRedstoneLevel(item) > 0) {
|
||||||
|
tooltip.add(ChatFormatting.RED + "Redstone Level: " + "1" );
|
||||||
|
}
|
||||||
|
if (getLapisLevel(item) > 0) {
|
||||||
|
tooltip.add(ChatFormatting.BLUE + "Lapis Level: " + "5" );
|
||||||
|
}
|
||||||
|
tooltip.add(ChatFormatting.LIGHT_PURPLE + "Damage: " + item.getItemDamage() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package nmd.primal.forgecraft.items.tools;
|
|||||||
|
|
||||||
import com.mojang.realmsclient.gui.ChatFormatting;
|
import com.mojang.realmsclient.gui.ChatFormatting;
|
||||||
import net.minecraft.block.state.IBlockState;
|
import net.minecraft.block.state.IBlockState;
|
||||||
|
import net.minecraft.client.util.ITooltipFlag;
|
||||||
import net.minecraft.enchantment.Enchantment;
|
import net.minecraft.enchantment.Enchantment;
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.entity.EntityLivingBase;
|
import net.minecraft.entity.EntityLivingBase;
|
||||||
@@ -138,27 +139,25 @@ public class BronzeHoe extends ItemHoe implements ToolNBT {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public void addInformation(ItemStack item, EntityPlayer player, List<String> tooltip, boolean advanced)
|
public void addInformation(ItemStack item, @Nullable World world, List<String> tooltip, ITooltipFlag flagIn)
|
||||||
{
|
{
|
||||||
if(player.getEntityWorld().isRemote) {
|
//tooltip.add(ChatFormatting.GRAY + "Damage: " + item.getItemDamage() );
|
||||||
//tooltip.add(ChatFormatting.GRAY + "Damage: " + item.getItemDamage() );
|
if(item.hasTagCompound())
|
||||||
if(item.hasTagCompound()) {
|
{
|
||||||
|
tooltip.add(ChatFormatting.GRAY + "Upgrades Left: " + (1 - getModifiers(item)) );
|
||||||
tooltip.add(ChatFormatting.GRAY + "Upgrades Left: " + (1 - getModifiers(item)) );
|
if (getEmerald(item) == true) {
|
||||||
if (getEmerald(item) == true) {
|
tooltip.add(ChatFormatting.DARK_GREEN + "Emerald");
|
||||||
tooltip.add(ChatFormatting.DARK_GREEN + "Emerald");
|
|
||||||
}
|
|
||||||
if (getDiamondLevel(item) > 0) {
|
|
||||||
tooltip.add(ChatFormatting.AQUA + "Diamond Level: " + getDiamondLevel(item));
|
|
||||||
}
|
|
||||||
if (getRedstoneLevel(item) > 0) {
|
|
||||||
tooltip.add(ChatFormatting.RED + "Redstone Level: " + 1 );
|
|
||||||
}
|
|
||||||
if (getLapisLevel(item) > 0) {
|
|
||||||
tooltip.add(ChatFormatting.BLUE + "Lapis Level: " + 5 );
|
|
||||||
}
|
|
||||||
tooltip.add(ChatFormatting.LIGHT_PURPLE + "Damage: " + item.getItemDamage() );
|
|
||||||
}
|
}
|
||||||
|
if (getDiamondLevel(item) > 0) {
|
||||||
|
tooltip.add(ChatFormatting.AQUA + "Diamond Level: " + getDiamondLevel(item));
|
||||||
|
}
|
||||||
|
if (getRedstoneLevel(item) > 0) {
|
||||||
|
tooltip.add(ChatFormatting.RED + "Redstone Level: " + 1 );
|
||||||
|
}
|
||||||
|
if (getLapisLevel(item) > 0) {
|
||||||
|
tooltip.add(ChatFormatting.BLUE + "Lapis Level: " + 5 );
|
||||||
|
}
|
||||||
|
tooltip.add(ChatFormatting.LIGHT_PURPLE + "Damage: " + item.getItemDamage() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ package nmd.primal.forgecraft.items.tools;
|
|||||||
import com.mojang.realmsclient.gui.ChatFormatting;
|
import com.mojang.realmsclient.gui.ChatFormatting;
|
||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
import net.minecraft.block.state.IBlockState;
|
import net.minecraft.block.state.IBlockState;
|
||||||
|
import net.minecraft.client.util.ITooltipFlag;
|
||||||
import net.minecraft.enchantment.Enchantment;
|
import net.minecraft.enchantment.Enchantment;
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.entity.EntityLivingBase;
|
import net.minecraft.entity.EntityLivingBase;
|
||||||
@@ -136,27 +137,25 @@ public class BronzePickaxe extends ItemPickaxe implements ToolNBT{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public void addInformation(ItemStack item, EntityPlayer player, List<String> tooltip, boolean advanced)
|
public void addInformation(ItemStack item, @Nullable World world, List<String> tooltip, ITooltipFlag flagIn)
|
||||||
{
|
{
|
||||||
if(player.getEntityWorld().isRemote) {
|
//tooltip.add(ChatFormatting.GRAY + "Damage: " + item.getItemDamage() );
|
||||||
//tooltip.add(ChatFormatting.GRAY + "Damage: " + item.getItemDamage() );
|
if(item.hasTagCompound())
|
||||||
if(item.hasTagCompound()) {
|
{
|
||||||
|
tooltip.add(ChatFormatting.GRAY + "Upgrades Left: " + (1 - getModifiers(item)) );
|
||||||
tooltip.add(ChatFormatting.GRAY + "Upgrades Left: " + (1 - getModifiers(item)) );
|
if (getEmerald(item) == true) {
|
||||||
if (getEmerald(item) == true) {
|
tooltip.add(ChatFormatting.DARK_GREEN + "Emerald");
|
||||||
tooltip.add(ChatFormatting.DARK_GREEN + "Emerald");
|
|
||||||
}
|
|
||||||
if (getDiamondLevel(item) > 0) {
|
|
||||||
tooltip.add(ChatFormatting.AQUA + "Diamond Level: " + getDiamondLevel(item));
|
|
||||||
}
|
|
||||||
if (getRedstoneLevel(item) > 0) {
|
|
||||||
tooltip.add(ChatFormatting.RED + "Redstone Level: " + 1 );
|
|
||||||
}
|
|
||||||
if (getLapisLevel(item) > 0) {
|
|
||||||
tooltip.add(ChatFormatting.BLUE + "Lapis Level: " + 5 );
|
|
||||||
}
|
|
||||||
tooltip.add(ChatFormatting.LIGHT_PURPLE + "Damage: " + item.getItemDamage() );
|
|
||||||
}
|
}
|
||||||
|
if (getDiamondLevel(item) > 0) {
|
||||||
|
tooltip.add(ChatFormatting.AQUA + "Diamond Level: " + getDiamondLevel(item));
|
||||||
|
}
|
||||||
|
if (getRedstoneLevel(item) > 0) {
|
||||||
|
tooltip.add(ChatFormatting.RED + "Redstone Level: " + 1 );
|
||||||
|
}
|
||||||
|
if (getLapisLevel(item) > 0) {
|
||||||
|
tooltip.add(ChatFormatting.BLUE + "Lapis Level: " + 5 );
|
||||||
|
}
|
||||||
|
tooltip.add(ChatFormatting.LIGHT_PURPLE + "Damage: " + item.getItemDamage() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import com.google.common.collect.Sets;
|
|||||||
import com.mojang.realmsclient.gui.ChatFormatting;
|
import com.mojang.realmsclient.gui.ChatFormatting;
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.block.state.IBlockState;
|
import net.minecraft.block.state.IBlockState;
|
||||||
|
import net.minecraft.client.util.ITooltipFlag;
|
||||||
import net.minecraft.enchantment.Enchantment;
|
import net.minecraft.enchantment.Enchantment;
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.entity.EntityLivingBase;
|
import net.minecraft.entity.EntityLivingBase;
|
||||||
@@ -141,27 +142,25 @@ Item drop;
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public void addInformation(ItemStack item, EntityPlayer player, List<String> tooltip, boolean advanced)
|
public void addInformation(ItemStack item, @Nullable World world, List<String> tooltip, ITooltipFlag flagIn)
|
||||||
{
|
{
|
||||||
if(player.getEntityWorld().isRemote) {
|
//tooltip.add(ChatFormatting.GRAY + "Damage: " + item.getItemDamage() );
|
||||||
//tooltip.add(ChatFormatting.GRAY + "Damage: " + item.getItemDamage() );
|
if(item.hasTagCompound())
|
||||||
if(item.hasTagCompound()) {
|
{
|
||||||
|
tooltip.add(ChatFormatting.GRAY + "Upgrades Left: " + (1 - getModifiers(item)) );
|
||||||
tooltip.add(ChatFormatting.GRAY + "Upgrades Left: " + (1 - getModifiers(item)) );
|
if (getEmerald(item) == true) {
|
||||||
if (getEmerald(item) == true) {
|
tooltip.add(ChatFormatting.DARK_GREEN + "Emerald");
|
||||||
tooltip.add(ChatFormatting.DARK_GREEN + "Emerald");
|
|
||||||
}
|
|
||||||
if (getDiamondLevel(item) > 0) {
|
|
||||||
tooltip.add(ChatFormatting.AQUA + "Diamond Level: " + getDiamondLevel(item));
|
|
||||||
}
|
|
||||||
if (getRedstoneLevel(item) > 0) {
|
|
||||||
tooltip.add(ChatFormatting.RED + "Redstone Level: " + 1 );
|
|
||||||
}
|
|
||||||
if (getLapisLevel(item) > 0) {
|
|
||||||
tooltip.add(ChatFormatting.BLUE + "Lapis Level: " + 5 );
|
|
||||||
}
|
|
||||||
tooltip.add(ChatFormatting.LIGHT_PURPLE + "Damage: " + item.getItemDamage() );
|
|
||||||
}
|
}
|
||||||
|
if (getDiamondLevel(item) > 0) {
|
||||||
|
tooltip.add(ChatFormatting.AQUA + "Diamond Level: " + getDiamondLevel(item));
|
||||||
|
}
|
||||||
|
if (getRedstoneLevel(item) > 0) {
|
||||||
|
tooltip.add(ChatFormatting.RED + "Redstone Level: " + 1 );
|
||||||
|
}
|
||||||
|
if (getLapisLevel(item) > 0) {
|
||||||
|
tooltip.add(ChatFormatting.BLUE + "Lapis Level: " + 5 );
|
||||||
|
}
|
||||||
|
tooltip.add(ChatFormatting.LIGHT_PURPLE + "Damage: " + item.getItemDamage() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ package nmd.primal.forgecraft.items.tools;
|
|||||||
import com.mojang.realmsclient.gui.ChatFormatting;
|
import com.mojang.realmsclient.gui.ChatFormatting;
|
||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
import net.minecraft.block.state.IBlockState;
|
import net.minecraft.block.state.IBlockState;
|
||||||
|
import net.minecraft.client.util.ITooltipFlag;
|
||||||
import net.minecraft.enchantment.Enchantment;
|
import net.minecraft.enchantment.Enchantment;
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.entity.EntityLivingBase;
|
import net.minecraft.entity.EntityLivingBase;
|
||||||
@@ -276,28 +277,26 @@ public class CustomAxe extends ItemAxe implements ToolNBT {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public void addInformation(ItemStack item, EntityPlayer player, List<String> tooltip, boolean advanced)
|
public void addInformation(ItemStack item, @Nullable World world, List<String> tooltip, ITooltipFlag flagIn)
|
||||||
{
|
{
|
||||||
if(!item.isEmpty()) {
|
if(!item.isEmpty())
|
||||||
if (player.getEntityWorld().isRemote) {
|
{
|
||||||
|
if (item.hasTagCompound())
|
||||||
if (item.hasTagCompound()) {
|
{
|
||||||
|
tooltip.add(ChatFormatting.GRAY + "Upgrades Left: " + (3 - getModifiers(item)) );
|
||||||
tooltip.add(ChatFormatting.GRAY + "Upgrades Left: " + (3 - getModifiers(item)) );
|
if (getEmerald(item) == true) {
|
||||||
if (getEmerald(item) == true) {
|
tooltip.add(ChatFormatting.DARK_GREEN + "Emerald");
|
||||||
tooltip.add(ChatFormatting.DARK_GREEN + "Emerald");
|
|
||||||
}
|
|
||||||
if (getDiamondLevel(item) > 0) {
|
|
||||||
tooltip.add(ChatFormatting.AQUA + "Diamond Level: " + getDiamondLevel(item));
|
|
||||||
}
|
|
||||||
if (getRedstoneLevel(item) > 0) {
|
|
||||||
tooltip.add(ChatFormatting.RED + "Redstone Level: " + getRedstoneLevel(item) );
|
|
||||||
}
|
|
||||||
if (getLapisLevel(item) > 0) {
|
|
||||||
tooltip.add(ChatFormatting.BLUE + "Lapis Level: " + getLapisLevel(item) );
|
|
||||||
}
|
|
||||||
tooltip.add(ChatFormatting.LIGHT_PURPLE + "Damage: " + item.getItemDamage() );
|
|
||||||
}
|
}
|
||||||
|
if (getDiamondLevel(item) > 0) {
|
||||||
|
tooltip.add(ChatFormatting.AQUA + "Diamond Level: " + getDiamondLevel(item));
|
||||||
|
}
|
||||||
|
if (getRedstoneLevel(item) > 0) {
|
||||||
|
tooltip.add(ChatFormatting.RED + "Redstone Level: " + getRedstoneLevel(item) );
|
||||||
|
}
|
||||||
|
if (getLapisLevel(item) > 0) {
|
||||||
|
tooltip.add(ChatFormatting.BLUE + "Lapis Level: " + getLapisLevel(item) );
|
||||||
|
}
|
||||||
|
tooltip.add(ChatFormatting.LIGHT_PURPLE + "Damage: " + item.getItemDamage() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package nmd.primal.forgecraft.items.tools;
|
|||||||
|
|
||||||
import com.mojang.realmsclient.gui.ChatFormatting;
|
import com.mojang.realmsclient.gui.ChatFormatting;
|
||||||
import net.minecraft.block.state.IBlockState;
|
import net.minecraft.block.state.IBlockState;
|
||||||
|
import net.minecraft.client.util.ITooltipFlag;
|
||||||
import net.minecraft.enchantment.Enchantment;
|
import net.minecraft.enchantment.Enchantment;
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.entity.EntityLivingBase;
|
import net.minecraft.entity.EntityLivingBase;
|
||||||
@@ -273,30 +274,26 @@ public class CustomHoe extends ItemHoe implements ToolNBT {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public void addInformation(ItemStack item, EntityPlayer player, List<String> tooltip, boolean advanced)
|
public void addInformation(ItemStack item, @Nullable World world, List<String> tooltip, ITooltipFlag flagIn)
|
||||||
{
|
{
|
||||||
if(player.getEntityWorld().isRemote) {
|
if(item.hasTagCompound())
|
||||||
|
{
|
||||||
if(item.hasTagCompound()) {
|
tooltip.add(ChatFormatting.GRAY + "Upgrades Left: " + (3 - getModifiers(item)) );
|
||||||
|
if (getEmerald(item) == true) {
|
||||||
tooltip.add(ChatFormatting.GRAY + "Upgrades Left: " + (3 - getModifiers(item)) );
|
tooltip.add(ChatFormatting.DARK_GREEN + "Emerald");
|
||||||
if (getEmerald(item) == true) {
|
|
||||||
tooltip.add(ChatFormatting.DARK_GREEN + "Emerald");
|
|
||||||
}
|
|
||||||
if (getDiamondLevel(item) > 0) {
|
|
||||||
tooltip.add(ChatFormatting.AQUA + "Diamond Level: " + getDiamondLevel(item));
|
|
||||||
}
|
|
||||||
if (getRedstoneLevel(item) > 0) {
|
|
||||||
tooltip.add(ChatFormatting.RED + "Redstone Level: " + getRedstoneLevel(item) );
|
|
||||||
}
|
|
||||||
if (getLapisLevel(item) > 0) {
|
|
||||||
tooltip.add(ChatFormatting.BLUE + "Lapis Level: " + getLapisLevel(item) );
|
|
||||||
}
|
|
||||||
tooltip.add(ChatFormatting.LIGHT_PURPLE + "Damage: " + item.getItemDamage() );
|
|
||||||
}
|
}
|
||||||
|
if (getDiamondLevel(item) > 0) {
|
||||||
|
tooltip.add(ChatFormatting.AQUA + "Diamond Level: " + getDiamondLevel(item));
|
||||||
|
}
|
||||||
|
if (getRedstoneLevel(item) > 0) {
|
||||||
|
tooltip.add(ChatFormatting.RED + "Redstone Level: " + getRedstoneLevel(item) );
|
||||||
|
}
|
||||||
|
if (getLapisLevel(item) > 0) {
|
||||||
|
tooltip.add(ChatFormatting.BLUE + "Lapis Level: " + getLapisLevel(item) );
|
||||||
|
}
|
||||||
|
tooltip.add(ChatFormatting.LIGHT_PURPLE + "Damage: " + item.getItemDamage() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ package nmd.primal.forgecraft.items.tools;
|
|||||||
import com.mojang.realmsclient.gui.ChatFormatting;
|
import com.mojang.realmsclient.gui.ChatFormatting;
|
||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
import net.minecraft.block.state.IBlockState;
|
import net.minecraft.block.state.IBlockState;
|
||||||
|
import net.minecraft.client.util.ITooltipFlag;
|
||||||
import net.minecraft.enchantment.Enchantment;
|
import net.minecraft.enchantment.Enchantment;
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.entity.EntityLivingBase;
|
import net.minecraft.entity.EntityLivingBase;
|
||||||
@@ -276,27 +277,25 @@ public class CustomPickaxe extends ItemPickaxe implements ToolNBT{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public void addInformation(ItemStack item, EntityPlayer player, List<String> tooltip, boolean advanced)
|
public void addInformation(ItemStack item, @Nullable World world, List<String> tooltip, ITooltipFlag flagIn)
|
||||||
{
|
{
|
||||||
if(player.getEntityWorld().isRemote) {
|
//tooltip.add(ChatFormatting.GRAY + "Damage: " + item.getItemDamage() );
|
||||||
//tooltip.add(ChatFormatting.GRAY + "Damage: " + item.getItemDamage() );
|
if(item.hasTagCompound())
|
||||||
if(item.hasTagCompound()) {
|
{
|
||||||
|
tooltip.add(ChatFormatting.GRAY + "Upgrades Left: " + (3 - getModifiers(item)) );
|
||||||
tooltip.add(ChatFormatting.GRAY + "Upgrades Left: " + (3 - getModifiers(item)) );
|
if (getEmerald(item) == true) {
|
||||||
if (getEmerald(item) == true) {
|
tooltip.add(ChatFormatting.DARK_GREEN + "Emerald");
|
||||||
tooltip.add(ChatFormatting.DARK_GREEN + "Emerald");
|
|
||||||
}
|
|
||||||
if (getDiamondLevel(item) > 0) {
|
|
||||||
tooltip.add(ChatFormatting.AQUA + "Diamond Level: " + getDiamondLevel(item));
|
|
||||||
}
|
|
||||||
if (getRedstoneLevel(item) > 0) {
|
|
||||||
tooltip.add(ChatFormatting.RED + "Redstone Level: " + getRedstoneLevel(item) );
|
|
||||||
}
|
|
||||||
if (getLapisLevel(item) > 0) {
|
|
||||||
tooltip.add(ChatFormatting.BLUE + "Lapis Level: " + getLapisLevel(item) );
|
|
||||||
}
|
|
||||||
tooltip.add(ChatFormatting.LIGHT_PURPLE + "Damage: " + item.getItemDamage() );
|
|
||||||
}
|
}
|
||||||
|
if (getDiamondLevel(item) > 0) {
|
||||||
|
tooltip.add(ChatFormatting.AQUA + "Diamond Level: " + getDiamondLevel(item));
|
||||||
|
}
|
||||||
|
if (getRedstoneLevel(item) > 0) {
|
||||||
|
tooltip.add(ChatFormatting.RED + "Redstone Level: " + getRedstoneLevel(item) );
|
||||||
|
}
|
||||||
|
if (getLapisLevel(item) > 0) {
|
||||||
|
tooltip.add(ChatFormatting.BLUE + "Lapis Level: " + getLapisLevel(item) );
|
||||||
|
}
|
||||||
|
tooltip.add(ChatFormatting.LIGHT_PURPLE + "Damage: " + item.getItemDamage() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -371,7 +370,7 @@ public class CustomPickaxe extends ItemPickaxe implements ToolNBT{
|
|||||||
entityLiving.renderBrokenItemStack(stack);
|
entityLiving.renderBrokenItemStack(stack);
|
||||||
stack.shrink(1);
|
stack.shrink(1);
|
||||||
player.inventory.markDirty();
|
player.inventory.markDirty();
|
||||||
player.inventory.inventoryChanged = true;
|
//player.inventory.inventoryChanged = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import com.google.common.collect.Sets;
|
|||||||
import com.mojang.realmsclient.gui.ChatFormatting;
|
import com.mojang.realmsclient.gui.ChatFormatting;
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.block.state.IBlockState;
|
import net.minecraft.block.state.IBlockState;
|
||||||
|
import net.minecraft.client.util.ITooltipFlag;
|
||||||
import net.minecraft.enchantment.Enchantment;
|
import net.minecraft.enchantment.Enchantment;
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.entity.EntityLivingBase;
|
import net.minecraft.entity.EntityLivingBase;
|
||||||
@@ -276,30 +277,26 @@ public class CustomShovel extends ItemSpade implements ToolNBT {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public void addInformation(ItemStack item, EntityPlayer player, List<String> tooltip, boolean advanced)
|
public void addInformation(ItemStack item, @Nullable World world, List<String> tooltip, ITooltipFlag flagIn)
|
||||||
{
|
{
|
||||||
if(player.getEntityWorld().isRemote) {
|
if(item.hasTagCompound())
|
||||||
|
{
|
||||||
|
|
||||||
if(item.hasTagCompound()) {
|
tooltip.add(ChatFormatting.GRAY + "Upgrades Left: " + (3 - getModifiers(item)) );
|
||||||
|
if (getEmerald(item) == true) {
|
||||||
tooltip.add(ChatFormatting.GRAY + "Upgrades Left: " + (3 - getModifiers(item)) );
|
tooltip.add(ChatFormatting.DARK_GREEN + "Emerald");
|
||||||
if (getEmerald(item) == true) {
|
|
||||||
tooltip.add(ChatFormatting.DARK_GREEN + "Emerald");
|
|
||||||
}
|
|
||||||
if (getDiamondLevel(item) > 0) {
|
|
||||||
tooltip.add(ChatFormatting.AQUA + "Diamond Level: " + getDiamondLevel(item));
|
|
||||||
}
|
|
||||||
if (getRedstoneLevel(item) > 0) {
|
|
||||||
tooltip.add(ChatFormatting.RED + "Redstone Level: " + getRedstoneLevel(item) );
|
|
||||||
}
|
|
||||||
if (getLapisLevel(item) > 0) {
|
|
||||||
tooltip.add(ChatFormatting.BLUE + "Lapis Level: " + getLapisLevel(item) );
|
|
||||||
}
|
|
||||||
tooltip.add(ChatFormatting.LIGHT_PURPLE + "Damage: " + item.getItemDamage() );
|
|
||||||
}
|
}
|
||||||
|
if (getDiamondLevel(item) > 0) {
|
||||||
|
tooltip.add(ChatFormatting.AQUA + "Diamond Level: " + getDiamondLevel(item));
|
||||||
|
}
|
||||||
|
if (getRedstoneLevel(item) > 0) {
|
||||||
|
tooltip.add(ChatFormatting.RED + "Redstone Level: " + getRedstoneLevel(item) );
|
||||||
|
}
|
||||||
|
if (getLapisLevel(item) > 0) {
|
||||||
|
tooltip.add(ChatFormatting.BLUE + "Lapis Level: " + getLapisLevel(item) );
|
||||||
|
}
|
||||||
|
tooltip.add(ChatFormatting.LIGHT_PURPLE + "Damage: " + item.getItemDamage() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -25,18 +25,13 @@ import org.lwjgl.opengl.GL11;
|
|||||||
/**
|
/**
|
||||||
* Created by mminaie on 3/5/17.
|
* Created by mminaie on 3/5/17.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public class TileAnvilRender extends TileEntitySpecialRenderer<TileAnvil>
|
public class TileAnvilRender extends TileEntitySpecialRenderer<TileAnvil>
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
private RenderItem renderItem = Minecraft.getMinecraft().getRenderItem();
|
private RenderItem renderItem = Minecraft.getMinecraft().getRenderItem();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void renderTileEntityAt(TileAnvil tile, double x, double y, double z, float partialTicks, int destroyStage) {
|
public void render(TileAnvil tile, double x, double y, double z, float partialTicks, int destroyStage, float alpha)
|
||||||
|
{
|
||||||
BlockPos pos = tile.getPos();
|
BlockPos pos = tile.getPos();
|
||||||
IBlockState state = this.getWorld().getBlockState(pos);
|
IBlockState state = this.getWorld().getBlockState(pos);
|
||||||
if (state.getBlock() instanceof AnvilBase) {
|
if (state.getBlock() instanceof AnvilBase) {
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import net.minecraft.item.ItemBlock;
|
|||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.util.math.BlockPos;
|
import net.minecraft.util.math.BlockPos;
|
||||||
import nmd.primal.forgecraft.blocks.BloomeryBase;
|
import nmd.primal.forgecraft.blocks.BloomeryBase;
|
||||||
|
import nmd.primal.forgecraft.tiles.TileAnvil;
|
||||||
import nmd.primal.forgecraft.tiles.TileBloomery;
|
import nmd.primal.forgecraft.tiles.TileBloomery;
|
||||||
import org.lwjgl.opengl.GL11;
|
import org.lwjgl.opengl.GL11;
|
||||||
|
|
||||||
@@ -21,8 +22,8 @@ public class TileBloomeryRender extends TileEntitySpecialRenderer<TileBloomery>
|
|||||||
private RenderItem renderItem = Minecraft.getMinecraft().getRenderItem();
|
private RenderItem renderItem = Minecraft.getMinecraft().getRenderItem();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void renderTileEntityAt(TileBloomery tile, double x, double y, double z, float partialTicks, int destroyStage) {
|
public void render(TileBloomery tile, double x, double y, double z, float partialTicks, int destroyStage, float alpha)
|
||||||
|
{
|
||||||
BlockPos pos = tile.getPos();
|
BlockPos pos = tile.getPos();
|
||||||
IBlockState state = this.getWorld().getBlockState(pos);
|
IBlockState state = this.getWorld().getBlockState(pos);
|
||||||
if (state.getBlock() instanceof BloomeryBase) {
|
if (state.getBlock() instanceof BloomeryBase) {
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
|
|||||||
import net.minecraft.util.EnumFacing;
|
import net.minecraft.util.EnumFacing;
|
||||||
import net.minecraft.util.math.BlockPos;
|
import net.minecraft.util.math.BlockPos;
|
||||||
import nmd.primal.forgecraft.blocks.Breaker;
|
import nmd.primal.forgecraft.blocks.Breaker;
|
||||||
|
import nmd.primal.forgecraft.tiles.TileAnvil;
|
||||||
import nmd.primal.forgecraft.tiles.TileBreaker;
|
import nmd.primal.forgecraft.tiles.TileBreaker;
|
||||||
import org.lwjgl.opengl.GL11;
|
import org.lwjgl.opengl.GL11;
|
||||||
|
|
||||||
@@ -21,8 +22,8 @@ public class TileBreakerRender extends TileEntitySpecialRenderer<TileBreaker>
|
|||||||
private RenderItem renderItem = Minecraft.getMinecraft().getRenderItem();
|
private RenderItem renderItem = Minecraft.getMinecraft().getRenderItem();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void renderTileEntityAt(TileBreaker tile, double x, double y, double z, float partialTicks, int destroyStage) {
|
public void render(TileBreaker tile, double x, double y, double z, float partialTicks, int destroyStage, float alpha)
|
||||||
|
{
|
||||||
BlockPos pos = tile.getPos();
|
BlockPos pos = tile.getPos();
|
||||||
IBlockState state = this.getWorld().getBlockState(pos);
|
IBlockState state = this.getWorld().getBlockState(pos);
|
||||||
if (state.getBlock() instanceof Breaker) {
|
if (state.getBlock() instanceof Breaker) {
|
||||||
|
|||||||
@@ -13,19 +13,20 @@ import net.minecraft.util.math.BlockPos;
|
|||||||
import nmd.primal.forgecraft.blocks.CastingBlock;
|
import nmd.primal.forgecraft.blocks.CastingBlock;
|
||||||
import nmd.primal.forgecraft.blocks.CustomContainerFacing;
|
import nmd.primal.forgecraft.blocks.CustomContainerFacing;
|
||||||
import nmd.primal.forgecraft.items.casting.CastingPart;
|
import nmd.primal.forgecraft.items.casting.CastingPart;
|
||||||
|
import nmd.primal.forgecraft.tiles.TileAnvil;
|
||||||
import nmd.primal.forgecraft.tiles.TileCastingBlock;
|
import nmd.primal.forgecraft.tiles.TileCastingBlock;
|
||||||
import org.lwjgl.opengl.GL11;
|
import org.lwjgl.opengl.GL11;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by mminaie on 6/21/17.
|
* Created by mminaie on 6/21/17.
|
||||||
*/
|
*/
|
||||||
public class TileCastingBlockRender extends TileEntitySpecialRenderer <TileCastingBlock> {
|
public class TileCastingBlockRender extends TileEntitySpecialRenderer <TileCastingBlock>
|
||||||
|
{
|
||||||
private RenderItem renderItem = Minecraft.getMinecraft().getRenderItem();
|
private RenderItem renderItem = Minecraft.getMinecraft().getRenderItem();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void renderTileEntityAt(TileCastingBlock tile, double x, double y, double z, float partialTicks, int destroyStage) {
|
public void render(TileCastingBlock tile, double x, double y, double z, float partialTicks, int destroyStage, float alpha)
|
||||||
|
{
|
||||||
BlockPos pos = tile.getPos();
|
BlockPos pos = tile.getPos();
|
||||||
IBlockState state = this.getWorld().getBlockState(pos);
|
IBlockState state = this.getWorld().getBlockState(pos);
|
||||||
if (state.getBlock() instanceof CastingBlock) {
|
if (state.getBlock() instanceof CastingBlock) {
|
||||||
|
|||||||
@@ -13,19 +13,20 @@ import net.minecraft.util.math.BlockPos;
|
|||||||
import nmd.primal.forgecraft.blocks.CastingForm;
|
import nmd.primal.forgecraft.blocks.CastingForm;
|
||||||
import nmd.primal.forgecraft.blocks.CustomContainerFacing;
|
import nmd.primal.forgecraft.blocks.CustomContainerFacing;
|
||||||
import nmd.primal.forgecraft.init.ModItems;
|
import nmd.primal.forgecraft.init.ModItems;
|
||||||
|
import nmd.primal.forgecraft.tiles.TileCastingBlock;
|
||||||
import nmd.primal.forgecraft.tiles.TileCastingForm;
|
import nmd.primal.forgecraft.tiles.TileCastingForm;
|
||||||
import org.lwjgl.opengl.GL11;
|
import org.lwjgl.opengl.GL11;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by mminaie on 6/21/17.
|
* Created by mminaie on 6/21/17.
|
||||||
*/
|
*/
|
||||||
public class TileCastingformRender extends TileEntitySpecialRenderer <TileCastingForm> {
|
public class TileCastingformRender extends TileEntitySpecialRenderer <TileCastingForm>
|
||||||
|
{
|
||||||
private RenderItem renderItem = Minecraft.getMinecraft().getRenderItem();
|
private RenderItem renderItem = Minecraft.getMinecraft().getRenderItem();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void renderTileEntityAt(TileCastingForm tile, double x, double y, double z, float partialTicks, int destroyStage) {
|
public void render(TileCastingForm tile, double x, double y, double z, float partialTicks, int destroyStage, float alpha)
|
||||||
|
{
|
||||||
BlockPos pos = tile.getPos();
|
BlockPos pos = tile.getPos();
|
||||||
IBlockState state = this.getWorld().getBlockState(pos);
|
IBlockState state = this.getWorld().getBlockState(pos);
|
||||||
if (state.getBlock() instanceof CastingForm) {
|
if (state.getBlock() instanceof CastingForm) {
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ import net.minecraft.item.ItemStack;
|
|||||||
import net.minecraft.util.math.BlockPos;
|
import net.minecraft.util.math.BlockPos;
|
||||||
import nmd.primal.forgecraft.blocks.Forge;
|
import nmd.primal.forgecraft.blocks.Forge;
|
||||||
import nmd.primal.forgecraft.init.ModItems;
|
import nmd.primal.forgecraft.init.ModItems;
|
||||||
|
import nmd.primal.forgecraft.tiles.TileCastingForm;
|
||||||
import nmd.primal.forgecraft.tiles.TileForge;
|
import nmd.primal.forgecraft.tiles.TileForge;
|
||||||
import org.lwjgl.opengl.GL11;
|
import org.lwjgl.opengl.GL11;
|
||||||
|
|
||||||
@@ -24,8 +25,8 @@ public class TileForgeRender extends TileEntitySpecialRenderer<TileForge>
|
|||||||
private RenderItem renderItem = Minecraft.getMinecraft().getRenderItem();
|
private RenderItem renderItem = Minecraft.getMinecraft().getRenderItem();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void renderTileEntityAt(TileForge tile, double x, double y, double z, float partialTicks, int destroyStage) {
|
public void render(TileForge tile, double x, double y, double z, float partialTicks, int destroyStage, float alpha)
|
||||||
|
{
|
||||||
BlockPos pos = tile.getPos();
|
BlockPos pos = tile.getPos();
|
||||||
IBlockState state = this.getWorld().getBlockState(pos);
|
IBlockState state = this.getWorld().getBlockState(pos);
|
||||||
if (state.getBlock() instanceof Forge) {
|
if (state.getBlock() instanceof Forge) {
|
||||||
|
|||||||
@@ -12,20 +12,20 @@ import net.minecraft.util.math.BlockPos;
|
|||||||
import nmd.primal.core.api.PrimalStates;
|
import nmd.primal.core.api.PrimalStates;
|
||||||
import nmd.primal.forgecraft.blocks.PistonBellows;
|
import nmd.primal.forgecraft.blocks.PistonBellows;
|
||||||
import nmd.primal.forgecraft.init.ModItems;
|
import nmd.primal.forgecraft.init.ModItems;
|
||||||
|
import nmd.primal.forgecraft.tiles.TileForge;
|
||||||
import nmd.primal.forgecraft.tiles.TilePistonBellows;
|
import nmd.primal.forgecraft.tiles.TilePistonBellows;
|
||||||
import org.lwjgl.opengl.GL11;
|
import org.lwjgl.opengl.GL11;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by mminaie on 1/7/17.
|
* Created by mminaie on 1/7/17.
|
||||||
*/
|
*/
|
||||||
public class TilePistonBellowsRender extends TileEntitySpecialRenderer<TilePistonBellows> {
|
public class TilePistonBellowsRender extends TileEntitySpecialRenderer<TilePistonBellows>
|
||||||
|
{
|
||||||
private RenderItem renderItem = Minecraft.getMinecraft().getRenderItem();
|
private RenderItem renderItem = Minecraft.getMinecraft().getRenderItem();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void renderTileEntityAt(TilePistonBellows tile, double x, double y, double z, float partialTicks, int destroyStage)
|
public void render(TilePistonBellows tile, double x, double y, double z, float partialTicks, int destroyStage, float alpha)
|
||||||
{
|
{
|
||||||
|
|
||||||
BlockPos pos = tile.getPos();
|
BlockPos pos = tile.getPos();
|
||||||
IBlockState state = this.getWorld().getBlockState(pos);
|
IBlockState state = this.getWorld().getBlockState(pos);
|
||||||
if (state.getBlock() instanceof PistonBellows) {
|
if (state.getBlock() instanceof PistonBellows) {
|
||||||
|
|||||||
@@ -1,13 +1,11 @@
|
|||||||
package nmd.primal.forgecraft.renders.items;
|
package nmd.primal.forgecraft.renders.items;
|
||||||
|
|
||||||
import com.google.common.base.Function;
|
|
||||||
import com.google.common.collect.ImmutableMap;
|
import com.google.common.collect.ImmutableMap;
|
||||||
import net.minecraft.client.renderer.block.model.IBakedModel;
|
import net.minecraft.client.renderer.block.model.IBakedModel;
|
||||||
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
|
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
|
||||||
import net.minecraft.client.renderer.vertex.VertexFormat;
|
import net.minecraft.client.renderer.vertex.VertexFormat;
|
||||||
import net.minecraft.util.ResourceLocation;
|
import net.minecraft.util.ResourceLocation;
|
||||||
import net.minecraftforge.client.model.IModel;
|
import net.minecraftforge.client.model.IModel;
|
||||||
import net.minecraftforge.client.model.IModelCustomData;
|
|
||||||
import net.minecraftforge.common.model.IModelState;
|
import net.minecraftforge.common.model.IModelState;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
@@ -15,8 +13,8 @@ import java.util.Collection;
|
|||||||
/**
|
/**
|
||||||
* Created by mminaie on 3/8/17.
|
* Created by mminaie on 3/8/17.
|
||||||
*/
|
*/
|
||||||
public class ModelPickaxe implements IModel, IModelCustomData {
|
public class ModelPickaxe implements IModel
|
||||||
|
{
|
||||||
public static final IModel MODEL = new ModelPickaxe();
|
public static final IModel MODEL = new ModelPickaxe();
|
||||||
//private final ResourceLocation resourceHead;
|
//private final ResourceLocation resourceHead;
|
||||||
//private final ResourceLocation resourceHandle;
|
//private final ResourceLocation resourceHandle;
|
||||||
@@ -37,7 +35,7 @@ public class ModelPickaxe implements IModel, IModelCustomData {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IBakedModel bake(IModelState state, VertexFormat format, Function<ResourceLocation, TextureAtlasSprite> bakedTextureGetter) {
|
public IBakedModel bake(IModelState state, VertexFormat format, java.util.function.Function<ResourceLocation, TextureAtlasSprite> bakedTextureGetter) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user