public abstract class FarmLogic extends java.lang.Object implements IFarmLogic
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isManual |
protected IFarmProperties |
properties |
| Constructor and Description |
|---|
FarmLogic(IFarmProperties properties,
boolean isManual) |
| Modifier and Type | Method and Description |
|---|---|
protected net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> |
collectEntityItems(net.minecraft.world.World world,
IFarmHousing farmHousing,
boolean toWorldHeight) |
protected ICrop |
getCrop(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos position) |
protected java.util.Collection<IFarmable> |
getFarmables() |
java.lang.String |
getName() |
IFarmProperties |
getProperties()
Returns the
IFarmProperties that created this logic. |
protected java.util.Collection<ISoil> |
getSoils() |
java.util.Collection<ICrop> |
harvest(net.minecraft.world.World world,
IFarmHousing housing,
net.minecraft.util.math.BlockPos pos,
FarmDirection direction,
int extent) |
abstract boolean |
isAcceptedWindfall(net.minecraft.item.ItemStack stack) |
protected boolean |
isIceBlock(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos position) |
boolean |
isManual() |
protected boolean |
isWaterSourceBlock(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos position) |
FarmLogic |
setManual(boolean flag) |
java.lang.String |
toString() |
protected net.minecraft.util.math.BlockPos |
translateWithOffset(net.minecraft.util.math.BlockPos pos,
FarmDirection farmDirection,
int step) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddSoil, collect, cultivate, getFertilizerConsumption, getIconItemStack, getTextureMap, getUnlocalizedName, getWaterConsumption, harvest, isAcceptedGermling, isAcceptedResourceprotected final IFarmProperties properties
protected final boolean isManual
public FarmLogic(IFarmProperties properties, boolean isManual)
protected java.util.Collection<IFarmable> getFarmables()
protected java.util.Collection<ISoil> getSoils()
public java.lang.String getName()
getName in interface IFarmLogicpublic FarmLogic setManual(boolean flag)
setManual in interface IFarmLogicpublic IFarmProperties getProperties()
IFarmLogicIFarmProperties that created this logic.getProperties in interface IFarmLogicIFarmProperties that created this logic. Returns a fake instance from
IFarmRegistry.createFakeInstance(IFarmLogic) if the logic is older that Forestry 5.8.
TODO: Remove "default" from this method in 1.13public boolean isManual()
isManual in interface IFarmLogicpublic java.util.Collection<ICrop> harvest(net.minecraft.world.World world, IFarmHousing housing, net.minecraft.util.math.BlockPos pos, FarmDirection direction, int extent)
harvest in interface IFarmLogic@Nullable protected ICrop getCrop(net.minecraft.world.World world, net.minecraft.util.math.BlockPos position)
public abstract boolean isAcceptedWindfall(net.minecraft.item.ItemStack stack)
protected final boolean isWaterSourceBlock(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos position)
protected final boolean isIceBlock(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos position)
protected final net.minecraft.util.math.BlockPos translateWithOffset(net.minecraft.util.math.BlockPos pos,
FarmDirection farmDirection,
int step)
protected net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> collectEntityItems(net.minecraft.world.World world,
IFarmHousing farmHousing,
boolean toWorldHeight)
public java.lang.String toString()
toString in class java.lang.Object