Fix #1186 Begin farm cleanup and testing

This commit is contained in:
mezz committed 2016-05-22 03:31:02 -07:00
1 parent 1707573f7d
commit afbde2d735
64 files changed
+1055 -1424

No files matched your search

@@ -5,6 +5,9 @@
******************************************************************************/
package forestry.api.farming;
import javax.annotation.Nullable;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.math.BlockPos;
@@ -23,7 +26,8 @@ public interface IFarmable {
/**
* @return {@link ICrop} if the block at the given location is a harvestable and mature crop, null otherwise.
*/
ICrop getCropAt(World world, BlockPos pos);
@Nullable
ICrop getCropAt(World world, BlockPos pos, IBlockState blockState);
/**
* @return true if the item is a valid germling (plantable sapling, seed, etc.) for this type.