public abstract class FarmLogicHomogeneous extends FarmLogicSoil
isManual, properties| Constructor and Description |
|---|
FarmLogicHomogeneous(IFarmProperties properties,
boolean isManual) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cultivate(net.minecraft.world.World world,
IFarmHousing farmHousing,
net.minecraft.util.math.BlockPos pos,
FarmDirection direction,
int extent)
Tries to cultivate one or more blocks at the given position and with the given extent.
|
boolean |
isAcceptedGermling(net.minecraft.item.ItemStack itemstack)
Checks if the given stack is a germling (plantable sapling, seed, etc.) for any
IFarmable of this farm. |
boolean |
isAcceptedWindfall(net.minecraft.item.ItemStack itemstack) |
protected abstract boolean |
maintainGermlings(net.minecraft.world.World world,
IFarmHousing farmHousing,
net.minecraft.util.math.BlockPos pos,
FarmDirection direction,
int extent) |
protected boolean |
trySetCrop(net.minecraft.world.World world,
IFarmHousing farmHousing,
net.minecraft.util.math.BlockPos position,
FarmDirection direction) |
isAcceptedResource, isAcceptedSoilcollectEntityItems, getCrop, getFarmables, getName, getProperties, getSoils, harvest, isIceBlock, isManual, isWaterSourceBlock, setManual, toString, translateWithOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddSoil, collect, getFertilizerConsumption, getIconItemStack, getTextureMap, getUnlocalizedName, getWaterConsumption, harvestpublic FarmLogicHomogeneous(IFarmProperties properties, boolean isManual)
public boolean isAcceptedGermling(net.minecraft.item.ItemStack itemstack)
IFarmLogicIFarmable of this farm.public boolean isAcceptedWindfall(net.minecraft.item.ItemStack itemstack)
isAcceptedWindfall in class FarmLogicprotected boolean trySetCrop(net.minecraft.world.World world,
IFarmHousing farmHousing,
net.minecraft.util.math.BlockPos position,
FarmDirection direction)
public boolean cultivate(net.minecraft.world.World world,
IFarmHousing farmHousing,
net.minecraft.util.math.BlockPos pos,
FarmDirection direction,
int extent)
IFarmLogicworld - The world of the farm.farmHousing - The farm that uses this logic.pos - The position at that the logic should start to cultivate.direction - The direction of the extension.extent - How many blocks this logic has to cultivate after it cultivated the block at the given position.
The positions of the next blocks are having a offset in the given direction.protected abstract boolean maintainGermlings(net.minecraft.world.World world,
IFarmHousing farmHousing,
net.minecraft.util.math.BlockPos pos,
FarmDirection direction,
int extent)