public interface IFarmerBehavior
| Modifier and Type | Method and Description |
|---|---|
boolean |
tryHarvestPlant(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
IFarmer farmer)
Try to harvest a plant with this behavior
|
boolean |
tryPlantSeed(net.minecraft.item.ItemStack seed,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
IFarmer farmer)
Try to plant a seed with this behavior
If this method return true, the seed ItemStack will have one item deducted from it.
|
boolean tryPlantSeed(net.minecraft.item.ItemStack seed,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
IFarmer farmer)
seed - The seed stack to plantworld - The worldpos - The position to plant the seed onfarmer - The Farmer doing this action. Can be used to query and extract energy and add items to the slotsboolean tryHarvestPlant(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
IFarmer farmer)
world - The worldpos - The position of the plantfarmer - The Farmer doing this action. Can be used to query and extract energy and add items to the slots