public interface IFarmerBehavior
| Modifier and Type | Method and Description |
|---|---|
default java.lang.Integer |
getPrioInt() |
int |
getPriority() |
FarmerResult |
tryHarvestPlant(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
IFarmer farmer)
Try to harvest a plant with this behavior
|
FarmerResult |
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 returns true, the seed ItemStack will be shrunk by one.
|
FarmerResult 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 slotsFarmerResult 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 slotsint getPriority()
default java.lang.Integer getPrioInt()