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)
|
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
if (this.isSteven(par3EntityPlayer))
|
if (this.isSteven(par3EntityPlayer))
|
||||||
{
|
{
|
||||||
new Spells(par3EntityPlayer, par1ItemStack.stackSize).cast();
|
new Spells(par3EntityPlayer, par1ItemStack.stackSize).cast();
|
||||||
//mod_pocketDim.proxy.startCasting(par3EntityPlayer, par1ItemStack.stackSize);
|
//mod_pocketDim.proxy.startCasting(par3EntityPlayer, par1ItemStack.stackSize);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Boolean didFindThing=false;
|
Boolean didFindThing=false;
|
||||||
MovingObjectPosition hit = this.getMovingObjectPositionFromPlayer(par3EntityPlayer.worldObj, par3EntityPlayer, false );
|
MovingObjectPosition hit = this.getMovingObjectPositionFromPlayer(par3EntityPlayer.worldObj, par3EntityPlayer, false );
|
||||||
if(hit!=null&&!par2World.isRemote)
|
if(hit!=null&&!par2World.isRemote)
|
||||||
|
@ -143,13 +138,17 @@ public class ItemStableFabric extends Item
|
||||||
|
|
||||||
switch(link.linkOrientation)
|
switch(link.linkOrientation)
|
||||||
{
|
{
|
||||||
case 0: cardinal = "East";
|
case 0:
|
||||||
|
cardinal = "East";
|
||||||
break;
|
break;
|
||||||
case 1: cardinal = "South";
|
case 1:
|
||||||
|
cardinal = "South";
|
||||||
break;
|
break;
|
||||||
case 2: cardinal = "West";
|
case 2:
|
||||||
|
cardinal = "West";
|
||||||
break;
|
break;
|
||||||
case 3: cardinal = "North";
|
case 3:
|
||||||
|
cardinal = "North";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
System.out.println("Link orientation is " + link.linkOrientation + " - " + cardinal);
|
System.out.println("Link orientation is " + link.linkOrientation + " - " + cardinal);
|
||||||
|
@ -157,30 +156,17 @@ public class ItemStableFabric extends Item
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return par1ItemStack;
|
return par1ItemStack;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public boolean isSteven(EntityPlayer player)
|
public boolean isSteven(EntityPlayer player)
|
||||||
{
|
{
|
||||||
if(player.username=="stevenrs11"||player.username=="Stevenrs11"||player.username=="StevenRS11")
|
return (player.username.equalsIgnoreCase("stevenrs11"));
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4)
|
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue