2016-01-08 08:32:03 +00:00
|
|
|
package WayofTime.bloodmagic.api.iface;
|
|
|
|
|
2016-02-25 13:54:18 +00:00
|
|
|
import WayofTime.bloodmagic.api.BlockStack;
|
2016-03-17 20:00:44 +00:00
|
|
|
import net.minecraft.util.math.BlockPos;
|
|
|
|
import net.minecraft.world.World;
|
2016-01-08 08:32:03 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Used to define a HarvestHandler for the Harvest Ritual.
|
|
|
|
*/
|
2017-08-16 04:30:48 +00:00
|
|
|
public interface IHarvestHandler {
|
2016-01-08 08:32:03 +00:00
|
|
|
/**
|
2016-03-16 22:41:06 +00: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.
|
2017-08-16 04:30:48 +00:00
|
|
|
*
|
|
|
|
* @param world - The world the
|
|
|
|
* {@link WayofTime.bloodmagic.api.ritual.IMasterRitualStone} is in.
|
|
|
|
* @param pos - The position of the Block being checked
|
|
|
|
* @param blockStack - The Block being checked
|
2016-01-08 08:32:03 +00:00
|
|
|
* @return If the block was successfully harvested.
|
|
|
|
*/
|
|
|
|
boolean harvestAndPlant(World world, BlockPos pos, BlockStack blockStack);
|
|
|
|
}
|