BloodMagic/src/main/java/WayofTime/alchemicalWizardry/api/harvest/IHarvestHandler.java

19 lines
569 B
Java
Raw Normal View History

2014-07-15 23:23:57 +00:00
package WayofTime.alchemicalWizardry.api.harvest;
import net.minecraft.block.Block;
2015-07-29 12:23:01 +00:00
import net.minecraft.block.state.IBlockState;
import net.minecraft.util.BlockPos;
2014-07-15 23:23:57 +00:00
import net.minecraft.world.World;
2014-10-13 20:33:20 +00:00
public interface IHarvestHandler
{
/**
* A handler that is used to harvest and replant the block at the specified location
*
* @param world
* @param block block at this given location
* @return true if successfully harvested, false if not
*/
2015-07-29 12:23:01 +00:00
boolean harvestAndPlant(World world, BlockPos pos, Block block, IBlockState state);
2014-07-15 23:23:57 +00:00
}