Cleaned up ItemStableFabric
Cleaned up the indentation of ItemStableFabric and corrected some faulty String comparisons.
This commit is contained in:
parent
654a479692
commit
3b88d3a116
1 changed files with 121 additions and 135 deletions
|
@ -93,17 +93,12 @@ public class ItemStableFabric extends Item
|
|||
|
||||
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
|
||||
{
|
||||
|
||||
|
||||
if (this.isSteven(par3EntityPlayer))
|
||||
{
|
||||
new Spells(par3EntityPlayer, par1ItemStack.stackSize).cast();
|
||||
//mod_pocketDim.proxy.startCasting(par3EntityPlayer, par1ItemStack.stackSize);
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Boolean didFindThing=false;
|
||||
MovingObjectPosition hit = this.getMovingObjectPositionFromPlayer(par3EntityPlayer.worldObj, par3EntityPlayer, false );
|
||||
if(hit!=null&&!par2World.isRemote)
|
||||
|
@ -143,13 +138,17 @@ public class ItemStableFabric extends Item
|
|||
|
||||
switch(link.linkOrientation)
|
||||
{
|
||||
case 0: cardinal = "East";
|
||||
case 0:
|
||||
cardinal = "East";
|
||||
break;
|
||||
case 1: cardinal = "South";
|
||||
case 1:
|
||||
cardinal = "South";
|
||||
break;
|
||||
case 2: cardinal = "West";
|
||||
case 2:
|
||||
cardinal = "West";
|
||||
break;
|
||||
case 3: cardinal = "North";
|
||||
case 3:
|
||||
cardinal = "North";
|
||||
break;
|
||||
}
|
||||
System.out.println("Link orientation is " + link.linkOrientation + " - " + cardinal);
|
||||
|
@ -157,30 +156,17 @@ public class ItemStableFabric extends Item
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
return par1ItemStack;
|
||||
|
||||
}
|
||||
|
||||
|
||||
public boolean isSteven(EntityPlayer player)
|
||||
{
|
||||
if(player.username=="stevenrs11"||player.username=="Stevenrs11"||player.username=="StevenRS11")
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return (player.username.equalsIgnoreCase("stevenrs11"));
|
||||
}
|
||||
|
||||
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4)
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue