Jump to content

Custom 3D item rendering error


chimera27

Recommended Posts

I keep getting a null pointer exception when trying to render my item and have no idea what's causing it! Anyone know what i'm doing wrong here?

My clientproxy (The place that i'm registering the item renderer is at the very bottom)

 

package project.main.client;

import project.main.CommonProxy;
import project.main.EntityChargedIceBolt;
import project.main.EntityChargedPlasmaBolt;
import project.main.EntityChargedPowerBolt;
import project.main.EntityChargedWaveBolt;
import project.main.EntityIceBolt;
import project.main.EntityMissile;
import project.main.EntityNovaBolt;
import project.main.EntityPhazonBeam;
import project.main.EntityPlasmaBolt;
import project.main.EntityPowerBolt;
import project.main.EntitySpeedBooster;
import project.main.EntitySpeedBoosterModel;
import project.main.EntityWaveBolt;
import project.main.Main;
import project.main.PowerUpGui;
import project.main.RenderChargedIceBolt;
import project.main.RenderChargedPlasmaBolt;
import project.main.RenderChargedPowerBolt;
import project.main.RenderChargedWaveBolt;
import project.main.RenderIceBolt;
import project.main.RenderMissile;
import project.main.RenderNovaBolt;
import project.main.RenderPhazonBeam;
import project.main.RenderPlasmaBolt;
import project.main.RenderPowerBolt;
import project.main.RenderSpeedBooster;
import project.main.RenderWaveBolt;
import cpw.mods.fml.client.registry.RenderingRegistry;
import cpw.mods.fml.common.network.IGuiHandler;
import cpw.mods.fml.common.registry.EntityRegistry;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import net.minecraftforge.client.IItemRenderer;
import net.minecraftforge.client.MinecraftForgeClient;

public class ClientProxy extends CommonProxy {

public void registerRendering() {
	EntityRegistry.registerGlobalEntityID(EntityIceBolt.class, "IceBolt",
			EntityRegistry.findGlobalUniqueEntityId());
	RenderingRegistry.registerEntityRenderingHandler(EntityIceBolt.class,
			new RenderIceBolt());
	EntityRegistry.registerGlobalEntityID(EntityPowerBolt.class,
			"PowerBolt", EntityRegistry.findGlobalUniqueEntityId());
	RenderingRegistry.registerEntityRenderingHandler(EntityPowerBolt.class,
			new RenderPowerBolt());
	EntityRegistry.registerGlobalEntityID(EntityWaveBolt.class, "WaveBolt",
			EntityRegistry.findGlobalUniqueEntityId());
	RenderingRegistry.registerEntityRenderingHandler(EntityWaveBolt.class,
			new RenderWaveBolt());
	EntityRegistry.registerGlobalEntityID(EntityPlasmaBolt.class,
			"PlasmaBolt", EntityRegistry.findGlobalUniqueEntityId());
	RenderingRegistry.registerEntityRenderingHandler(
			EntityPlasmaBolt.class, new RenderPlasmaBolt());
	EntityRegistry.registerGlobalEntityID(EntityMissile.class, "Missile",
			EntityRegistry.findGlobalUniqueEntityId());
	RenderingRegistry.registerEntityRenderingHandler(EntityMissile.class,
			new RenderMissile());
	EntityRegistry.registerGlobalEntityID(EntityChargedIceBolt.class,
			"ChargedIceBolt", EntityRegistry.findGlobalUniqueEntityId());
	RenderingRegistry.registerEntityRenderingHandler(
			EntityChargedIceBolt.class, new RenderChargedIceBolt());
	EntityRegistry.registerGlobalEntityID(EntityChargedPowerBolt.class,
			"ChargedPowerBolt", EntityRegistry.findGlobalUniqueEntityId());
	RenderingRegistry.registerEntityRenderingHandler(
			EntityChargedPowerBolt.class, new RenderChargedPowerBolt());
	EntityRegistry.registerGlobalEntityID(EntityChargedWaveBolt.class,
			"ChargedWaveBolt", EntityRegistry.findGlobalUniqueEntityId());
	RenderingRegistry.registerEntityRenderingHandler(
			EntityChargedWaveBolt.class, new RenderChargedWaveBolt());
	EntityRegistry.registerGlobalEntityID(EntityChargedPlasmaBolt.class,
			"ChargedPlasmaBolt", EntityRegistry.findGlobalUniqueEntityId());
	RenderingRegistry.registerEntityRenderingHandler(
			EntityChargedPlasmaBolt.class, new RenderChargedPlasmaBolt());
	EntityRegistry.registerGlobalEntityID(EntityPhazonBeam.class,
			"phazonbeam", EntityRegistry.findGlobalUniqueEntityId());
	RenderingRegistry.registerEntityRenderingHandler(
			EntityPhazonBeam.class, new RenderPhazonBeam());
	EntityRegistry.registerGlobalEntityID(EntityNovaBolt.class, "novabolt",
			EntityRegistry.findGlobalUniqueEntityId());
	RenderingRegistry.registerEntityRenderingHandler(EntityNovaBolt.class,
			new RenderNovaBolt());
	EntityRegistry.registerGlobalEntityID(EntitySpeedBooster.class, "SpeedBooster",
			EntityRegistry.findGlobalUniqueEntityId());
	RenderingRegistry.registerEntityRenderingHandler(EntitySpeedBooster.class,
			new RenderSpeedBooster());
                MinecraftForgeClient.registerItemRenderer(Main.ItemPowerBeam.itemID, (IItemRenderer)new ItemRenderer());

}

public int addArmor(String armor) {
	return RenderingRegistry.addNewArmourRendererPrefix(armor);

}

public void addTabsToInventory(GuiContainer currentScreen) {

}








}

 

 

 

My model renderer

 

 

// Date: 9/2/2013 1:30:29 PM
// Template version 1.1
// Java generated by Techne
// Keep in mind that you still need to fill in some blanks
// - ZeuX






package project.main.models;

import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;

public class ModelPowerBeam extends ModelBase
{
//fields
public  ModelRenderer Shape1;
public  ModelRenderer Shape2;
public  ModelRenderer Shape3;
public  ModelRenderer Shape4;
public  ModelRenderer Shape5;
public  ModelRenderer Shape7;
public  ModelRenderer Shape8;
public  ModelRenderer Shape6;
public  ModelRenderer Shape9;
public  ModelRenderer Shape10;
public  ModelRenderer Shape11;
public  ModelRenderer Shape12;
public  ModelRenderer Shape13;
public  ModelRenderer Shape14;
public  ModelRenderer Shape15;
public  ModelRenderer Shape16;

public ModelPowerBeam()
{
	textureWidth = 64;
	textureHeight = 32;

	Shape1 = new ModelRenderer(this, 0, 4);
	Shape1.addBox(0F, 0F, 0F, 18, 3, 1);
	Shape1.setRotationPoint(3F, -1F, -3F);
	Shape1.setTextureSize(64, 32);
	Shape1.mirror = true;
	setRotation(Shape1, 0F, 1.570796F, 0F);
	Shape2 = new ModelRenderer(this, 0, 12);
	Shape2.addBox(0F, 0F, 0F, 18, 3, 1);
	Shape2.setRotationPoint(-3F, -1F, -3F);
	Shape2.setTextureSize(64, 32);
	Shape2.mirror = true;
	setRotation(Shape2, 0F, 1.570796F, 0F);
	Shape3 = new ModelRenderer(this, 0, 0);
	Shape3.addBox(0F, -3F, -1F, 18, 1, 3);
	Shape3.setRotationPoint(0F, 0F, -3F);
	Shape3.setTextureSize(64, 32);
	Shape3.mirror = true;
	setRotation(Shape3, 0F, 1.570796F, 0F);
	Shape4 = new ModelRenderer(this, 0, ;
	Shape4.addBox(0F, 0F, 0F, 18, 1, 3);
	Shape4.setRotationPoint(-1F, 3F, -3F);
	Shape4.setTextureSize(64, 32);
	Shape4.mirror = true;
	setRotation(Shape4, 0F, 1.570796F, 0F);
	Shape5 = new ModelRenderer(this, 0, 18);
	Shape5.addBox(0F, 0F, 0F, 18, 1, 1);
	Shape5.setRotationPoint(2F, 2F, -3F);
	Shape5.setTextureSize(64, 32);
	Shape5.mirror = true;
	setRotation(Shape5, 0F, 1.570796F, 0F);
	Shape7 = new ModelRenderer(this, 0, 22);
	Shape7.addBox(0F, 0F, 0F, 18, 1, 1);
	Shape7.setRotationPoint(-2F, -2F, -3F);
	Shape7.setTextureSize(64, 32);
	Shape7.mirror = true;
	setRotation(Shape7, 0F, 1.570796F, 0F);
	Shape8 = new ModelRenderer(this, 0, 16);
	Shape8.addBox(0F, 0F, 0F, 18, 1, 1);
	Shape8.setRotationPoint(2F, -2F, -3F);
	Shape8.setTextureSize(64, 32);
	Shape8.mirror = true;
	setRotation(Shape8, 0F, 1.570796F, 0F);
	Shape6 = new ModelRenderer(this, 0, 20);
	Shape6.addBox(0F, 0F, 0F, 18, 1, 1);
	Shape6.setRotationPoint(-2F, 2F, -3F);
	Shape6.setTextureSize(64, 32);
	Shape6.mirror = true;
	setRotation(Shape6, 0F, 1.570796F, 0F);
	Shape9 = new ModelRenderer(this, 0, 24);
	Shape9.addBox(0F, 0F, 0F, 3, 1, 6);
	Shape9.setRotationPoint(-1F, -2F, -26F);
	Shape9.setTextureSize(64, 32);
	Shape9.mirror = true;
	setRotation(Shape9, 0F, 0F, 0F);
	Shape10 = new ModelRenderer(this, 38, 23);
	Shape10.addBox(0F, 0F, 0F, 1, 3, 6);
	Shape10.setRotationPoint(2F, -1F, -26F);
	Shape10.setTextureSize(64, 32);
	Shape10.mirror = true;
	setRotation(Shape10, 0F, 0F, 0F);
	Shape11 = new ModelRenderer(this, 38, 14);
	Shape11.addBox(0F, 0F, 0F, 1, 3, 6);
	Shape11.setRotationPoint(-2F, -1F, -26F);
	Shape11.setTextureSize(64, 32);
	Shape11.mirror = true;
	setRotation(Shape11, 0F, 0F, 0F);
	Shape12 = new ModelRenderer(this, 43, 1);
	Shape12.addBox(0F, 0F, 0F, 3, 1, 6);
	Shape12.setRotationPoint(-1F, 2F, -26F);
	Shape12.setTextureSize(64, 32);
	Shape12.mirror = true;
	setRotation(Shape12, 0F, 0F, 0F);
	Shape13 = new ModelRenderer(this, 0, -1);
	Shape13.addBox(0F, 0F, 0F, 5, 3, 1);
	Shape13.setRotationPoint(-2F, -1F, -4F);
	Shape13.setTextureSize(64, 32);
	Shape13.mirror = true;
	setRotation(Shape13, 0F, 0F, 0F);
	Shape14 = new ModelRenderer(this, 0, 0);
	Shape14.addBox(0F, 0F, 0F, 3, 1, 1);
	Shape14.setRotationPoint(-1F, -2F, -4F);
	Shape14.setTextureSize(64, 32);
	Shape14.mirror = true;
	setRotation(Shape14, 0F, 0F, 0F);
	Shape15 = new ModelRenderer(this, 0, 0);
	Shape15.addBox(0F, 0F, 0F, 3, 1, 1);
	Shape15.setRotationPoint(-1F, 2F, -4F);
	Shape15.setTextureSize(64, 32);
	Shape15.mirror = true;
	setRotation(Shape15, 0F, 0F, 0F);
	Shape16.mirror = true;
	Shape16 = new ModelRenderer(this, 0, 4);
	Shape16.addBox(0F, 0F, 0F, 3, 1, 9);
	Shape16.setRotationPoint(-1F, -4F, -13F);
	Shape16.setTextureSize(64, 32);
	Shape16.mirror = true;
	setRotation(Shape16, 0F, 0F, 0F);
	Shape16.mirror = false;
}

public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)
{
	super.render(entity, f, f1, f2, f3, f4, f5);
	setRotationAngles(f, f1, f2, f3, f4, f5, entity);
	Shape1.render(f5);
	Shape2.render(f5);
	Shape3.render(f5);
	Shape4.render(f5);
	Shape5.render(f5);
	Shape7.render(f5);
	Shape8.render(f5);
	Shape6.render(f5);
	Shape9.render(f5);
	Shape10.render(f5);
	Shape11.render(f5);
	Shape12.render(f5);
	Shape13.render(f5);
	Shape14.render(f5);
	Shape15.render(f5);
	Shape16.render(f5);
}

private void setRotation(ModelRenderer model, float x, float y, float z)
{
	model.rotateAngleX = x;
	model.rotateAngleY = y;
	model.rotateAngleZ = z;
}

public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity)
{
	super.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
}

}

 

 

 

And my custom renderer

 

 

 

package project.main.client;

import org.lwjgl.opengl.GL11;

import project.main.models.ModelPowerBeam;
import net.minecraft.entity.Entity;
import net.minecraft.item.ItemStack;
import net.minecraftforge.client.IItemRenderer;

public class ItemRenderer implements IItemRenderer {

protected ModelPowerBeam modelpowerbeam;
public ItemRenderer(){
	modelpowerbeam = new ModelPowerBeam();
}
@Override
public boolean handleRenderType(ItemStack item, ItemRenderType type) {

switch(type){
case EQUIPPED: return true;
default: return false;
}
}

@Override
public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item,
		ItemRendererHelper helper) {
	return false;
}

@Override
public void renderItem(ItemRenderType type, ItemStack item, Object... data) {

switch(type){
case EQUIPPED:{
GL11.glPushMatrix();

modelpowerbeam.render((Entity)data[1], 0, 0, 0, 0, 0, 0.0625F);
}
default: break;
}
}

}

 

 

 

Also here's the null pointer exception it's throwing at me:

 

 

 

2013-09-02 14:36:00 [iNFO] [sTDOUT] ---- Minecraft Crash Report ----

2013-09-02 14:36:00 [iNFO] [sTDOUT] // I let you down. Sorry :(

2013-09-02 14:36:00 [iNFO] [sTDOUT]

2013-09-02 14:36:00 [iNFO] [sTDOUT] Time: 9/2/13 2:36 PM

2013-09-02 14:36:00 [iNFO] [sTDOUT] Description: Initializing game

2013-09-02 14:36:00 [iNFO] [sTDOUT]

2013-09-02 14:36:00 [iNFO] [sTDOUT] java.lang.NullPointerException

2013-09-02 14:36:00 [iNFO] [sTDOUT] at project.main.models.ModelPowerBeam.<init>(ModelPowerBeam.java:133)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at project.main.client.ItemRenderer.<init>(ItemRenderer.java:14)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at project.main.Main.load(Main.java:332)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:540)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.post(EventBus.java:267)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:193)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:173)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.post(EventBus.java:267)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:104)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:697)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:222)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at net.minecraft.client.Minecraft.startGame(Minecraft.java:506)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:796)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at net.minecraft.client.main.Main.main(Main.java:93)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at net.minecraft.launchwrapper.Launch.launch(Launch.java:57)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at net.minecraft.launchwrapper.Launch.main(Launch.java:18)

2013-09-02 14:36:00 [iNFO] [sTDOUT]

2013-09-02 14:36:00 [iNFO] [sTDOUT]

2013-09-02 14:36:00 [iNFO] [sTDOUT] A detailed walkthrough of the error, its code path and all known details is as follows:

2013-09-02 14:36:00 [iNFO] [sTDOUT] ---------------------------------------------------------------------------------------

2013-09-02 14:36:00 [iNFO] [sTDOUT]

2013-09-02 14:36:00 [iNFO] [sTDOUT] -- Head --

2013-09-02 14:36:00 [iNFO] [sTDOUT] Stacktrace:

2013-09-02 14:36:00 [iNFO] [sTDOUT] at project.main.models.ModelPowerBeam.<init>(ModelPowerBeam.java:133)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at project.main.client.ItemRenderer.<init>(ItemRenderer.java:14)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at project.main.Main.load(Main.java:332)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:540)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.post(EventBus.java:267)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:193)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:173)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at com.google.common.eventbus.EventBus.post(EventBus.java:267)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:104)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:697)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:222)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at net.minecraft.client.Minecraft.startGame(Minecraft.java:506)

2013-09-02 14:36:00 [iNFO] [sTDOUT]

2013-09-02 14:36:00 [iNFO] [sTDOUT] -- Initialization --

2013-09-02 14:36:00 [iNFO] [sTDOUT] Details:

2013-09-02 14:36:00 [iNFO] [sTDOUT] Stacktrace:

2013-09-02 14:36:00 [iNFO] [sTDOUT] at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:796)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at net.minecraft.client.main.Main.main(Main.java:93)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at java.lang.reflect.Method.invoke(Unknown Source)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at net.minecraft.launchwrapper.Launch.launch(Launch.java:57)

2013-09-02 14:36:00 [iNFO] [sTDOUT] at net.minecraft.launchwrapper.Launch.main(Launch.java:18)

 

 

Any help would be appreciated!

Creator of Metroid Cubed! Power Suits, Beams, Hypermode and more!

width=174 height=100http://i.imgur.com/ghgWmA3.jpg[/img]

Link to comment
Share on other sites

That would seem to be the problem! I thought I only had to do that in the clientproxy but i'll try moving that to my main!

EDIT: Actually that gave me the same error, the only thing changed in the error was the line where it mentioned when I registered it in my clientproxy was changed to the line that I registered it in my main :/ I'll post my main now...

 

Main:

 

 

package project.main;

 

import java.lang.reflect.Field;

import java.lang.reflect.Modifier;

 

import org.lwjgl.input.Keyboard;

 

import net.minecraft.block.Block;

import net.minecraft.block.material.Material;

import net.minecraft.client.Minecraft;

import net.minecraft.client.gui.Gui;

import net.minecraft.client.gui.GuiScreen;

import net.minecraft.client.settings.KeyBinding;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.entity.Entity;

import net.minecraft.entity.SharedMonsterAttributes;

import net.minecraft.entity.player.EntityPlayer;

import net.minecraft.item.EnumArmorMaterial;

import net.minecraft.item.Item;

import net.minecraft.item.ItemStack;

import net.minecraft.potion.Potion;

import net.minecraft.potion.PotionEffect;

import net.minecraft.src.ModLoader;

import net.minecraft.util.DamageSource;

import net.minecraftforge.client.IItemRenderer;

import net.minecraftforge.client.MinecraftForgeClient;

import net.minecraftforge.common.EnumHelper;

import net.minecraftforge.common.MinecraftForge;

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

import cpw.mods.fml.common.Mod;

import cpw.mods.fml.common.Mod.EventHandler;

import cpw.mods.fml.common.Mod.Init;

import cpw.mods.fml.common.Mod.Instance;

import cpw.mods.fml.common.Mod.PostInit;

import cpw.mods.fml.common.Mod.PreInit;

import cpw.mods.fml.common.SidedProxy;

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.IGuiHandler;

import cpw.mods.fml.common.network.NetworkMod;

import cpw.mods.fml.common.network.NetworkRegistry;

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;

import project.main.EntityPowerBolt;

import project.main.ItemPowerBeam;

import project.main.ItemWaveBeam;

import project.main.ItemPlasmaBeam;

import project.main.ItemIceBeam;

import project.main.client.ItemRenderer;

 

@Mod(modid = "chimera27metroid", name = "Metroid Cubed", version = "1.0.0")

@NetworkMod(clientSideRequired = true, serverSideRequired = false)

public class Main {

// Notes:

// How to check a block ID under an entity (may need tweaking)

// if(event.entityLiving.worldObj.getBlockId((int)event.entityLiving.posX,

// (int)event.entityLiving.posY-2, (int)event.entityLiving.posZ) < 1)

@Instance("chimera27metroid")

public static Main instance;

 

@SidedProxy(clientSide = "project.main.client.ClientProxy", serverSide = "project.main.CommonProxy")

public static CommonProxy proxy;

public static project.main.client.ClientProxy clientproxy;

 

public static CreativeTabs MetroidCubed = new CreativeTabs(

"Metroid Cubed Suits!") {

public ItemStack getIconItemStack() {

return new ItemStack(Main.ItemPhazonSuitHelmet, 1, 0);

}

};

 

public static CreativeTabs MetroidCubedBeams = new CreativeTabs(

"Metroid Cubed Beams!") {

public ItemStack getIconItemStack() {

return new ItemStack(Main.ItemDebugBeam, 1, 0);

}

};

public static CreativeTabs MetroidCubedMaterials = new CreativeTabs(

"Metroid Cubed Materials!") {

public ItemStack getIconItemStack() {

return new ItemStack(Main.ItemPowerCore, 1, 0);

}

};

 

public final static Block PhazonOre = new PhazonOre(2910, Material.iron)

.setHardness(10.0F).setStepSound(Block.soundClothFootstep)

.setUnlocalizedName("phazonore");

public final static Block PhazonSeedOre = new PhazonSeedOre(2911,

Material.iron).setHardness(10.0F)

.setStepSound(Block.soundClothFootstep)

.setUnlocalizedName("phazonseedore")

.setCreativeTab(MetroidCubedMaterials);

 

 

 

 

 

 

 

 

 

 

 

 

 

public static Item ItemPowerBeam = new ItemPowerBeam(5000)

.setUnlocalizedName("chimera27metroid:powerbeam").setFull3D().setCreativeTab(

MetroidCubedBeams);

public static Item ItemPowerBeamW = new ItemPowerBeamW(5043)

.setUnlocalizedName("chimera27metroid:powerbeam").setFull3D().setCreativeTab(

MetroidCubedBeams);

public static Item ItemPowerBeamP = new ItemPowerBeamP(5044)

.setUnlocalizedName("chimera27metroid:powerbeam").setFull3D().setCreativeTab(

MetroidCubedBeams);

public static Item ItemPowerBeamI = new ItemPowerBeamI(5055)

.setUnlocalizedName("chimera27metroid:powerbeam").setFull3D().setCreativeTab(

MetroidCubedBeams);

public static Item ItemPowerBeamIP = new ItemPowerBeamIP(5056)

.setUnlocalizedName("chimera27metroid:powerbeam").setFull3D().setCreativeTab(

MetroidCubedBeams);

public static Item ItemPowerBeamWI = new ItemPowerBeamWI(5057)

.setUnlocalizedName("chimera27metroid:powerbeam").setFull3D().setCreativeTab(

MetroidCubedBeams);

public static Item ItemPowerBeamPW = new ItemPowerBeamPW(5058)

.setUnlocalizedName("chimera27metroid:powerbeam").setFull3D().setCreativeTab(

MetroidCubedBeams);

public static Item ItemPowerBeamIPW = new ItemPowerBeamIPW(5059)

.setUnlocalizedName("chimera27metroid:powerbeam").setFull3D().setCreativeTab(

MetroidCubedBeams);

 

 

public static Item ItemWaveBeam = new ItemWaveBeam(5001)

.setUnlocalizedName("chimera27metroid:wavebeam").setFull3D().setCreativeTab(

null);

public static Item ItemWaveBeamW = new ItemWaveBeamW(5060)

.setUnlocalizedName("chimera27metroid:wavebeam").setFull3D().setCreativeTab(

MetroidCubedBeams);

public static Item ItemWaveBeamWI = new ItemWaveBeamWI(5061)

.setUnlocalizedName("chimera27metroid:wavebeam").setFull3D().setCreativeTab(

MetroidCubedBeams);

public static Item ItemWaveBeamPW = new ItemWaveBeamPW(5062)

.setUnlocalizedName("chimera27metroid:wavebeam").setFull3D().setCreativeTab(

MetroidCubedBeams);

public static Item ItemWaveBeamIPW = new ItemWaveBeamIPW(5063)

.setUnlocalizedName("chimera27metroid:wavebeam").setFull3D().setCreativeTab(

MetroidCubedBeams);

 

 

 

 

 

 

public static Item ItemPlasmaBeam = new ItemPlasmaBeam(5064)

.setUnlocalizedName("chimera27metroid:plasmabeam").setFull3D().setCreativeTab(

null);

public static Item ItemPlasmaBeamP = new ItemPlasmaBeamP(5065)

.setUnlocalizedName("chimera27metroid:plasmabeam").setFull3D().setCreativeTab(

MetroidCubedBeams);

public static Item ItemPlasmaBeamIP = new ItemPlasmaBeamIP(5067)

.setUnlocalizedName("chimera27metroid:plasmabeam").setFull3D().setCreativeTab(

MetroidCubedBeams);

 

public static Item ItemPlasmaBeamPW = new ItemPlasmaBeamPW(5068)

.setUnlocalizedName("chimera27metroid:plasmabeam").setFull3D().setCreativeTab(

MetroidCubedBeams);

public static Item ItemPlasmaBeamIPW = new ItemPlasmaBeamIPW(5069)

.setUnlocalizedName("chimera27metroid:plasmabeam").setFull3D().setCreativeTab(

MetroidCubedBeams);

 

 

 

public static Item ItemIceBeam = new ItemIceBeam(5003).setUnlocalizedName(

"chimera27metroid:icebeam").setFull3D().setCreativeTab(null);

public static Item ItemIceBeamI = new ItemIceBeamI(5070)

.setUnlocalizedName("chimera27metroid:icebeam").setFull3D().setCreativeTab(

MetroidCubedBeams);

public static Item ItemIceBeamIP = new ItemIceBeamIP(5071)

.setUnlocalizedName("chimera27metroid:icebeam").setFull3D().setCreativeTab(

MetroidCubedBeams);

public static Item ItemIceBeamWI = new ItemIceBeamWI(5072)

.setUnlocalizedName("chimera27metroid:icebeam").setFull3D().setCreativeTab(

MetroidCubedBeams);

public static Item ItemIceBeamIPW = new ItemIceBeamIPW(5073)

.setUnlocalizedName("chimera27metroid:icebeam").setFull3D().setCreativeTab(

MetroidCubedBeams);

 

 

 

 

 

public static Item ItemMissileLauncher = new ItemMissileLauncher(5004)

.setUnlocalizedName("chimera27metroid:missilelauncher")

.setFull3D().setCreativeTab(MetroidCubedBeams);

public static Item ItemMissile = new ItemMissile(5005).setUnlocalizedName(

"chimera27metroid:itemmissile").setCreativeTab(MetroidCubedBeams);

public static Item ItemDebugBeam = new ItemDebugBeam(5006)

.setUnlocalizedName("chimera27metroid:debugbeam").setFull3D().setCreativeTab(

MetroidCubedBeams);

public static Item ItemNovaBeam = new ItemNovaBeam(5042)

.setUnlocalizedName("chimera27metroid:novabeam").setFull3D().setCreativeTab(

MetroidCubedBeams);

 

public static Item ItemPowerCore = new ItemPowerCore(5027)

.setUnlocalizedName("chimera27metroid:itempowercore")

.setCreativeTab(MetroidCubedMaterials);

public static Item ItemHeatShield = new ItemHeatShield(5028)

.setUnlocalizedName("chimera27metroid:itemheatshield")

.setCreativeTab(MetroidCubedMaterials);

public static Item ItemGravityDisruptor = new ItemGravityDisruptor(5029)

.setUnlocalizedName("chimera27metroid:itemgravitydisruptorshield")

.setCreativeTab(MetroidCubedMaterials);

public static Item ItemRedstoneCapacitor = new ItemRedstoneCapacitor(5030)

.setUnlocalizedName("chimera27metroid:itemredstonecapacitorshield")

.setCreativeTab(MetroidCubedMaterials);

 

public static Item ItemWaveUpgrade = new ItemWaveUpgrade(5036)

.setUnlocalizedName("chimera27metroid:itemwaveupgrade")

.setCreativeTab(MetroidCubedMaterials);

public static Item ItemPlasmaUpgrade = new ItemPlasmaUpgrade(5037)

.setUnlocalizedName("chimera27metroid:itemplasmaupgrade")

.setCreativeTab(MetroidCubedMaterials);

public static Item ItemIceUpgrade = new ItemIceUpgrade(5038)

.setUnlocalizedName("chimera27metroid:itemiceupgrade")

.setCreativeTab(MetroidCubedMaterials);

 

 

public static Item ItemSpaceJump = new ItemSpaceJump(5039)

.setUnlocalizedName("chimera27metroid:itemspacejump")

.setCreativeTab(MetroidCubedMaterials);

public static Item ItemSpeedBooster = new ItemSpeedBooster(5040)

.setUnlocalizedName("chimera27metroid:itemspeedbooster")

.setCreativeTab(MetroidCubedMaterials);

public static Item ItemScrewAttack = new ItemScrewAttack(5041)

.setUnlocalizedName("chimera27metroid:itemscrewattack")

.setCreativeTab(MetroidCubedMaterials);

 

public static Item ItemPowerSuitHelmet;

public static Item ItemPowerSuitChestplate;

public static Item ItemPowerSuitLeggings;

public static Item ItemPowerSuitBoots;

 

public static Item ItemVariaSuitHelmet;

public static Item ItemVariaSuitChestplate;

public static Item ItemVariaSuitLeggings;

public static Item ItemVariaSuitBoots;

public static Item ItemVariaSuitSpeed;

 

public static Item ItemGravitySuitHelmet;

public static Item ItemGravitySuitChestplate;

public static Item ItemGravitySuitLeggings;

public static Item ItemGravitySuitBoots;

public static Item ItemGravitySuitLeggingsSpace;

public static Item ItemGravitySuitLeggingsSpeed;

public static Item ItemGravitySuitLeggingsSpaceSpeed;

 

public static Item ItemPhazonSuitHelmet;

public static Item ItemPhazonSuitChestplate;

public static Item ItemPhazonSuitLeggings;

public static Item ItemPhazonSuitBoots;

public static Item ItemPhazonSuitLeggingsUltimate;

 

public static Item ItemPEDSuitHelmet;

public static Item ItemPEDSuitChestplate;

public static Item ItemPEDSuitLeggings;

public static Item ItemPEDSuitBoots;

 

public static Item ItemCircuit = new ItemCircuit(5092)

.setUnlocalizedName("chimera27metroid:itemcircuit")

.setCreativeTab(MetroidCubedMaterials);

 

public static Potion antifirePotion;

public static Potion waterboost;

public static Potion hypermode;

public static Potion enhancedhypermode;

public static Potion hypermodecooldown;

public static Potion phazonoverload;

public static Potion phazonpoisoning;

public static Potion SpeedBooster;

public static Potion JumpReplace;

public static Potion SpaceJump;

public static Potion ScrewAttack;

 

public static IGuiHandler PowerUpGui;

 

PhazonWorldGen phazonWorldGen = new PhazonWorldGen();

 

@EventHandler

public void preInit(FMLPreInitializationEvent event) {

proxy.registerRendering();

 

Potion[] potionTypes = null;

 

TickRegistry.registerTickHandler(new CommonTickHandler(), Side.SERVER);

 

GameRegistry.registerWorldGenerator(phazonWorldGen);

 

for (Field f : Potion.class.getDeclaredFields()) {

f.setAccessible(true);

try {

if (f.getName().equals("potionTypes")

|| f.getName().equals("field_76425_a")) {

Field modfield = Field.class.getDeclaredField("modifiers");

modfield.setAccessible(true);

modfield.setInt(f, f.getModifiers() & ~Modifier.FINAL);

 

potionTypes = (Potion[]) f.get(null);

final Potion[] newPotionTypes = new Potion[256];

System.arraycopy(potionTypes, 0, newPotionTypes, 0,

potionTypes.length);

f.set(null, newPotionTypes);

}

} catch (Exception e) {

System.err

.println("Severe error, please report this to me (PhilosophicalChimera):");

System.err.println(e);

}

}

 

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

 

}

 

@EventHandler

public void load(FMLInitializationEvent event) {

NetworkRegistry.instance().registerGuiHandler(instance,

new PowerUpGuiHandler());

 

 

KeyBinding[] key = { new KeyBinding("Hypermode", Keyboard.KEY_C) };

boolean[] repeat = { false };

KeyBindingRegistry

.registerKeyBinding(new HypermodeKeyBind(key, repeat));

 

KeyBinding[] key2 = { new KeyBinding("PowerBeam", Keyboard.KEY_I) };

boolean[] repeat2 = { false };

KeyBindingRegistry.registerKeyBinding(new PowerBeamKeyBind(key2,

repeat2));

 

KeyBinding[] key3 = { new KeyBinding("WaveBeam", Keyboard.KEY_J) };

boolean[] repeat3 = { false };

KeyBindingRegistry

.registerKeyBinding(new WaveBeamKeyBind(key3, repeat3));

 

KeyBinding[] key4 = { new KeyBinding("IceBeam", Keyboard.KEY_L) };

boolean[] repeat4 = { false };

KeyBindingRegistry

.registerKeyBinding(new IceBeamKeyBind(key4, repeat4));

 

KeyBinding[] key5 = { new KeyBinding("PlasmaBeam", Keyboard.KEY_K) };

boolean[] repeat5 = { false };

KeyBindingRegistry.registerKeyBinding(new PlasmaBeamKeyBind(key5,

repeat5));

 

KeyBinding[] key6 = { new KeyBinding("Missile Launcher", Keyboard.KEY_O) };

boolean[] repeat6 = { false };

KeyBindingRegistry.registerKeyBinding(new MissileLauncherKeyBind(key6,

repeat6));

 

KeyBinding[] key7 = { new KeyBinding("PowerUpKeyBind", Keyboard.KEY_F) };

boolean[] repeat7 = { false };

KeyBindingRegistry.registerKeyBinding(new PowerUpGuiKeyBind(key7,

repeat7));

 

KeyBinding[] key8 = { new KeyBinding("SpeedBoostKeyBind",

Keyboard.KEY_V) };

boolean[] repeat8 = { false };

KeyBindingRegistry.registerKeyBinding(new SpeedBoostKeyBind(key8,

repeat8));

 

EnumArmorMaterial powersuit = EnumHelper.addArmorMaterial("powersuit",

0, new int[] { 1, 2, 2, 1 }, 0);

EnumArmorMaterial varia = EnumHelper.addArmorMaterial("varia", 0,

new int[] { 2, 3, 3, 2 }, 0);

EnumArmorMaterial gravity = EnumHelper.addArmorMaterial("gravity", 0,

new int[] { 3, 4, 4, 2 }, 0);

EnumArmorMaterial phazon = EnumHelper.addArmorMaterial("phazon", 0,

new int[] { 3, 6, 5, 4 }, 0);

EnumArmorMaterial ped = EnumHelper.addArmorMaterial("ped", 0,

new int[] { 6, 7, 6, 6 }, 0);

 

ItemPowerSuitHelmet = new PowerSuit(5007, powersuit, 1, 0)

.setUnlocalizedName("itempowersuithelmet").setCreativeTab(

MetroidCubed);

ItemPowerSuitChestplate = new PowerSuit(5008, powersuit, 1, 1)

.setUnlocalizedName("itempowersuitchestplate").setCreativeTab(

MetroidCubed);

ItemPowerSuitLeggings = new PowerSuit(5009, powersuit, 1, 2)

.setUnlocalizedName("itempowersuitleggings").setCreativeTab(

MetroidCubed);

ItemPowerSuitBoots = new PowerSuit(5010, powersuit, 1, 3)

.setUnlocalizedName("itempowersuitboots").setCreativeTab(

MetroidCubed);

 

ItemVariaSuitHelmet = new varia(5011, varia, 2, 0).setUnlocalizedName(

"chimera27metroid:variasuithelmet")

.setCreativeTab(MetroidCubed);

ItemVariaSuitChestplate = new varia(5012, varia, 2, 1)

.setUnlocalizedName("chimera27metroid:variasuitchestplate")

.setCreativeTab(MetroidCubed);

ItemVariaSuitLeggings = new varia(5013, varia, 2, 2)

.setUnlocalizedName("chimera27metroid:variasuitleggings")

.setCreativeTab(MetroidCubed);

ItemVariaSuitBoots = new varia(5014, varia, 2, 3).setUnlocalizedName(

"chimera27metroid:variasuitboots").setCreativeTab(MetroidCubed);

ItemVariaSuitSpeed = new varia(5035, varia, 2, 2).setUnlocalizedName(

"chimera27metroid:variasuitspeed").setCreativeTab(MetroidCubed);

 

ItemGravitySuitHelmet = new gravity(5015, gravity, 3, 0)

.setUnlocalizedName("chimera27metroid:itemgravitysuithelmet")

.setCreativeTab(MetroidCubed);

ItemGravitySuitChestplate = new gravity(5016, gravity, 3, 1)

.setUnlocalizedName(

"chimera27metroid:itemgravitysuitchestplate")

.setCreativeTab(MetroidCubed);

ItemGravitySuitLeggings = new gravity(5017, gravity, 3, 2)

.setUnlocalizedName("chimera27metroid:itemgravitysuitleggings")

.setCreativeTab(MetroidCubed);

ItemGravitySuitBoots = new gravity(5018, gravity, 3, 3)

.setUnlocalizedName("chimera27metroid:itemgravitysuitboots")

.setCreativeTab(MetroidCubed);

ItemGravitySuitLeggingsSpeed = new gravity(5032, gravity, 3, 2)

.setUnlocalizedName("chimera27metroid:itemgravitysuitleggingsspeed")

.setCreativeTab(MetroidCubed);

ItemGravitySuitLeggingsSpace = new gravity(5033, gravity, 3, 2)

.setUnlocalizedName("chimera27metroid:itemgravitysuitleggingsspace")

.setCreativeTab(MetroidCubed);

ItemGravitySuitLeggingsSpaceSpeed = new gravity(5034, gravity, 3, 2)

.setUnlocalizedName("chimera27metroid:itemgravitysuitleggingsspacespeed")

.setCreativeTab(MetroidCubed);

 

ItemPhazonSuitHelmet = new Phazon(505, phazon, 4, 0)

.setUnlocalizedName("chimera27metroid:itemphazonsuithelmet")

.setCreativeTab(MetroidCubed);

ItemPhazonSuitChestplate = new Phazon(5020, phazon, 4, 1)

.setUnlocalizedName("chimera27metroid:itemphazonsuitchestplate")

.setCreativeTab(MetroidCubed);

ItemPhazonSuitLeggings = new Phazon(5021, phazon, 4, 2)

.setUnlocalizedName("chimera27metroid:itemphazonsuitleggings")

.setCreativeTab(MetroidCubed);

ItemPhazonSuitBoots = new Phazon(5022, phazon, 4, 3)

.setUnlocalizedName("chimera27metroid:itemphazonsuitboots")

.setCreativeTab(MetroidCubed);

ItemPhazonSuitLeggingsUltimate = new Phazon(5031, phazon, 4, 2)

.setUnlocalizedName("chimera27metroid:itemphazonsuitleggingsultimate")

.setCreativeTab(MetroidCubed);

 

ItemPEDSuitHelmet = new PED(5023, ped, 5, 0).setUnlocalizedName(

"chimera27metroid:itempedsuithelmet").setCreativeTab(null);

ItemPEDSuitChestplate = new PED(5024, ped, 5, 1).setUnlocalizedName(

"chimera27metroid:itempedsuitchestplate").setCreativeTab(null);

ItemPEDSuitLeggings = new PED(5025, ped, 5, 2).setUnlocalizedName(

"chimera27metroid:itempedsuitleggings").setCreativeTab(null);

ItemPEDSuitBoots = new PED(5026, ped, 5, 3).setUnlocalizedName(

"chimera27metroid:itempedsuitboots").setCreativeTab(null);

 

waterboost = (new waterboost(21, false, 0)).setIconIndex(0, 0)

.setPotionName("chimera27metroid:potion.waterboost");

hypermode = (new hypermode(27, false, 0)).setIconIndex(0, 0)

.setPotionName("chimera27metroid:potion.hypermode");

enhancedhypermode = (new enhancedhypermode(23, false, 0)).setIconIndex(

0, 0)

.setPotionName("chimera27metroid:potion.enhancedhypermode");

hypermodecooldown = (new hypermodecooldown(24, false, 0)).setIconIndex(

0, 0)

.setPotionName("chimera27metroid:potion.hypermodecooldown");

phazonoverload = (new phazonoverload(25, false, 0)).setIconIndex(0, 0)

.setPotionName("chimera27metroid:potion.phazonoverload");

phazonpoisoning = (new phazonoverload(26, false, 0)).setIconIndex(0, 0)

.setPotionName("chimera27metroid:potion.phazonpoisoning");

SpeedBooster = (new SpeedBooster(27, false, 0)).setIconIndex(0, 0)

.setPotionName("chimera27metroid:potion.speedbooster");

JumpReplace = (new JumpReplace(28, false, 0)).setIconIndex(0, 0)

.setPotionName("chimera27metroid:potion.jumpreplace");

 

ScrewAttack= (new ScrewAttack(30, false, 0)).setIconIndex(0, 0)

.setPotionName("chimera27metroid:potion.screwattack");

 

LanguageRegistry.instance().addStringLocalization(

"itemGroup.Metroid Cubed Materials!", "en_US",

"Metroid Cubed Materials!");

LanguageRegistry.instance().addStringLocalization(

"itemGroup.Metroid Cubed Beams!", "en_US",

"Metroid Cubed Beams!");

LanguageRegistry.instance().addStringLocalization(

"itemGroup.Metroid Cubed Suits!", "en_US",

"Metroid Cubed Suits!");

 

LanguageRegistry.addName(PhazonOre, "Phazon Ore");

LanguageRegistry.addName(ItemPowerBeam, "Power Beam");

LanguageRegistry.addName(ItemWaveBeam, "Wave Beam");

LanguageRegistry.addName(ItemPlasmaBeam, "Plasma Beam");

LanguageRegistry.addName(ItemIceBeam, "Ice Beam");

LanguageRegistry.addName(ItemMissileLauncher, "Missile Launcher");

LanguageRegistry.addName(ItemMissile, "Missile");

LanguageRegistry.addName(ItemDebugBeam, "Debug Beam");

 

LanguageRegistry.addName(ItemSpeedBooster, "Speed Booster");

LanguageRegistry.addName(ItemSpaceJump, "Space Jump");

LanguageRegistry.addName(ItemScrewAttack, "Screw Attack");

 

LanguageRegistry.addName(ItemPowerSuitHelmet, "Power Suit Helmet");

LanguageRegistry.addName(ItemPowerSuitChestplate,"Power Suit Chestplate");

LanguageRegistry.addName(ItemPowerSuitLeggings, "Power Suit Leggings");

LanguageRegistry.addName(ItemPowerSuitBoots, "Power Suit Boots");

 

LanguageRegistry.addName(ItemVariaSuitHelmet, "Varia Suit Helmet");

LanguageRegistry.addName(ItemVariaSuitChestplate,"Varia Suit Chestplate");

LanguageRegistry.addName(ItemVariaSuitLeggings, "Varia Suit Leggings");

LanguageRegistry.addName(ItemVariaSuitBoots, "Varia Suit Boots");

LanguageRegistry.addName(ItemVariaSuitSpeed, "Varia Suit Leggings + Speed Booster");

 

LanguageRegistry.addName(ItemGravitySuitHelmet, "Gravity Suit Helmet");

LanguageRegistry.addName(ItemGravitySuitChestplate,"Gravity Suit Chestplate");

LanguageRegistry.addName(ItemGravitySuitLeggings,"Gravity Suit Leggings");

LanguageRegistry.addName(ItemGravitySuitBoots, "Gravity Suit Boots");

LanguageRegistry.addName(ItemGravitySuitLeggingsSpeed,"Gravity Suit Leggings + Speed Booster");

LanguageRegistry.addName(ItemGravitySuitLeggingsSpace,"Gravity Suit Leggings + Space Jump");

LanguageRegistry.addName(ItemGravitySuitLeggingsSpaceSpeed, "Fully Upgraded Gravity Suit");

 

LanguageRegistry.addName(ItemPhazonSuitHelmet, "Phazon Suit Helmet");

LanguageRegistry.addName(ItemPhazonSuitChestplate,"Phazon Suit Chestplate");

LanguageRegistry.addName(ItemPhazonSuitLeggings, "Phazon Suit Leggings");

LanguageRegistry.addName(ItemPhazonSuitBoots, "Phazon Suit Boots");

LanguageRegistry.addName(ItemPhazonSuitLeggingsUltimate, "Fully Upgraded Phazon Suit Leggings");

 

LanguageRegistry.addName(ItemPEDSuitHelmet, "PED Suit Helmet");

LanguageRegistry.addName(ItemPEDSuitChestplate, "PED Suit Chestplate");

LanguageRegistry.addName(ItemPEDSuitLeggings, "PED Suit Leggings");

LanguageRegistry.addName(ItemPEDSuitBoots, "PED Suit Boots");

 

LanguageRegistry.addName(ItemPowerCore, "Power Core");

LanguageRegistry.addName(ItemHeatShield, "Thermoresistant Alloy");

LanguageRegistry.addName(ItemRedstoneCapacitor, "Redstone Capacitor");

LanguageRegistry.addName(ItemGravityDisruptor, "Gravitational Anomaly");

LanguageRegistry.addName(PhazonSeedOre, "Phazon Ore");

LanguageRegistry.addName(ItemNovaBeam, "Nova Beam");

LanguageRegistry.addName(ItemCircuit, "Circuit");

 

LanguageRegistry.addName(ItemWaveUpgrade, "Wave Beam Upgrade");

LanguageRegistry.addName(ItemPlasmaUpgrade, "Plasma Beam Upgrade");

LanguageRegistry.addName(ItemIceUpgrade, "Ice Beam Upgrade");

 

LanguageRegistry.addName(ItemPowerBeamI, "Power Beam");

LanguageRegistry.addName(ItemIceBeamI, "Ice Beam");

 

LanguageRegistry.addName(ItemPowerBeamW, "Power Beam");

LanguageRegistry.addName(ItemWaveBeamW, "Wave Beam");

 

LanguageRegistry.addName(ItemPowerBeamP, "Power Beam");

LanguageRegistry.addName(ItemPlasmaBeamP, "Plasma Beam");

 

LanguageRegistry.addName(ItemPowerBeamIP, "Power Beam");

LanguageRegistry.addName(ItemPlasmaBeamIP, "Plasma Beam");

LanguageRegistry.addName(ItemIceBeamIP, "Ice Beam");

 

LanguageRegistry.addName(ItemPowerBeamPW, "Power Beam");

LanguageRegistry.addName(ItemWaveBeamPW, "Wave Beam");

LanguageRegistry.addName(ItemPlasmaBeamPW, "Plasma Beam");

 

LanguageRegistry.addName(ItemPowerBeamWI, "Power Beam");

LanguageRegistry.addName(ItemWaveBeamWI, "Wave Beam");

LanguageRegistry.addName(ItemIceBeamWI, "Ice Beam");

 

LanguageRegistry.addName(ItemPowerBeamIPW, "Power Beam");

LanguageRegistry.addName(ItemWaveBeamIPW, "Wave Beam");

LanguageRegistry.addName(ItemPlasmaBeamIPW, "Plasma Beam");

LanguageRegistry.addName(ItemIceBeamIPW, "Ice Beam");

 

EntityRegistry.registerModEntity(EntityWaveBolt.class, "WaveBolt", 2,

this, 64, 1, true);

EntityRegistry.registerModEntity(EntityDebugBolt.class, "DebugBolt", 4,

this, 64, 1, true);

EntityRegistry.registerModEntity(EntityPowerBolt.class, "PowerBolt", 5,

this, 64, 1, true);

EntityRegistry.registerModEntity(EntityPlasmaBolt.class, "PlasmaBolt",

6, this, 64, 1, true);

EntityRegistry.registerModEntity(EntityIceBolt.class, "IceBolt", 7,

this, 64, 1, true);

EntityRegistry.registerModEntity(EntityMissile.class, "Missile", 8,

this, 64, 1, true);

EntityRegistry.registerModEntity(EntityChargedPlasmaBolt.class,

"ChargedPlasmaBolt", 9, this, 64, 1, true);

EntityRegistry.registerModEntity(EntityChargedPowerBolt.class,

"ChargedPowerBolt", 10, this, 64, 1, true);

EntityRegistry.registerModEntity(EntityChargedIceBolt.class,

"ChargedIceBolt", 11, this, 64, 1, true);

EntityRegistry.registerModEntity(EntityChargedWaveBolt.class,

"ChargedWaveBolt", 12, this, 64, 1, true);

EntityRegistry.registerModEntity(EntityPhazonBeam.class, "PhazonBeam",

13, this, 64, 1, true);

EntityRegistry.registerModEntity(EntitySpeedBooster.class,

"SpeedBooster", 14, this, 64, 1, true);

EntityRegistry.registerModEntity(EntitySpeedBooster.class,

"ScrewAttack", 15, this, 64, 1, true);

LanguageRegistry.instance().addStringLocalization(

"entity.chimera27metroid.EntityMissile.name", "Missile");

LanguageRegistry.instance().addStringLocalization(

"entity.chimera27metroid.EntityPowerBolt.name", "Power Beam");

LanguageRegistry.instance().addStringLocalization(

"entity.chimera27metroid.EntityIceBolt.name", "Ice Beam");

LanguageRegistry.instance().addStringLocalization(

"entity.chimera27metroid.EntityPlasmaBolt.name", "Plasma Beam");

LanguageRegistry.instance().addStringLocalization(

"entity.chimera27metroid.EntityWaveBolt.name", "Wave Beam");

LanguageRegistry.instance().addStringLocalization(

"entity.chimera27metroid.EntityChargedPowerBolt.name",

"Charged Power Beam");

LanguageRegistry.instance().addStringLocalization(

"entity.chimera27metroid.EntityChargedIceBolt.name",

"Charged Ice Beam");

LanguageRegistry.instance().addStringLocalization(

"entity.chimera27metroid.EntityChargedPlasmaBolt.name",

"Charged Plasma Beam");

LanguageRegistry.instance().addStringLocalization(

"entity.chimera27metroid.EntityChargedWaveBolt.name",

"Charged Wave Beam");

LanguageRegistry.instance().addStringLocalization(

"entity.chimera27metroid.EntityPhazonBeam.name", "Phazon Beam");

LanguageRegistry.instance().addStringLocalization(

"entity.chimera27metroid.EntitySpeedBooster.name",

"Speed Booster");

LanguageRegistry.instance()

.addStringLocalization(

"entity.chimera27metroid.EntitycrewAttack.name",

"Screw Attack");

LanguageRegistry.instance().addStringLocalization(

"chimera27metroid:potion.hypermode", "Hypermode");

LanguageRegistry.instance().addStringLocalization(

"chimera27metroid:potion.hypermodecooldown",

"Emergency Phazon Dispersion");

LanguageRegistry.instance()

.addStringLocalization(

"chimera27metroid:potion.phazonoverload",

"Corrupt Hypermode!!");

LanguageRegistry.instance().addStringLocalization(

"chimera27metroid:potion.phazonpoisoning",

"Radiation Poisoning");

LanguageRegistry.instance().addStringLocalization(

"chimera27metroid:potion.waterboost",

"Water Boost");

 

ItemStack ItemPowerBeamStack = new ItemStack(ItemPowerBeam);

ItemStack ItemWaveBeamStack = new ItemStack(ItemWaveBeam);

ItemStack ItemPlasmaBeamStack = new ItemStack(ItemPlasmaBeam);

ItemStack ItemIceBeamStack = new ItemStack(ItemIceBeam);

ItemStack ItemMissileLauncherStack = new ItemStack(ItemMissileLauncher);

ItemStack ItemPowerSuitHelmetStack = new ItemStack(ItemPowerSuitHelmet);

ItemStack ItemPowerSuitChestplateStack = new ItemStack(

ItemPowerSuitChestplate);

ItemStack ItemPowerSuitLeggingsStack = new ItemStack(

ItemPowerSuitLeggings);

ItemStack ItemPowerSuitBootsStack = new ItemStack(ItemPowerSuitBoots);

ItemStack ItemPowerCoreStack = new ItemStack(ItemPowerCore);

 

GameRegistry.addRecipe(new ItemStack(ItemPowerBeam), " xx", "xzy",

" xx", 'x', Item.ingotIron, 'y', Item.redstone, 'z',

Main.ItemPowerCore);

GameRegistry.addRecipe(new ItemStack(ItemCircuit), "xyx", "yzy",

"xyx", 'x', Item.ingotIron, 'y', Block.blockRedstone, 'z',

Block.blockIron);

GameRegistry.addRecipe(new ItemStack(ItemSpeedBooster), "xyx", "zpp",

"xyx", 'x', ItemHeatShield, 'y', ItemCircuit, 'z',

Item.diamond, 'p', ItemPowerCore);

GameRegistry.addRecipe(new ItemStack(ItemSpaceJump), "  ", "yzy",

"g g", 'y', Item.diamond, 'z', ItemPowerCore, 'g',

ItemGravityDisruptor);

GameRegistry.addRecipe(new ItemStack(ItemScrewAttack), "xyx", "yzy",

"xyx", 'x', ItemPowerCore, 'y', ItemRedstoneCapacitor, 'z',

ItemCircuit);

 

 

GameRegistry.addShapelessRecipe(new ItemStack(ItemVariaSuitSpeed),

ItemVariaSuitLeggings, ItemSpeedBooster);

GameRegistry.addShapelessRecipe(new ItemStack(ItemGravitySuitLeggingsSpeed),

ItemGravitySuitLeggings, ItemSpeedBooster);

GameRegistry.addShapelessRecipe(new ItemStack(ItemGravitySuitLeggingsSpace),

ItemGravitySuitLeggings, ItemSpaceJump);

GameRegistry.addShapelessRecipe(new ItemStack(ItemGravitySuitLeggingsSpaceSpeed),

ItemGravitySuitLeggings, ItemSpeedBooster, ItemSpaceJump);

GameRegistry.addShapelessRecipe(new ItemStack(ItemGravitySuitLeggingsSpaceSpeed),

ItemGravitySuitLeggingsSpeed, ItemSpaceJump);

GameRegistry.addShapelessRecipe(new ItemStack(ItemGravitySuitLeggingsSpaceSpeed),

ItemGravitySuitLeggingsSpace, ItemSpeedBooster);

GameRegistry.addShapelessRecipe(new ItemStack(ItemPhazonSuitLeggingsUltimate),

ItemPhazonSuitLeggings, ItemScrewAttack);

GameRegistry.addRecipe(new ItemStack(ItemPowerSuitHelmet), "xxx",

"xyx", "  ", 'x', Item.ingotIron, 'y', ItemPowerCore);

GameRegistry.addRecipe(new ItemStack(ItemPowerSuitHelmet), "  ",

"xxx", "xyx", 'x', Item.ingotIron, 'y', ItemPowerCore);

GameRegistry.addRecipe(new ItemStack(ItemPowerSuitChestplate), "xyx",

"xxx", "xxx", 'x', Item.ingotIron, 'y', ItemPowerCore);

GameRegistry.addRecipe(new ItemStack(ItemPowerSuitLeggings), "xxx",

"xyx", "x x", 'x', Item.ingotIron, 'y', ItemPowerCore);

GameRegistry.addRecipe(new ItemStack(ItemPowerSuitLeggings), "xxx",

"x x", "xyx", 'x', Item.ingotIron, 'y', ItemPowerCore);

GameRegistry.addRecipe(new ItemStack(ItemPowerSuitBoots), "  ", "x x",

"xyx", 'x', Item.ingotIron, 'y', ItemPowerCore);

GameRegistry.addRecipe(new ItemStack(ItemPowerSuitBoots), "  ", "xyx",

"x x", 'x', Item.ingotIron, 'y', ItemPowerCore);

GameRegistry.addRecipe(new ItemStack(ItemPowerSuitBoots), "x x", "xyx",

"  ", 'x', Item.ingotIron, 'y', ItemPowerCore);

GameRegistry.addRecipe(new ItemStack(ItemPowerSuitBoots), "xyx", "x x",

"  ", 'x', Item.ingotIron, 'y', ItemPowerCore);

GameRegistry.addRecipe(new ItemStack(ItemPowerCore), "xyx", "yzy",

"xyx", 'x', Item.ingotGold, 'y', Block.blockRedstone, 'z',

ItemCircuit);

GameRegistry.addRecipe(new ItemStack(ItemHeatShield), "xyx", "yzy",

"xyx", 'x', Item.netherQuartz, 'y', Item.ingotIron, 'z',

Item.blazeRod);

GameRegistry.addRecipe(new ItemStack(ItemVariaSuitHelmet), "xxx",

"xyx", "  ", 'x', ItemHeatShield, 'y', ItemPowerSuitHelmet);

GameRegistry.addRecipe(new ItemStack(ItemVariaSuitHelmet), "  ",

"xxx", "xyx", 'x', ItemHeatShield, 'y', ItemPowerSuitHelmet);

GameRegistry

.addRecipe(new ItemStack(ItemVariaSuitChestplate), "xyx",

"xxx", "xxx", 'x', ItemHeatShield, 'y',

ItemPowerSuitChestplate);

GameRegistry.addRecipe(new ItemStack(ItemVariaSuitLeggings), "xxx",

"xyx", "x x", 'x', ItemHeatShield, 'y', ItemPowerSuitLeggings);

GameRegistry.addRecipe(new ItemStack(ItemVariaSuitLeggings), "xxx",

"x x", "xyx", 'x', ItemHeatShield, 'y', ItemPowerSuitLeggings);

GameRegistry.addRecipe(new ItemStack(ItemVariaSuitBoots), "  ", "x x",

"xyx", 'x', ItemHeatShield, 'y', ItemPowerSuitBoots);

GameRegistry.addRecipe(new ItemStack(ItemVariaSuitBoots), "  ", "xyx",

"x x", 'x', ItemHeatShield, 'y', ItemPowerSuitBoots);

GameRegistry.addRecipe(new ItemStack(ItemVariaSuitBoots), "x x", "xyx",

"  ", 'x', ItemHeatShield, 'y', ItemPowerSuitBoots);

GameRegistry.addRecipe(new ItemStack(ItemVariaSuitBoots), "xyx", "x x",

"  ", 'x', ItemHeatShield, 'y', ItemPowerSuitBoots);

GameRegistry.addShapelessRecipe(new ItemStack(ItemMissile, 10),

Item.ingotIron, Item.gunpowder);

GameRegistry.addRecipe(new ItemStack(ItemGravityDisruptor), "xyx",

"yzy", "xyx", 'x', Item.eyeOfEnder, 'y', ItemRedstoneCapacitor,

'z', ItemPowerCore);

GameRegistry.addRecipe(new ItemStack(ItemRedstoneCapacitor), "x  ",

"y  ", "x  ", 'x', Item.ingotIron, 'y', Block.blockRedstone);

GameRegistry.addRecipe(new ItemStack(ItemRedstoneCapacitor), "  x",

"  y", "  x", 'x', Item.ingotIron, 'y', Block.blockRedstone);

GameRegistry.addRecipe(new ItemStack(ItemRedstoneCapacitor), " x ",

" y ", " x ", 'x', Item.ingotIron, 'y', Block.blockRedstone);

GameRegistry.addShapelessRecipe(new ItemStack(ItemGravitySuitHelmet),

ItemGravityDisruptor, ItemVariaSuitHelmet);

GameRegistry.addShapelessRecipe(

new ItemStack(ItemGravitySuitChestplate), ItemGravityDisruptor,

ItemVariaSuitChestplate);

GameRegistry.addShapelessRecipe(new ItemStack(ItemGravitySuitLeggings),

ItemGravityDisruptor, ItemVariaSuitLeggings);

GameRegistry.addShapelessRecipe(new ItemStack(ItemGravitySuitBoots),

ItemGravityDisruptor, ItemVariaSuitBoots);

GameRegistry.registerBlock(PhazonOre, "phazonore");

GameRegistry.registerBlock(PhazonSeedOre, "phazonseedore");

GameRegistry.addShapelessRecipe(new ItemStack(ItemPhazonSuitHelmet),

PhazonOre, ItemGravitySuitHelmet, PhazonOre, PhazonOre,

PhazonOre, PhazonOre, PhazonOre, PhazonOre, PhazonOre);

GameRegistry.addShapelessRecipe(

new ItemStack(ItemPhazonSuitChestplate), PhazonOre,

ItemGravitySuitChestplate, PhazonOre, PhazonOre, PhazonOre,

PhazonOre, PhazonOre, PhazonOre, PhazonOre);

GameRegistry.addShapelessRecipe(new ItemStack(ItemPhazonSuitLeggings),

PhazonOre, ItemGravitySuitLeggings, PhazonOre, PhazonOre,

PhazonOre, PhazonOre, PhazonOre, PhazonOre, PhazonOre);

GameRegistry.addShapelessRecipe(new ItemStack(ItemPhazonSuitBoots),

PhazonOre, ItemGravitySuitBoots, PhazonOre, PhazonOre,

PhazonOre, PhazonOre, PhazonOre, PhazonOre, PhazonOre);

GameRegistry.addRecipe(new ItemStack(ItemNovaBeam), " xx", "xyy",

" xx", 'x', ItemHeatShield, 'y', Main.ItemPowerCore);

 

 

 

 

}

 

@EventHandler

public void postInit(FMLPostInitializationEvent event) {

 

}

}

 

 

Creator of Metroid Cubed! Power Suits, Beams, Hypermode and more!

width=174 height=100http://i.imgur.com/ghgWmA3.jpg[/img]

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.

Announcements



×
×
  • Create New...

Important Information

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