-
-
Save EliteForges/11e8415aa67f002ccdf1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.eliteforges.gpm.items.gnome; | |
import net.minecraft.client.renderer.texture.IconRegister; | |
import net.minecraft.item.EnumToolMaterial; | |
import net.minecraft.item.ItemAxe; | |
import com.eliteforges.gpm.Main; | |
import com.eliteforges.gpm.util.GnomeyTabs; | |
import cpw.mods.fml.common.registry.LanguageRegistry; | |
import cpw.mods.fml.relauncher.Side; | |
import cpw.mods.fml.relauncher.SideOnly; | |
public class AxeOnyx | |
extends ItemAxe | |
{ | |
public AxeOnyx(int par1, EnumToolMaterial par2EnumToolMaterial) | |
{ | |
super(par1, par2EnumToolMaterial); | |
setMaxStackSize(1); | |
setCreativeTab(GnomeyTabs.tabGPM); | |
setUnlocalizedName("axeOnyx"); | |
} | |
@SideOnly(Side.CLIENT) | |
public void registerIcons(IconRegister iconRegister) | |
{ | |
this.itemIcon = iconRegister.registerIcon("gpm2:axeOnyx"); | |
LanguageRegistry.addName(Main.axeOnyx, "Gnome's Axe"); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.eliteforges.gpm; | |
import ic2.api.item.Items; | |
import ic2.api.recipe.RecipeInputItemStack; | |
import ic2.api.recipe.Recipes; | |
import net.minecraft.block.Block; | |
import net.minecraft.creativetab.CreativeTabs; | |
import net.minecraft.item.EnumArmorMaterial; | |
import net.minecraft.item.EnumToolMaterial; | |
import net.minecraft.item.Item; | |
import net.minecraft.item.ItemStack; | |
import net.minecraftforge.common.EnumHelper; | |
import net.minecraftforge.oredict.OreDictionary; | |
import com.eliteforges.gpm.items.Logo; | |
import com.eliteforges.gpm.items.LogoAnuk; | |
import com.eliteforges.gpm.items.LogoChimi; | |
import com.eliteforges.gpm.items.LogoElite; | |
import com.eliteforges.gpm.items.LogoMedieval; | |
import com.eliteforges.gpm.items.StoneArch; | |
import com.eliteforges.gpm.items.StoneCarpOak; | |
import com.eliteforges.gpm.items.StoneCobble; | |
import com.eliteforges.gpm.items.StoneFarm; | |
import com.eliteforges.gpm.items.StoneGlass; | |
import com.eliteforges.gpm.items.StoneSand; | |
import com.eliteforges.gpm.items.StoneTerra; | |
import com.eliteforges.gpm.items.collectible.GemCompact; | |
import com.eliteforges.gpm.items.collectible.GemCompactBlood; | |
import com.eliteforges.gpm.items.collectible.GemCompactHealth; | |
import com.eliteforges.gpm.items.collectible.GemCompactMagic; | |
import com.eliteforges.gpm.items.collectible.GemCompactNature; | |
import com.eliteforges.gpm.items.collectible.GemCompactOnyx; | |
import com.eliteforges.gpm.items.collectible.GemCompactStatic; | |
import com.eliteforges.gpm.items.collectible.GemCompactWater; | |
import com.eliteforges.gpm.items.econ.CoinAlloy; | |
import com.eliteforges.gpm.items.econ.CoinAlloySmall; | |
import com.eliteforges.gpm.items.econ.CoinBag; | |
import com.eliteforges.gpm.items.econ.CoinBronze; | |
import com.eliteforges.gpm.items.econ.CoinBronzeSmall; | |
import com.eliteforges.gpm.items.econ.CoinGold; | |
import com.eliteforges.gpm.items.econ.CoinGoldSmall; | |
import com.eliteforges.gpm.items.econ.CoinSilver; | |
import com.eliteforges.gpm.items.econ.CoinSilverSmall; | |
import com.eliteforges.gpm.items.econ.CoinStack; | |
import com.eliteforges.gpm.items.enhanced.AxeImperial; | |
import com.eliteforges.gpm.items.enhanced.Hatchet; | |
import com.eliteforges.gpm.items.enhanced.HoeImperial; | |
import com.eliteforges.gpm.items.enhanced.PickImperial; | |
import com.eliteforges.gpm.items.enhanced.SpadeImperial; | |
import com.eliteforges.gpm.items.enhanced.SwordImperial; | |
import com.eliteforges.gpm.items.gnome.AxeOnyx; | |
import com.eliteforges.gpm.items.gnome.HoeOnyx; | |
import com.eliteforges.gpm.items.gnome.KitCrafting; | |
import com.eliteforges.gpm.items.gnome.Mallet; | |
import com.eliteforges.gpm.items.gnome.PickOnyx; | |
import com.eliteforges.gpm.items.gnome.Shiv; | |
import com.eliteforges.gpm.items.gnome.ShivOnyx; | |
import com.eliteforges.gpm.items.gnome.SpadeOnyx; | |
import com.eliteforges.gpm.items.magic.AlcCoal; | |
import com.eliteforges.gpm.items.magic.AlcDust; | |
import com.eliteforges.gpm.items.magic.MatterDark; | |
import com.eliteforges.gpm.items.magic.MatterRed; | |
import com.eliteforges.gpm.items.magic.MatterWhite; | |
import com.eliteforges.gpm.items.magic.PStone; | |
import com.eliteforges.gpm.items.magic.PowerKatar; | |
import com.eliteforges.gpm.items.magic.PowerStar; | |
import com.eliteforges.gpm.items.magic.TStone; | |
import com.eliteforges.gpm.items.materials.AdvGoldAlloy; | |
import com.eliteforges.gpm.items.materials.CoreBlaze; | |
import com.eliteforges.gpm.items.materials.GemShiny; | |
import com.eliteforges.gpm.items.materials.GemShinyFragment; | |
import com.eliteforges.gpm.items.materials.GemShinyMarble; | |
import com.eliteforges.gpm.items.materials.MeshMineral; | |
import com.eliteforges.gpm.items.materials.MeshMineralRefined; | |
import com.eliteforges.gpm.items.materials.Minerals; | |
import com.eliteforges.gpm.items.materials.MixedMetal; | |
import com.eliteforges.gpm.items.materials.OnyxIngot; | |
import com.eliteforges.gpm.items.materials.OnyxMesh; | |
import com.eliteforges.gpm.items.rings.BonemealRing; | |
import com.eliteforges.gpm.items.rings.DMring; | |
import com.eliteforges.gpm.items.rings.FlyingRing; | |
import com.eliteforges.gpm.items.rings.RMring; | |
import com.eliteforges.gpm.items.rings.WMring; | |
import com.eliteforges.gpm.items.slycooper.CaneCool; | |
import com.eliteforges.gpm.items.slycooper.CaneGold; | |
import com.eliteforges.gpm.items.slycooper.CaneIron; | |
import com.eliteforges.gpm.items.slycooper.CanePower; | |
import com.eliteforges.gpm.items.slycooper.CaneSword; | |
import com.eliteforges.gpm.items.slycooper.CaneWood; | |
import com.eliteforges.gpm.items.slycooper.hookGold; | |
import com.eliteforges.gpm.items.slycooper.hookIron; | |
import com.eliteforges.gpm.items.slycooper.hookWood; | |
import com.eliteforges.gpm.items.tools.DMaxe; | |
import com.eliteforges.gpm.items.tools.DMhoe; | |
import com.eliteforges.gpm.items.tools.DMpick; | |
import com.eliteforges.gpm.items.tools.DMspade; | |
import com.eliteforges.gpm.items.tools.DMsword; | |
import com.eliteforges.gpm.items.tools.RMaxe; | |
import com.eliteforges.gpm.items.tools.RMhoe; | |
import com.eliteforges.gpm.items.tools.RMpick; | |
import com.eliteforges.gpm.items.tools.RMspade; | |
import com.eliteforges.gpm.items.tools.RMsword; | |
import com.eliteforges.gpm.items.tools.WMaxe; | |
import com.eliteforges.gpm.items.tools.WMhoe; | |
import com.eliteforges.gpm.items.tools.WMpick; | |
import com.eliteforges.gpm.items.tools.WMspade; | |
import com.eliteforges.gpm.items.tools.WMsword; | |
import com.eliteforges.gpm.util.GnomeyTabs; | |
import com.eliteforges.gpm.util.handlers.IDungeonHooks; | |
import com.eliteforges.gpm.util.handlers.IKitHandler; | |
import com.eliteforges.gpm.util.handlers.IMalletHandler; | |
import com.eliteforges.gpm.util.handlers.IShivHandler; | |
import com.eliteforges.gpm.util.handlers.IpStoneHandler; | |
import cpw.mods.fml.common.Mod; | |
import cpw.mods.fml.common.event.FMLInitializationEvent; | |
import cpw.mods.fml.common.event.FMLPostInitializationEvent; | |
import cpw.mods.fml.common.event.FMLPreInitializationEvent; | |
import cpw.mods.fml.common.network.NetworkMod; | |
import cpw.mods.fml.common.registry.GameRegistry; | |
@Mod(modid=References.MODID, name=References.NAME, version=References.VERSION) | |
@NetworkMod(clientSideRequired=true, serverSideRequired=false) | |
public class Main | |
{ | |
public static EnumToolMaterial matterPowerEnum = EnumHelper.addToolMaterial("matterPowerEnum", 3, -1, 18.6F, 20.0F, 20); | |
public static EnumToolMaterial matterRedEnum = EnumHelper.addToolMaterial("matterRedEnum", 3, -1, 14.6F, 14.0F, 20); | |
public static EnumToolMaterial matterDarkEnum = EnumHelper.addToolMaterial("matterDarkEnum", 3, -1, 10.6F, 10.0F, 20); | |
public static EnumToolMaterial matterWhiteEnum = EnumHelper.addToolMaterial("matterWhiteEnum", 3, -1, 8.0F, 8.0F, 20); | |
public static EnumToolMaterial canePowerEnum = EnumHelper.addToolMaterial("canePowerEnum", 3, -1, 14.0F, 4.0F, 0); | |
public static EnumToolMaterial caneGoldEnum = EnumHelper.addToolMaterial("caneGoldEnum", 3, -1, 14.6F, 3.5F, 0); | |
public static EnumToolMaterial caneIronEnum = EnumHelper.addToolMaterial("caneIronEnum", 3, 512, 10.6F, 3.0F, 20); | |
public static EnumToolMaterial caneWoodEnum = EnumHelper.addToolMaterial("caneWoodEnum", 3, 128, 8.0F, 1.0F, 20); | |
public static EnumToolMaterial refinedIronEnum = EnumHelper.addToolMaterial("refinedIronEnum", 3, 842, 6.5F, 3.5F, 11); | |
public static EnumToolMaterial onyxEnum = EnumHelper.addToolMaterial("onyxEnum", 3, -1, 6.0F, 3.0F, 22); | |
public static EnumToolMaterial ironEnum = EnumHelper.addToolMaterial("ironEnum", 2, 127, 12.0F, 2.0F, 25); | |
public static EnumArmorMaterial exoSaint = EnumHelper.addArmorMaterial("exoSaint", 33, new int[] { 5, 14, 8, 5 }, 8); | |
//Last used ID: 16609 (hoeEntropy) | |
//Blocks | |
//Materials | |
public static final Item gemShinyFragment = new GemShinyFragment(16500); | |
public static final Item gemShinyMarble = new GemShinyMarble(16501); | |
public static final Item gemShiny = new GemShiny(16502); | |
public static final Item minerals = new Minerals(16503); | |
public static final Item advGoldAlloy = new AdvGoldAlloy(16504); | |
public static final Item mixedMetalIngot = new MixedMetal(16505); | |
public static final Item meshOnyx = new OnyxMesh(16506); | |
public static final Item ingotOnyx = new OnyxIngot(16508); | |
public static final Item coreBlaze = new CoreBlaze(16509); | |
public static final Item meshMineral = new MeshMineral(16510); | |
public static final Item meshMineralRefined = new MeshMineralRefined(16511); | |
//Parts | |
public static final Item hookWood = new hookWood(16512); | |
public static final Item hookIron = new hookIron(16513); | |
public static final Item hookGold = new hookGold(16514); | |
//Crafting Tools | |
public static final Item mallet = new Mallet(16515); | |
public static final Item kitCrafting = new KitCrafting(16516); | |
public static final Item shiv = new Shiv(16517, ironEnum); | |
//Economy | |
public static final Item coinAlloy = new CoinAlloy(16519); | |
public static final Item coinAlloySmall = new CoinAlloySmall(16520); | |
public static final Item coinGold = new CoinGold(16521); | |
public static final Item coinGoldSmall = new CoinGoldSmall(16522); | |
public static final Item coinSilver = new CoinSilver(16523); | |
public static final Item coinSilverSmall = new CoinSilverSmall(16524); | |
public static final Item coinBronze = new CoinBronze(16525); | |
public static final Item coinBronzeSmall = new CoinBronzeSmall(16526); | |
public static final Item coinStack = new CoinStack(16592); | |
public static final Item coinBag = new CoinBag(16593); | |
//Magic | |
public static final Item matterWhite = new MatterWhite(16527); | |
public static final Item matterDark = new MatterDark(16528); | |
public static final Item matterRed = new MatterRed(16529); | |
public static final Item powerStar = new PowerStar(16530, matterPowerEnum); | |
public static final Item powerKatar = new PowerKatar(16531, matterPowerEnum); | |
public static final Item alcCoal = new AlcCoal(16532); | |
public static final Item alcDust = new AlcDust(16533); | |
public static final Item pStone = new PStone(16534); | |
public static final Item tStone = new TStone(16535); | |
//Rings | |
public static final Item wmRing = new WMring(16536); | |
public static final Item dmRing = new DMring(16537); | |
public static final Item rmRing = new RMring(16538); | |
public static final Item ringFly = new FlyingRing(16539); | |
public static final Item ringMeal = new BonemealRing(16540); | |
//Tools | |
//Magic | |
public static final Item wmPick = new WMpick(16541, matterWhiteEnum); | |
public static final Item wmAxe = new WMaxe(16542, matterWhiteEnum); | |
public static final Item wmSword = new WMsword(16543, matterWhiteEnum); | |
public static final Item wmSpade = new WMspade(16544, matterWhiteEnum); | |
public static final Item wmHoe = new WMhoe(16545, matterWhiteEnum); | |
public static final Item dmPick = new DMpick(16546, matterDarkEnum); | |
public static final Item dmAxe = new DMaxe(16547, matterDarkEnum); | |
public static final Item dmSword = new DMsword(16548, matterDarkEnum); | |
public static final Item dmSpade = new DMspade(16549, matterDarkEnum); | |
public static final Item dmHoe = new DMhoe(16550, matterDarkEnum); | |
public static final Item rmPick = new RMpick(16551, matterRedEnum); | |
public static final Item rmAxe = new RMaxe(16552, matterRedEnum); | |
public static final Item rmSword = new RMsword(16553, matterRedEnum); | |
public static final Item rmSpade = new RMspade(16554, matterRedEnum); | |
public static final Item rmHoe = new RMhoe(16555, matterRedEnum); | |
//Sly Cooper | |
public static final Item canegold = new CaneGold(16556, caneGoldEnum); | |
public static final Item caneiron = new CaneIron(16557, caneIronEnum); | |
public static final Item canewood = new CaneWood(16558, caneWoodEnum); | |
public static final Item caneSword = new CaneSword(16559, caneGoldEnum); | |
public static final Item canePower = new CanePower(16560, canePowerEnum); | |
public static final Item caneCool = new CaneCool(16591, caneGoldEnum); | |
//Gnomey | |
public static final Item pickOnyx = new PickOnyx(16561, onyxEnum); | |
public static final Item axeOnyx = new AxeOnyx(16562, onyxEnum); | |
public static final Item spadeOnyx = new SpadeOnyx(16563, onyxEnum); | |
public static final Item hoeOnyx = new HoeOnyx(16564, onyxEnum); | |
public static final Item shivOnyx = new ShivOnyx(16565, onyxEnum); | |
public static final Item hatchet = new Hatchet(16566, ironEnum); | |
//Specialized | |
//Imperial | |
public static final Item pickImperial = new PickImperial(16595, refinedIronEnum); | |
public static final Item axeImperial = new AxeImperial(16596, refinedIronEnum); | |
public static final Item swordImperial = new SwordImperial(16597, refinedIronEnum); | |
public static final Item spadeImperial = new SpadeImperial(16598, refinedIronEnum); | |
public static final Item hoeImperial = new HoeImperial(16599, refinedIronEnum); | |
//Rebel | |
//Entropy | |
//Collectibles | |
public static final Item gemCompactFire = new GemCompact(16572); | |
public static final Item gemCompactOnyx = new GemCompactOnyx(16573); | |
public static final Item gemCompactBlood = new GemCompactBlood(16574); | |
public static final Item gemCompactMagic = new GemCompactMagic(16575); | |
public static final Item gemCompactWater = new GemCompactWater(16576); | |
public static final Item gemCompactStatic = new GemCompactStatic(16577); | |
public static final Item gemCompactNature = new GemCompactNature(16578); | |
public static final Item gemCompactHealth = new GemCompactHealth(16579); | |
//Creative Only | |
public static final Item stoneArch = new StoneArch(16580); | |
public static final Item stoneCobble = new StoneCobble(16581); | |
public static final Item stoneFarm = new StoneFarm(16582); | |
public static final Item stoneGrass = new StoneTerra(16583); | |
public static final Item stoneGlass = new StoneGlass(16584); | |
public static final Item stoneSand = new StoneSand(16585); | |
public static final Item stoneCarpOak = new StoneCarpOak(16586); | |
//Invisible Items | |
public static final Item logoGnome = new Logo(16999); | |
public static final Item logoElite = new LogoElite(16587); | |
public static final Item logoAnuk = new LogoAnuk(16588); | |
public static final Item logoChimi = new LogoChimi(16589); | |
public static final Item logoMedieval = new LogoMedieval(16590); | |
//#######[ Forge Mod Loader Initializations ]######### | |
@Mod.Instance("gpm2") | |
public static Main instance; | |
@Mod.EventHandler | |
public void preInit(FMLPreInitializationEvent event) {} | |
@Mod.EventHandler | |
public void load(FMLInitializationEvent event) | |
{ | |
//OreDictionary | |
OreDictionary.registerOre("ingotCopper", new ItemStack(gemShiny)); | |
//My Recipes// | |
@Mod.EventHandler | |
public void postInit(FMLPostInitializationEvent event) {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment