The great format and clean up. IMPORTANT: Read below.

All devs and contributors should use the provided formatter settings. 
If your IDE does not support the format, the rules are simple, it is the
default java formatting rules, with 200char line lengths and 1 extra
line after class definitions.
This commit is contained in:
tterrag1098 committed 2015-01-07 19:50:18 -05:00
1 parent 06c5f5930f
commit 82792ed22e
136 files changed
+10365 -11272

No files matched your search

@@ -6,30 +6,26 @@ import net.minecraft.world.World;
import com.cricketcraft.chisel.entity.EntityCloudInABottle;
public class ItemCloudInABottle extends BaseItem
{
public class ItemCloudInABottle extends BaseItem {
public ItemCloudInABottle()
{
super();
setUnlocalizedName("cloudBottle");
}
@Override
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
{
if(!par3EntityPlayer.capabilities.isCreativeMode)
{
--par1ItemStack.stackSize;
}
public ItemCloudInABottle() {
super();
setUnlocalizedName("cloudBottle");
}
if(par2World.isRemote)
par2World.playSoundAtEntity(par3EntityPlayer, "random.bow", 0.5F, 0.4F / (itemRand.nextFloat() * 0.4F + 0.8F));
@Override
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer) {
if (!par3EntityPlayer.capabilities.isCreativeMode) {
--par1ItemStack.stackSize;
}
if(!par2World.isRemote)
{
par2World.spawnEntityInWorld(new EntityCloudInABottle(par2World, par3EntityPlayer));
}
if (par2World.isRemote)
par2World.playSoundAtEntity(par3EntityPlayer, "random.bow", 0.5F, 0.4F / (itemRand.nextFloat() * 0.4F + 0.8F));
return par1ItemStack;
}
if (!par2World.isRemote) {
par2World.spawnEntityInWorld(new EntityCloudInABottle(par2World, par3EntityPlayer));
}
return par1ItemStack;
}
}