Normalized code formatting.

This commit is contained in:
WayofTime 2016-03-16 18:41:06 -04:00
parent b1db7c5152
commit 134b11f177
122 changed files with 944 additions and 697 deletions

View file

@ -14,9 +14,8 @@ import WayofTime.bloodmagic.api.iface.IHarvestHandler;
import WayofTime.bloodmagic.api.registry.HarvestRegistry;
/**
* Harvest handler for standard plantable crops such as
* Wheat, Potatoes, and Netherwart.
* <br>
* Harvest handler for standard plantable crops such as Wheat, Potatoes, and
* Netherwart. <br>
* Register a new crop for this handler with
* {@link HarvestRegistry#registerStandardCrop(Block, int)}
*/
@ -38,13 +37,14 @@ public class HarvestHandlerPlantable implements IHarvestHandler
int matureMeta = HarvestRegistry.getStandardCrops().get(blockStack.getBlock());
if(blockStack.getMeta() < matureMeta)
if (blockStack.getMeta() < matureMeta)
return false;
List<ItemStack> drops = blockStack.getBlock().getDrops(world, pos, blockStack.getState(), 0);
boolean foundSeed = false;
for (ItemStack stack : drops) {
for (ItemStack stack : drops)
{
if (stack == null)
continue;
@ -53,7 +53,7 @@ public class HarvestHandlerPlantable implements IHarvestHandler
if (stack.stackSize > 1)
stack.stackSize--;
else
drops.remove(stack);
drops.remove(stack);
foundSeed = true;
break;

View file

@ -17,10 +17,9 @@ import WayofTime.bloodmagic.api.registry.HarvestRegistry;
/**
* Harvest handler for crops with stems such as Pumpkins and Melons.
* {@link OreDictionary#WILDCARD_VALUE} is used as a wildcard to allow
* the crop to be harvested at any metadata. Rotation based crop blocks
* are a good reason to use this (see pumpkins).
* <br>
* {@link OreDictionary#WILDCARD_VALUE} is used as a wildcard to allow the crop
* to be harvested at any metadata. Rotation based crop blocks are a good reason
* to use this (see pumpkins). <br>
* Register a new crop for this handler with
* {@link HarvestRegistry#registerStemCrop(BlockStack, BlockStack)}
*/

View file

@ -13,9 +13,7 @@ import WayofTime.bloodmagic.api.iface.IHarvestHandler;
import WayofTime.bloodmagic.api.registry.HarvestRegistry;
/**
* Harvest handler for crops that grow vertically such as
* Sugar Cane and Cactus.
* <br>
* Harvest handler for crops that grow vertically such as Sugar Cane and Cactus. <br>
* Register a new crop for this handler with
* {@link HarvestRegistry#registerTallCrop(BlockStack)}
*/