1.7.10 moving forward to v1.1.0!

This commit is contained in:
WayofTime 2014-07-15 19:23:57 -04:00
parent 1778cfa737
commit a92efa364d
51 changed files with 849 additions and 175 deletions

View file

@ -23,7 +23,7 @@ public class HarvestRegistry
for(IHarvestHandler handler : handlerList)
{
if(handler.canHandleBlock(block) && handler.harvestAndPlant(world, xCoord, yCoord, zCoord, block, meta))
if(handler.harvestAndPlant(world, xCoord, yCoord, zCoord, block, meta))
{
return true;
}

View file

@ -6,11 +6,16 @@ import net.minecraftforge.common.IPlantable;
public interface IHarvestHandler
{
public boolean canHandleBlock(Block block);
public int getHarvestMeta(Block block);
/**
* A handler that is used to harvest and replant the block at the specified location
*
* @param world
* @param xCoord
* @param yCoord
* @param zCoord
* @param block block at this given location
* @param meta meta at this given location
* @return true if successfully harvested, false if not
*/
public boolean harvestAndPlant(World world, int xCoord, int yCoord, int zCoord, Block block, int meta);
public IPlantable getSeedItem(Block block);
}