Jump to content

Duplicating mob/Null pointer exception.


CJCutrone9

Recommended Posts

M'kay... So, I tried registering an entity, it went fine. Except for when I logged off, and back on, it got cloned twice, and immediately started fighting it's clones. xD

 

So, I went and thought "Hey, maybe I registered it wrong!" So Instead of registering it with a global ID, I registered it with a register mod entity. And that gives me this error:

 

 

 

---- Minecraft Crash Report ----

// Daisy, daisy...

 

Time: 1/3/14 5:58 PM

Description: Initializing game

 

java.lang.NullPointerException

at cpw.mods.fml.common.registry.EntityRegistry.doModEntityRegistration(EntityRegistry.java:164)

at cpw.mods.fml.common.registry.EntityRegistry.registerModEntity(EntityRegistry.java:151)

at net.CJCutrone.LegendofZelda.common.LegendofZelda.<init>(LegendofZelda.java:520)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

at java.lang.reflect.Constructor.newInstance(Unknown Source)

at java.lang.Class.newInstance(Unknown Source)

at cpw.mods.fml.common.ILanguageAdapter$JavaAdapter.getNewInstance(ILanguageAdapter.java:174)

at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:518)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:201)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:112)

at cpw.mods.fml.common.Loader.loadMods(Loader.java:511)

at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:183)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:473)

at net.minecraft.client.Minecraft.run(Minecraft.java:808)

at net.minecraft.client.main.Main.main(Main.java:93)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)

at net.minecraft.launchwrapper.Launch.main(Launch.java:27)

 

 

A detailed walkthrough of the error, its code path and all known details is as follows:

---------------------------------------------------------------------------------------

 

-- Head --

Stacktrace:

at cpw.mods.fml.common.registry.EntityRegistry.doModEntityRegistration(EntityRegistry.java:164)

at cpw.mods.fml.common.registry.EntityRegistry.registerModEntity(EntityRegistry.java:151)

at net.CJCutrone.LegendofZelda.common.LegendofZelda.<init>(LegendofZelda.java:520)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

at java.lang.reflect.Constructor.newInstance(Unknown Source)

at java.lang.Class.newInstance(Unknown Source)

at cpw.mods.fml.common.ILanguageAdapter$JavaAdapter.getNewInstance(ILanguageAdapter.java:174)

at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:518)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:201)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:112)

at cpw.mods.fml.common.Loader.loadMods(Loader.java:511)

at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:183)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:473)

 

-- Initialization --

Details:

Stacktrace:

at net.minecraft.client.Minecraft.run(Minecraft.java:808)

at net.minecraft.client.main.Main.main(Main.java:93)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)

at net.minecraft.launchwrapper.Launch.main(Launch.java:27)

 

-- System Details --

Details:

Minecraft Version: 1.6.4

Operating System: Windows 7 (x86) version 6.1

Java Version: 1.7.0_25, Oracle Corporation

Java VM Version: Java HotSpot Client VM (mixed mode), Oracle Corporation

Memory: 964187048 bytes (919 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)

JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

Suspicious classes: FML and Forge are installed

IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

FML: MCP v8.11 FML v6.4.38.942 Minecraft Forge 9.11.1.942 5 mods loaded, 5 mods active

mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed

FML{6.4.38.942} [Forge Mod Loader] (bin) Unloaded->Constructed

Forge{9.11.1.942} [Minecraft Forge] (bin) Unloaded->Constructed

LegendofZelda{1.0 Alpha} [The Legend] (bin) Unloaded->Errored

TheGrid{0.1 Alpha} [TheGrid] (bin) Unloaded->Constructed

Launched Version: 1.6

LWJGL: 2.9.0

OpenGL: GeForce GT 630/PCIe/SSE2 GL version 4.2.0, NVIDIA Corporation

Is Modded: Definitely; Client brand changed to 'fml,forge'

Type: Client (map_client.txt)

Resource Pack: Default

Current Language: English (US)

Profiler Position: N/A (disabled)

Vec3 Pool Size: ~~ERROR~~ NullPointerException: null

 

 

 

This is the area I changed:

 

 

 

EntityRegistry.registerModEntity(EntityStoneGolem.class,"Stone Golem", 3,this , 80, 1, true);

EntityRegistry.addSpawn(EntityStoneGolem.class, 10, 2, 4, EnumCreatureType.creature);

EntityRegistry.findGlobalUniqueEntityId();

registerEntityEgg(EntityStoneGolem.class, 0x4ffffff, 0x0033FF);

 

RenderingRegistry.registerEntityRenderingHandler(EntityStoneGolem.class, new RenderEntityStoneGolem(new StoneGolem(), 0.5F));

 

EntityRegistry.registerModEntity(EntityTamedSG.class,"Tamed Stone Golem", 4, this, 80, 3, true);

EntityRegistry.addSpawn(EntityTamedSG.class, 10, 2, 4, EnumCreatureType.creature);

EntityRegistry.findGlobalUniqueEntityId();

registerEntityEgg(EntityTamedSG.class, 0x469ffff, 0x0033FF);

 

RenderingRegistry.registerEntityRenderingHandler(EntityTamedSG.class, new RenderEntityTamedGolem(new TStoneGolem(), 0.5F));

 

EntityRegistry.registerModEntity(EntityBF.class,"BF", 5, this, 80, 3, true);

EntityRegistry.addSpawn(EntityBF.class, 10, 2, 4, EnumCreatureType.ambient);

EntityRegistry.findGlobalUniqueEntityId();

registerEntityEgg(EntityBF.class, 0x469ffff, 0x9993FF);

 

RenderingRegistry.registerEntityRenderingHandler(EntityBF.class, new RenderEntityButterfly());

 

 

 

This is the whole class:

 

 

 

package net.CJCutrone.LegendofZelda.common;

 

import java.sql.Array;

 

import net.CJCutrone.LegendofZelda.Dimension.*;

import net.CJCutrone.LegendofZelda.blocks.*;

import net.CJCutrone.LegendofZelda.blocks.Barrel;

import net.CJCutrone.LegendofZelda.entity.Entity.EntityBF;

import net.CJCutrone.LegendofZelda.entity.Entity.EntityStoneGolem;

import net.CJCutrone.LegendofZelda.entity.Entity.EntityTamedSG;

import net.CJCutrone.LegendofZelda.entity.Entity.ModelBF;

import net.CJCutrone.LegendofZelda.entity.Entity.RenderEntityButterfly;

import net.CJCutrone.LegendofZelda.entity.Entity.RenderEntityStoneGolem;

import net.CJCutrone.LegendofZelda.entity.Entity.RenderEntityTamedGolem;

import net.CJCutrone.LegendofZelda.entity.Entity.StoneGolem;

import net.CJCutrone.LegendofZelda.entity.Entity.TStoneGolem;

 

 

import net.CJCutrone.LegendofZelda.items.*;

import net.CJCutrone.LegendofZelda.render.Items.*;

import net.CJCutrone.LegendofZelda.render.blocks.*;

import net.CJCutrone.LegendofZelda.tabs.*;

 

import net.minecraft.block.Block;

import net.minecraft.block.material.Material;

import net.minecraft.client.model.ModelIronGolem;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.enchantment.Enchantment;

import net.minecraft.entity.Entity;

import net.minecraft.entity.EntityEggInfo;

import net.minecraft.entity.EntityList;

import net.minecraft.entity.EnumCreatureType;

import net.minecraft.item.EnumArmorMaterial;

import net.minecraft.item.EnumToolMaterial;

import net.minecraft.item.Item;

import net.minecraft.item.ItemStack;

import net.minecraft.src.ModLoader;

import net.minecraft.world.biome.BiomeGenBase;

import net.minecraftforge.client.MinecraftForgeClient;

import net.minecraftforge.common.DimensionManager;

import net.minecraftforge.common.EnumHelper;

import net.minecraftforge.common.MinecraftForge;

import net.minecraftforge.oredict.OreDictionary;

import cpw.mods.fml.client.registry.ClientRegistry;

import cpw.mods.fml.client.registry.RenderingRegistry;

import cpw.mods.fml.common.Mod;

import cpw.mods.fml.common.SidedProxy;

import cpw.mods.fml.common.event.FMLServerStartingEvent;

import cpw.mods.fml.common.registry.EntityRegistry;

import cpw.mods.fml.common.registry.GameRegistry;

import cpw.mods.fml.common.registry.LanguageRegistry;

import cpw.mods.fml.common.registry.TickRegistry;

import cpw.mods.fml.relauncher.Side;

 

@Mod(modid = "LegendofZelda", name = "The Legend", version = "1.0 Alpha")

 

public class LegendofZelda {

 

@SidedProxy(clientSide="net.CJCutrone.LegendofZelda.common.ClientProxy", serverSide="net.CJCutrone.LegendofZelda.common.CommonProxy")

public static CommonProxy proxy;

 

 

public static LegendofZelda modInstance;

//Adds in my things

 

public static int DimID = 4;

 

public static String modid = "legendofzelda";

 

public static final BiomeGenBase LoZBiome = new LegendofZeldaDimensionBiome(31).setTemperatureRainfall(1.2F, 0.9F).setMinMaxHeight(1F, 3f);

public static final BiomeGenBase LoZBDB2 = new LoZDB2(32).setMinMaxHeight(.1F, .2f).setTemperatureRainfall(1.2F, 0.9F);

 

//Adds in Tool Material

public static EnumToolMaterial toolCopper = EnumHelper.addToolMaterial("COPPER", 2, 1000, 5.0F, 1.0F, 10);

public static EnumToolMaterial toolRugite = EnumHelper.addToolMaterial("RUGITE", 3, 5000, 6.0F, 3.0F, 20);

public static EnumToolMaterial toolLegend = EnumHelper.addToolMaterial("LEGENDARY", 3, 5000, 6.0F, 4.0F, 0);

 

 

//Adds in Armor Material

public static EnumArmorMaterial armorLegendary = EnumHelper.addArmorMaterial("LEGEND", 5000, new int[]{3, 7, 6, 3}, 0);

 

//Adds in Creative Tabs

 

public static CreativeTabs LoZBlocks = new LoZBlocksTab(CreativeTabs.getNextID(), "Blocks:The Legend");

public static CreativeTabs LoZItems = new LoZItemsTab(CreativeTabs.getNextID(), "Items:The Legend");

 

//Adds in the Blocks

public static Block LoZSand = new LoZS(249, Material.sand).setUnlocalizedName("LoZSand").setCreativeTab(LoZBlocks);

public static Block LoZRock = new LoZR(253, Material.rock).setUnlocalizedName("LoZRock").setCreativeTab(LoZBlocks);

public static Block LoZGrass = new LoZGrass(LoZRock.blockID - 1, Material.grass).setStepSound(Block.soundGrassFootstep).setUnlocalizedName("LoZGrass").setCreativeTab(LoZBlocks);

public static Block LoZDirt = new LozDirt(LoZGrass.blockID - 1, Material.ground).setUnlocalizedName("LoZDirt").setCreativeTab(LoZBlocks);

public static Block ZeldaGrass = new ZeldaTGrass(250, Material.grass).setStepSound(Block.soundGrassFootstep).setUnlocalizedName("ZeldaTGrass").setCreativeTab(LoZBlocks);

public static Block ZeldaShroomFlip = new ZeldaShroomF(2046, Material.grass).setStepSound(Block.soundGrassFootstep).setUnlocalizedName("ZeldaShroomF").setCreativeTab(LoZBlocks);

public static Block ZeldaShroom = new ZeldaShroom(2047, Material.grass).setStepSound(Block.soundGrassFootstep).setUnlocalizedName("ZeldaShroomF").setCreativeTab(LoZBlocks);

public static Block ZeldaFlower = new ZeldaFlower(2048, Material.grass).setStepSound(Block.soundGrassFootstep).setUnlocalizedName("ZeldaFlower").setCreativeTab(LoZBlocks);

public static Block ZeldaFlowerP = new ZeldaFlowerP(2049, Material.grass).setStepSound(Block.soundGrassFootstep).setUnlocalizedName("ZeldaFlowerP").setCreativeTab(LoZBlocks);

public static Block ZeldaLeavesP = new LoZLeavesPine(2096, Material.leaves).setStepSound(Block.soundGrassFootstep).setUnlocalizedName("Zelda Leaves Pine").setCreativeTab(LoZBlocks);

public static Block LoZPortal = new LoZPortal(2050).setCreativeTab(LoZBlocks);

public static Block LoZSpruceSapling = new LoZSpruceSapling(2051).setUnlocalizedName("LoZSS").setCreativeTab(LoZBlocks);

public static Block LoZPot = new LegendaryPot(2052, Material.rock).setStepSound(Block.soundGlassFootstep).setUnlocalizedName("LoZPot").setCreativeTab(LoZBlocks);

public static Block LoZCopperOre = new LoZCopperOre(2053, Material.rock).setStepSound(Block.soundStoneFootstep).setUnlocalizedName("LoZCopperOre").setCreativeTab(LoZBlocks);

public static Block LoZGoldOre = new LoZGoldOre(2054, Material.rock).setStepSound(Block.soundStoneFootstep).setUnlocalizedName("LoZGoldOre").setCreativeTab(LoZBlocks);

public static Block LoZDiamondOre = new LoZDiamondOre(2055, Material.rock).setStepSound(Block.soundStoneFootstep).setUnlocalizedName("LoZDiamondOre").setCreativeTab(LoZBlocks);

public static Block LoZIronOre = new LoZIronOre(2056, Material.rock).setStepSound(Block.soundStoneFootstep).setUnlocalizedName("LoZIronOre").setCreativeTab(LoZBlocks);

public static Block LoZCoalOre = new LoZCoalOre(2057, Material.rock).setStepSound(Block.soundStoneFootstep).setUnlocalizedName("LoZCoalOre").setCreativeTab(LoZBlocks);

public static Block LoZRedstoneOre = new LoZRedstoneOre(2058, Material.rock).setStepSound(Block.soundStoneFootstep).setUnlocalizedName("LoZRedstoneOre").setCreativeTab(LoZBlocks);

public static Block LoZLapisOre = new LoZLapisOre(2059, Material.rock).setStepSound(Block.soundStoneFootstep).setUnlocalizedName("LoZLapisOre").setCreativeTab(LoZBlocks);

public static Block LoZRugiteOre = new LoZRugite(2060, Material.rock).setStepSound(Block.soundStoneFootstep).setUnlocalizedName("LoZRugite").setCreativeTab(LoZBlocks);

public static Block LoZCobble = new LoZCobble(2061, Material.rock).setStepSound(Block.soundStoneFootstep).setUnlocalizedName("LoZCobble").setCreativeTab(LoZBlocks);

public static Block LoZBricks = new LoZBricks(2062, Material.rock).setStepSound(Block.soundStoneFootstep).setUnlocalizedName("LoZBricks").setCreativeTab(LoZBlocks);

public static Block LoZChisledB = new LoZCB(2063, Material.rock).setStepSound(Block.soundStoneFootstep).setUnlocalizedName("LoZCB").setCreativeTab(LoZBlocks);

public static Block LoZGlass = new LoZGlass(2064, Material.glass).setStepSound(Block.soundGlassFootstep).setUnlocalizedName("LoZGlass").setCreativeTab(LoZBlocks);

public static Block DarkWoodPlanks = new DWP(2065, Material.wood).setStepSound(Block.soundWoodFootstep).setUnlocalizedName("DWP").setCreativeTab(LoZBlocks);

public static Block Crafter = new Crafter(2066, Material.iron).setStepSound(Block.soundAnvilFootstep).setUnlocalizedName("Crafter").setCreativeTab(LoZBlocks);

public static Block LoZMCobble = new LoZMCobble(2067, Material.rock).setStepSound(Block.soundStoneFootstep).setUnlocalizedName("LoZMCobble").setCreativeTab(LoZBlocks);

public static Block LoZRockG = new LoZRG(2068, Material.rock).setUnlocalizedName("LoZRock").setCreativeTab(LoZBlocks);

 

 

public static Block LoZDungeon = new LoZDungeon(2069, Material.rock).setStepSound(Block.soundStoneFootstep).setUnlocalizedName("LoZDungeon").setCreativeTab(LoZBlocks);

public static Block LoZDungeonG = new LoZDungeonG(2070, Material.rock).setStepSound(Block.soundStoneFootstep).setUnlocalizedName("LoZDungeon").setCreativeTab(LoZBlocks);

public static Block LoZCobbleG = new LoZCobbleG(2071, Material.rock).setStepSound(Block.soundStoneFootstep).setUnlocalizedName("LoZCobble").setCreativeTab(LoZBlocks);

public static Block LoZPillar = new LoZPillar(2072, Material.rock).setStepSound(Block.soundStoneFootstep).setUnlocalizedName("LoZPillar").setCreativeTab(LoZBlocks);

 

public static Block LoZDungeonC = new LoZDungeon(2073, Material.rock).setStepSound(Block.soundStoneFootstep).setUnlocalizedName("LoZDungeonC").setCreativeTab(LoZBlocks).setHardness(2F);

public static Block LoZDungeonGC = new LoZDungeonG(2074, Material.rock).setStepSound(Block.soundStoneFootstep).setUnlocalizedName("LoZDungeonC").setCreativeTab(LoZBlocks).setHardness(2F);

public static Block LoZStoneGolemSpawner = new LoZStoneGS(2075, Material.rock).setUnlocalizedName("LoZSGS").setCreativeTab(LoZBlocks);

 

public static Block LoZCloud = new LoZCloud(2076, Material.rock).setUnlocalizedName("LoZCloud").setCreativeTab(LoZBlocks);

 

public static Block LoZDarkWood = new LoZDarkWood(2097, Material.wood).setStepSound(Block.soundWoodFootstep).setUnlocalizedName("LoZDarkWood").setCreativeTab(LoZBlocks);

public static Block LoZDarkLeaves = new LoZDarkLeaves(2098, Material.grass).setStepSound(Block.soundGrassFootstep).setUnlocalizedName("Zelda Leaves DarkWood").setCreativeTab(LoZBlocks);

public static Block LoZDWSapling = new LoZDWSapling(2099).setStepSound(Block.soundGrassFootstep).setUnlocalizedName("LoZDWS").setCreativeTab(LoZBlocks);

public static Block GlowShroomStalk= new LoZShroomStalk(2100, Material.wood).setStepSound(Block.soundPowderFootstep).setUnlocalizedName("LoZDWS").setCreativeTab(LoZBlocks);

public static Block GlowShroomCap = new LoZShroomCap(2101, Material.wood).setStepSound(Block.soundPowderFootstep).setUnlocalizedName("LoZDWS").setCreativeTab(LoZBlocks);

 

public static Block Barrel = new Barrel(2102, Material.wood).setStepSound(Block.soundWoodFootstep).setUnlocalizedName("LoZBarrel").setCreativeTab(LoZBlocks);

 

//Adds in the Items

 

public static Item emeraldShard = new EmeraldShard(3049).setUnlocalizedName("EmeraldShard").setCreativeTab(LoZItems);

public static Item copperIngot = new copperIngot(3050).setUnlocalizedName("CopperIngot").setCreativeTab(LoZItems);

public static Item RugiteGem = new RugiteGem(3051).setUnlocalizedName("RugiteGem").setCreativeTab(LoZItems);

 

 

//Adds in "Parchments"

 

public static Item TeleportParchment = new TP(3052).setUnlocalizedName("TP").setCreativeTab(LoZItems);

public static Item AP = new AP(3053).setUnlocalizedName("AP").setCreativeTab(LoZItems);

public static Item LP = new LP(3054).setUnlocalizedName("LP").setCreativeTab(LoZItems);

public static Item HP = new HP(3055).setUnlocalizedName("HP").setCreativeTab(LoZItems);

public static Item FP = new FP(3056).setUnlocalizedName("FP").setCreativeTab(LoZItems);

//Registers Tools

 

public static Item copperPick = new copperPick(3100, toolCopper).setUnlocalizedName("CopperPick").setCreativeTab(LoZItems);

public static Item copperSword = new copperSword(3101, toolCopper).setUnlocalizedName("CopperSword").setCreativeTab(LoZItems);

public static Item copperShovel = new copperShovel(3102, toolCopper).setUnlocalizedName("CopperShovel").setCreativeTab(LoZItems);

public static Item copperAxe = new copperAxe(3103, toolCopper).setUnlocalizedName("CopperAxe").setCreativeTab(LoZItems);

 

public static Item rugitePick = new rugitePick(3104, toolRugite).setUnlocalizedName("rugitePick").setCreativeTab(LoZItems);

public static Item rugiteSword = new rugiteSword(3105, toolRugite).setUnlocalizedName("rugiteSword").setCreativeTab(LoZItems);

public static Item rugiteShovel = new rugiteShovel(3106, toolRugite).setUnlocalizedName("rugiteShovel").setCreativeTab(LoZItems);

public static Item rugiteAxe = new rugiteAxe(3107, toolRugite).setUnlocalizedName("rugiteAxe").setCreativeTab(LoZItems);

 

public static Item TestSword = new TestSword(3108, toolLegend).setUnlocalizedName("swordL").setCreativeTab(LoZItems);

public static Item TestKnife = new TestKnife(3109, toolLegend).setUnlocalizedName("knifeL").setCreativeTab(LoZItems);

 

 

public LegendofZelda() {

 

LanguageRegistry.addName(Barrel, "Barrel");

GameRegistry.registerBlock(Barrel, "Barrel");

MinecraftForge.setBlockHarvestLevel(Barrel, "axe", 1);

GameRegistry.addRecipe(new ItemStack(Barrel, 4), new Object[]{

"wpw", "p p", "wpw", 'w', Block.planks, 'p', Block.wood

});

 

LanguageRegistry.addName(DarkWoodPlanks, "DarkWood Planks");

GameRegistry.registerBlock(DarkWoodPlanks, "DarkWood Planks");

MinecraftForge.setBlockHarvestLevel(DarkWoodPlanks, "axe", 1);

 

LanguageRegistry.addName(LoZCloud, "White Rock");

GameRegistry.registerBlock(LoZCloud, "White Rock");

MinecraftForge.setBlockHarvestLevel(LoZCloud, "pickaxe", 1);

 

LanguageRegistry.addName(LoZGlass, "Glass");

GameRegistry.registerBlock(LoZGlass, "Glass");

MinecraftForge.setBlockHarvestLevel(LoZGlass, "", 1);

    GameRegistry.addShapedRecipe(new ItemStack(LoZGlass, 2), new Object[]{

" r ", "rgr", " r ", 'g', Block.glass, 'r' ,Item.stick});

   

    LanguageRegistry.addName(Crafter, "Crafter");

GameRegistry.registerBlock(Crafter, "Crafter");

MinecraftForge.setBlockHarvestLevel(Crafter, "pickaxe", 2);

    GameRegistry.addShapedRecipe(new ItemStack(Crafter, 1), new Object[]{

" r ", "rgr", " r ", 'g', Block.blockIron, 'r' , Block.workbench});

   

    LanguageRegistry.addName(LoZPillar, "Pillar");

GameRegistry.registerBlock(LoZPillar, "Pillar");

MinecraftForge.setBlockHarvestLevel(LoZPillar, "pickaxe", 1);

 

LanguageRegistry.addName(LoZStoneGolemSpawner, "Stone Golem Spawner");

GameRegistry.registerBlock(LoZStoneGolemSpawner, "Stone Golem Spawner");

MinecraftForge.setBlockHarvestLevel(LoZStoneGolemSpawner, "pickaxe", 1);

 

    LanguageRegistry.addName(LoZCobbleG, "CobbleStone");

GameRegistry.registerBlock(LoZCobbleG, "CobbleStone");

MinecraftForge.setBlockHarvestLevel(LoZDungeonG, "pickaxe", 1);

   

LanguageRegistry.addName(LoZDungeonGC, "DungeonC");

GameRegistry.registerBlock(LoZDungeonGC, "DungeonC");

MinecraftForge.setBlockHarvestLevel(LoZDungeonGC, "pickaxe", 1);

 

LanguageRegistry.addName(LoZDungeonC, "Crafted Dungeon Stone");

GameRegistry.registerBlock(LoZDungeonC, "Crafted Dungeon Stone");

MinecraftForge.setBlockHarvestLevel(LoZDungeonC, "pickaxe", 1);

 

    LanguageRegistry.addName(LoZDungeonG, "Dungeon");

GameRegistry.registerBlock(LoZDungeonG, "Dungeon");

MinecraftForge.setBlockHarvestLevel(LoZDungeonG, "pickaxe", -1);

 

LanguageRegistry.addName(LoZDungeon, "Dungeon Stone");

GameRegistry.registerBlock(LoZDungeon, "Dungeon Stone");

MinecraftForge.setBlockHarvestLevel(LoZDungeon, "pickaxe", 1);

 

    LanguageRegistry.addName(LoZRockG, "Roc");

GameRegistry.registerBlock(LoZRockG, "Roc");

MinecraftForge.setBlockHarvestLevel(LoZRockG, "pickaxe", 1);

 

LanguageRegistry.addName(LoZRock, "Rock");

GameRegistry.registerBlock(LoZRock, "Rock");

MinecraftForge.setBlockHarvestLevel(LoZRock, "pickaxe", 1);

GameRegistry.addSmelting(LegendofZelda.LoZCobble.blockID, new ItemStack(LegendofZelda.LoZRock, 1), 1F);

 

LanguageRegistry.addName(LoZMCobble, "Mossy Cobble Stone");

GameRegistry.registerBlock(LoZMCobble, "Mossy Cobble Stone");

MinecraftForge.setBlockHarvestLevel(LoZMCobble, "pickaxe", 1);

 

LanguageRegistry.addName(LoZCobble, "Cobble Stone");

GameRegistry.registerBlock(LoZCobble, "Cobble Stone");

MinecraftForge.setBlockHarvestLevel(LoZCobble, "pickaxe", 1);

GameRegistry.addRecipe(new ItemStack(Block.furnaceIdle, 1), new Object[]{

"rrr", "r r", "rrr", 'r', LegendofZelda.LoZCobble});

 

LanguageRegistry.addName(LoZBricks, "Bricks");

GameRegistry.registerBlock(LoZBricks, "Bricks");

MinecraftForge.setBlockHarvestLevel(LoZBricks, "pickaxe", 1);

GameRegistry.addRecipe(new ItemStack(LoZBricks, 4), new Object[]{

"rr ", "rr ", 'r', LoZRock});

 

LanguageRegistry.addName(LoZChisledB, "Chisled Bricks");

GameRegistry.registerBlock(LoZChisledB, "Chisled Bricks");

MinecraftForge.setBlockHarvestLevel(LoZChisledB, "pickaxe", 1);

GameRegistry.addRecipe(new ItemStack(LoZChisledB, 4), new Object[]{

"rr ", "rr ", 'r', LoZBricks});

 

LanguageRegistry.addName(LoZCopperOre, "Copper Ore");

GameRegistry.registerBlock(LoZCopperOre, "Copper Ore");

MinecraftForge.setBlockHarvestLevel(LoZCopperOre, "pickaxe", 1);

 

LanguageRegistry.addName(LoZGoldOre, "Gold Ore");

GameRegistry.registerBlock(LoZGoldOre, "Gold Ore");

MinecraftForge.setBlockHarvestLevel(LoZGoldOre, "pickaxe", 2);

 

LanguageRegistry.addName(LoZIronOre, "Iron Ore");

GameRegistry.registerBlock(LoZIronOre, "Iron Ore");

MinecraftForge.setBlockHarvestLevel(LoZIronOre, "pickaxe", 1);

 

LanguageRegistry.addName(LoZCoalOre, "Coal Ore");

GameRegistry.registerBlock(LoZCoalOre, "Coal Ore");

MinecraftForge.setBlockHarvestLevel(LoZCoalOre, "pickaxe", 0);

 

LanguageRegistry.addName(LoZRedstoneOre, "Redstone Ore");

GameRegistry.registerBlock(LoZRedstoneOre, "Redstone Ore");

MinecraftForge.setBlockHarvestLevel(LoZRedstoneOre, "pickaxe", 2);

 

LanguageRegistry.addName(LoZLapisOre, "Lapis Ore");

GameRegistry.registerBlock(LoZLapisOre, "Lapis Ore");

MinecraftForge.setBlockHarvestLevel(LoZLapisOre, "pickaxe", 2);

 

LanguageRegistry.addName(LoZDiamondOre, "Diamond Ore");

GameRegistry.registerBlock(LoZDiamondOre, "Diamond Ore");

MinecraftForge.setBlockHarvestLevel(LoZDiamondOre, "pickaxe", 2);

 

LanguageRegistry.addName(LoZRugiteOre, "Rugite Ore");

GameRegistry.registerBlock(LoZRugiteOre, "Rugite Ore");

MinecraftForge.setBlockHarvestLevel(LoZRugiteOre, "pickaxe", 3);

 

LanguageRegistry.addName(LoZSand, "Sand");

GameRegistry.registerBlock(LoZSand, "Sand");

MinecraftForge.setBlockHarvestLevel(LoZSand, "shovel", 1);

 

LanguageRegistry.addName(LoZGrass, "Grass");

GameRegistry.registerBlock(LoZGrass, "Grass");

MinecraftForge.setBlockHarvestLevel(LoZGrass, "shovel", 1);

 

LanguageRegistry.addName(LoZDarkWood, "Dark Wood");

GameRegistry.registerBlock(LoZDarkWood, "Dark Wood");

MinecraftForge.setBlockHarvestLevel(LoZDarkWood, "axe", 1);

 

LanguageRegistry.addName(ZeldaGrass, "Grass Blades");

GameRegistry.registerBlock(ZeldaGrass, "Grass Blades");

MinecraftForge.setBlockHarvestLevel(ZeldaGrass, "", 0);

 

LanguageRegistry.addName(ZeldaFlower, "Blue Hybiscus");

GameRegistry.registerBlock(ZeldaFlower, "Blue Hybiscus");

MinecraftForge.setBlockHarvestLevel(ZeldaFlower, "", 0);

 

LanguageRegistry.addName(ZeldaFlowerP, "Rojanus");

GameRegistry.registerBlock(ZeldaFlowerP, "Rojanus");

MinecraftForge.setBlockHarvestLevel(ZeldaFlowerP, "", 0);

 

LanguageRegistry.addName(ZeldaShroom, "Glow Shroo");

GameRegistry.registerBlock(ZeldaShroom, "Glow Shroo");

MinecraftForge.setBlockHarvestLevel(ZeldaShroom, "", 0);

 

LanguageRegistry.addName(ZeldaShroomFlip, "Glow Shroom");

GameRegistry.registerBlock(ZeldaShroomFlip, "Glow Shroom");

MinecraftForge.setBlockHarvestLevel(ZeldaShroomFlip, "", 0);

 

LanguageRegistry.addName(LoZSpruceSapling, "Spruce Sapling");

GameRegistry.registerBlock(LoZSpruceSapling, "Spruce Sapling");

MinecraftForge.setBlockHarvestLevel(LoZSpruceSapling, "", 0);

 

LanguageRegistry.addName(LoZDWSapling, "DarkWood Sapling");

GameRegistry.registerBlock(LoZDWSapling, "DarkWood Sapling");

MinecraftForge.setBlockHarvestLevel(LoZDWSapling, "", 0);

 

LanguageRegistry.addName(LoZDirt, "Dirt");

GameRegistry.registerBlock(LoZDirt, "Dirt");

MinecraftForge.setBlockHarvestLevel(LoZDirt, "shovel", 0);

 

LanguageRegistry.addName(ZeldaLeavesP, "Pine Leaves");

GameRegistry.registerBlock(ZeldaLeavesP, "Pine Leaves");

MinecraftForge.setBlockHarvestLevel(ZeldaLeavesP, "", 0);

 

LanguageRegistry.addName(LoZDarkLeaves, "Dark Wood Leaves");

GameRegistry.registerBlock(LoZDarkLeaves, "Dark Wood Leaves");

MinecraftForge.setBlockHarvestLevel(LoZDarkLeaves, "", 0);

 

LanguageRegistry.addName(GlowShroomStalk, "Glow Shroom Stalk");

GameRegistry.registerBlock(GlowShroomStalk, "Glow Shroom Stalk");

MinecraftForge.setBlockHarvestLevel(GlowShroomStalk, "axe", 1);

 

LanguageRegistry.addName(GlowShroomCap, "Glow Shroom Cap");

GameRegistry.registerBlock(GlowShroomCap, "Glow Shroom Cap");

MinecraftForge.setBlockHarvestLevel(GlowShroomCap, "axe", 1);

 

LanguageRegistry.addName(LoZPortal, "Portal");

GameRegistry.registerBlock(LoZPortal, "Portal");

GameRegistry.addRecipe(new ItemStack(LoZPortal, 1), new Object[]{

"ccc", "cdc", "ccc", 'd', Item.diamond, 'c', Block.cobblestoneMossy

});

 

LanguageRegistry.addName(LoZPot, "Pot");

GameRegistry.registerBlock(LoZPot, "Pot");

MinecraftForge.setBlockHarvestLevel(LoZPot, "pickaxe", 1);

GameRegistry.addRecipe(new ItemStack(LoZPot, 1), new Object[]{

"rrr", "rer", "rrr", 'r', LegendofZelda.LoZRock, 'e', LegendofZelda.emeraldShard

});

 

LanguageRegistry.addName(RugiteGem, "Rugite Gem");

GameRegistry.registerItem(RugiteGem, "Rugite Gem");

 

LanguageRegistry.addName(rugitePick, "Rugite Pick");

GameRegistry.registerItem(rugitePick, "Rugite Pick");

ItemStack rp = new ItemStack(rugitePick);

rp.addEnchantment(Enchantment.fortune, 2);

rp.addEnchantment(Enchantment.efficiency, 2);

rp.addEnchantment(Enchantment.unbreaking, 2);

GameRegistry.addRecipe(rp, new Object[]{

"cdc", " s ", " s ", 's', Item.stick, 'c', LegendofZelda.RugiteGem, 'd', Item.diamond});

GameRegistry.addRecipe(new ItemStack(rugitePick, 1), new Object[]{

"ccc", " s ", " s ", 's', Item.stick, 'c', LegendofZelda.RugiteGem});

 

LanguageRegistry.addName(rugiteSword, "Rugite Sword");

GameRegistry.registerItem(rugiteSword, "Rugite Sword");

ItemStack rs = new ItemStack(rugiteSword);

rs.addEnchantment(Enchantment.looting, 2);

rs.addEnchantment(Enchantment.unbreaking, 2);

rs.addEnchantment(Enchantment.sharpness, 2);

GameRegistry.addRecipe(rs, new Object[]{

" c ", " d ", " s ", 's', Item.stick, 'c', LegendofZelda.RugiteGem,'d', Item.diamond});

GameRegistry.addRecipe(new ItemStack(rugiteSword, 1), new Object[]{

" c ", " c ", " s ", 's', Item.stick, 'c', LegendofZelda.RugiteGem});

 

LanguageRegistry.addName(rugiteShovel, "Rugite Shovel");

GameRegistry.registerItem(rugiteShovel, "Rugite Shovel");

ItemStack rsh = new ItemStack(rugiteShovel);

rsh.addEnchantment(Enchantment.silkTouch, 1);

rsh.addEnchantment(Enchantment.unbreaking, 2);

rsh.addEnchantment(Enchantment.efficiency, 2);

GameRegistry.addRecipe(rsh, new Object[]{

" c ", " s ", " d ", 's', Item.stick, 'c', LegendofZelda.RugiteGem, 'd', Item.diamond});

GameRegistry.addRecipe(new ItemStack(rugiteShovel, 1), new Object[]{

" c ", " s ", " s ", 's', Item.stick, 'c', LegendofZelda.RugiteGem});

 

LanguageRegistry.addName(rugiteAxe, "Rugite Axe");

GameRegistry.registerItem(rugiteAxe, "Rugite Axe");

ItemStack rz = new ItemStack(rugiteAxe);

rz.addEnchantment(Enchantment.silkTouch, 2);

rz.addEnchantment(Enchantment.unbreaking, 2);

rz.addEnchantment(Enchantment.efficiency, 2);

GameRegistry.addRecipe(rz, new Object[]{

"cd ", "cs ", " s ", 's', Item.stick, 'c', LegendofZelda.RugiteGem, 'd', Item.diamond});

GameRegistry.addRecipe(new ItemStack(rugiteAxe, 1), new Object[]{

"cc ", "cs ", " s ", 's', Item.stick, 'c', LegendofZelda.RugiteGem});

 

LanguageRegistry.addName(emeraldShard, "Emerald Shard");

GameRegistry.registerItem(emeraldShard, "Emerald Shard");

GameRegistry.addShapelessRecipe(new ItemStack(Item.emerald, 1), emeraldShard, emeraldShard, emeraldShard, emeraldShard, emeraldShard, emeraldShard, emeraldShard, emeraldShard, emeraldShard);

 

LanguageRegistry.addName(copperIngot, "Copper Ingot");

GameRegistry.registerItem(copperIngot, "Copper Ingot");

GameRegistry.addSmelting(LegendofZelda.LoZCopperOre.blockID, new ItemStack(LegendofZelda.copperIngot, 1), 1F);

 

LanguageRegistry.addName(copperPick, "Copper Pick");

GameRegistry.registerItem(copperPick, "Copper Pick");

GameRegistry.addRecipe(new ItemStack(copperPick, 1), new Object[]{

"ccc", " s ", " s ", 's', Item.stick, 'c', LegendofZelda.copperIngot

});

 

LanguageRegistry.addName(copperSword, "Copper Sword");

GameRegistry.registerItem(copperSword, "Copper Sword");

GameRegistry.addRecipe(new ItemStack(copperSword, 1), new Object[]{

" c ", " c ", " s ", 's', Item.stick, 'c', LegendofZelda.copperIngot

});

 

LanguageRegistry.addName(copperShovel, "Copper Shovel");

GameRegistry.registerItem(copperShovel, "Copper Shovel");

GameRegistry.addRecipe(new ItemStack(copperSword, 1), new Object[]{

" c ", " s ", " s ", 's', Item.stick, 'c', LegendofZelda.copperIngot

});

 

LanguageRegistry.addName(copperAxe, "Copper Axe");

GameRegistry.registerItem(copperAxe, "Copper Axe");

GameRegistry.addRecipe(new ItemStack(copperAxe, 1), new Object[]{

"cc ", "cs ", " s ", 's', Item.stick, 'c', LegendofZelda.copperIngot

});

 

LanguageRegistry.addName(TestSword, "Legendary Staff");

GameRegistry.registerItem(TestSword, "Legendary Staff");

 

LanguageRegistry.addName(TestKnife, "Legendary Knife");

GameRegistry.registerItem(TestKnife, "Legendary Knife");

 

LanguageRegistry.addName(TeleportParchment, "Teleport Parchment");

GameRegistry.registerItem(TeleportParchment, "Teleport Parchment");

 

LanguageRegistry.addName(AP, "Arrow Parchment");

GameRegistry.registerItem(AP, "Arrow Parchment");

 

LanguageRegistry.addName(LP, "Lightning Parchment");

GameRegistry.registerItem(LP, "Lightning Parchment");

 

LanguageRegistry.addName(HP, "Healing Parchment");

GameRegistry.registerItem(HP, "Healing Parchment");

 

LanguageRegistry.addName(FP, "Flight Parchment");

GameRegistry.registerItem(FP, "Flight Parchment");

 

/*LanguageRegistry.addName(LegendaryTunic, "Legendary Tunic");

GameRegistry.registerItem(LegendaryTunic, "Legendary Tunic");

 

LanguageRegistry.addName(LegendaryLeggings, "Legendary Leggings");

GameRegistry.registerItem(LegendaryLeggings, "Legendary Leggings");

 

LanguageRegistry.addName(LegendaryBoots, "Legendary Boots");

GameRegistry.registerItem(LegendaryBoots, "Legendary Boots");*/

 

DimensionManager.registerProviderType(DimID, LegendofZeldaWorldProvider.class, true);

DimensionManager.registerDimension(DimID, DimID);

 

MinecraftForge.EVENT_BUS.register(new LoZEventClass());

 

 

GameRegistry.registerTileEntity(TileEntityPot.class, "Pot");

 

GameRegistry.registerWorldGenerator(new WorldGeneratorLoZ());

 

//Registers recipes for vanilla items

 

GameRegistry.addSmelting(LegendofZelda.LoZGoldOre.blockID, new ItemStack(Item.ingotGold, 1), 1F);

GameRegistry.addSmelting(LegendofZelda.LoZIronOre.blockID, new ItemStack(Item.ingotIron, 1), 1F);

GameRegistry.addShapelessRecipe(new ItemStack(DarkWoodPlanks, 4, 1), LoZDarkWood);

 

//Registers renderers

ModLoader.registerTileEntity(TileEntityPot.class, "LoZPot");

ModLoader.registerTileEntity(TileEntityPortal.class, "Portal");

ModLoader.registerTileEntity(TileEntityBarrel.class, "Barrel");

 

 

ClientRegistry.bindTileEntitySpecialRenderer(TileEntityPot.class, new RendererPot());

 

ClientRegistry.bindTileEntitySpecialRenderer(TileEntityPortal.class, new RendererFloatingthing());

 

ClientRegistry.bindTileEntitySpecialRenderer(TileEntityBarrel.class, new RenderBarrel());

 

 

 

MinecraftForgeClient.registerItemRenderer(LegendofZelda.TeleportParchment.itemID, new RenderScroll());

MinecraftForgeClient.registerItemRenderer(LegendofZelda.AP.itemID, new RenderScroll());

MinecraftForgeClient.registerItemRenderer(LegendofZelda.LP.itemID, new RenderScroll());

MinecraftForgeClient.registerItemRenderer(LegendofZelda.HP.itemID, new RenderScroll());

 

MinecraftForgeClient.registerItemRenderer(LegendofZelda.TestSword.itemID, new RenderStaff());

 

MinecraftForgeClient.registerItemRenderer(LegendofZelda.TestKnife.itemID, new RenderKnife());

 

//EntityRegistry.registerGlobalEntityID(EntityStoneGolem.class, "Stone Golem", 3);

 

EntityRegistry.registerModEntity(EntityStoneGolem.class,"Stone Golem", 3,this , 80, 1, true);

EntityRegistry.addSpawn(EntityStoneGolem.class, 10, 2, 4, EnumCreatureType.creature);

EntityRegistry.findGlobalUniqueEntityId();

registerEntityEgg(EntityStoneGolem.class, 0x4ffffff, 0x0033FF);

 

RenderingRegistry.registerEntityRenderingHandler(EntityStoneGolem.class, new RenderEntityStoneGolem(new StoneGolem(), 0.5F));

 

EntityRegistry.registerModEntity(EntityTamedSG.class,"Tamed Stone Golem", 4, this, 80, 3, true);

EntityRegistry.addSpawn(EntityTamedSG.class, 10, 2, 4, EnumCreatureType.creature);

EntityRegistry.findGlobalUniqueEntityId();

registerEntityEgg(EntityTamedSG.class, 0x469ffff, 0x0033FF);

 

RenderingRegistry.registerEntityRenderingHandler(EntityTamedSG.class, new RenderEntityTamedGolem(new TStoneGolem(), 0.5F));

 

EntityRegistry.registerModEntity(EntityBF.class,"BF", 5, this, 80, 3, true);

EntityRegistry.addSpawn(EntityBF.class, 10, 2, 4, EnumCreatureType.ambient);

EntityRegistry.findGlobalUniqueEntityId();

registerEntityEgg(EntityBF.class, 0x469ffff, 0x9993FF);

 

RenderingRegistry.registerEntityRenderingHandler(EntityBF.class, new RenderEntityButterfly());

 

//Registers OreDictionarystuff

 

OreDictionary.registerOre("oreCopper", LoZCopperOre);

 

OreDictionary.registerOre("ingotCopper", new ItemStack(LegendofZelda.copperIngot, 1));

 

OreDictionary.registerOre("oreCoal", LoZCoalOre);

 

OreDictionary.registerOre("oreGold", LoZGoldOre);

 

OreDictionary.registerOre("oreIron", LoZIronOre);

 

OreDictionary.registerOre("oreRedstone", LoZRedstoneOre);

 

OreDictionary.registerOre("oreLapis", LoZLapisOre);

 

OreDictionary.registerOre("oreDiamond", LoZDiamondOre);

 

 

}

 

public static int startEntityID = 300;

public static int getUniqueEntityID(){

do{

startEntityID++;

}while(EntityList.getStringFromID(startEntityID) !=null);

return startEntityID++;

 

}

private void registerEntityEgg(Class< ? extends Entity> entity, int primaryColor, int secondaryColor) {

 

int id = getUniqueEntityID();

EntityList.IDtoClassMapping.put(id, entity);

EntityList.entityEggs.put(id, new EntityEggInfo(id, primaryColor, secondaryColor));

 

}

}

 

 

 

 

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.