2016-01-08 00:32:03 -08:00
|
|
|
package WayofTime.bloodmagic.api.iface;
|
|
|
|
|
|
|
|
import net.minecraft.util.BlockPos;
|
|
|
|
import net.minecraft.world.World;
|
2016-02-25 08:54:18 -05:00
|
|
|
import WayofTime.bloodmagic.api.BlockStack;
|
2016-01-08 00:32:03 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Used to define a HarvestHandler for the Harvest Ritual.
|
|
|
|
*/
|
|
|
|
public interface IHarvestHandler
|
|
|
|
{
|
|
|
|
/**
|
2016-03-16 18:41:06 -04:00
|
|
|
* Called whenever the Harvest Ritual attempts to harvest a block. <br>
|
|
|
|
* Use this to break the block, plant a new one, and drop the produced
|
|
|
|
* items. <br>
|
|
|
|
* Make sure to do checks so you are certain the blocks being handled are
|
|
|
|
* the block types you want.
|
|
|
|
*
|
2016-01-08 00:32:03 -08:00
|
|
|
* @param world
|
2016-03-16 18:41:06 -04:00
|
|
|
* - The world the
|
|
|
|
* {@link WayofTime.bloodmagic.api.ritual.IMasterRitualStone} is in.
|
2016-01-08 00:32:03 -08:00
|
|
|
* @param pos
|
2016-03-16 18:41:06 -04:00
|
|
|
* - The position of the Block being checked
|
2016-01-08 00:32:03 -08:00
|
|
|
* @param blockStack
|
2016-03-16 18:41:06 -04:00
|
|
|
* - The Block being checked
|
|
|
|
*
|
2016-01-08 00:32:03 -08:00
|
|
|
* @return If the block was successfully harvested.
|
|
|
|
*/
|
|
|
|
boolean harvestAndPlant(World world, BlockPos pos, BlockStack blockStack);
|
|
|
|
}
|