im having trouble closing this class, ive been trying for 2 hours
Its a huge collection of ifs
package net.minecraft.src;
import java.util.Random;
import java.util.*;
public class ItemTestItem extends Item
{
public int TimesShot;
public ItemTestItem(int i)
{
super(i);
maxStackSize = 1;
setMaxDamage(50);
}
public void onUpdate(ItemStack itemstack, World world, EntityLiving entityliving, int i, boolean flag)
{
if(itemstack.getItemDamage() != 0)
{
itemstack.damageItem(-1, entityliving);
}
}
public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer entityplayer, TimesShot timesshot)
{
if(timesshot == 5)
{
if(itemstack.getItemDamage() == 0)
{
if(entityplayer.inventory.consumeInventoryItem(mod_WIP.LAWRocket.shiftedIndex))
{
world.playSoundAtEntity(entityplayer, "random.bow", 1.0F, 1.0F / (itemRand.nextFloat() * 0.4F + 0.8F));
if(!world.multiplayerWorld)
{
world.entityJoinedWorld(new EntityRocketLAW(world, entityplayer));
itemstack.damageItem(50, entityplayer);
timesshot = 0;
return itemstack;
} else {
if(itemstack.getItemDamage() == 0)
{
if(entityplayer.inventory.consumeInventoryItem(mod_WIP.LAWRocket.shiftedIndex))
{
world.playSoundAtEntity(entityplayer, "random.bow", 1.0F, 1.0F / (itemRand.nextFloat() * 0.4F + 0.8F));
if(!world.multiplayerWorld)
{
world.entityJoinedWorld(new EntityRocketLAW(world, entityplayer));
++timesshot;
{
itemstack.damageItem(6, entityplayer);
return itemstack;
}
}
}
The error is a end of file parsing
help please