public abstract class FarmLogicWatered extends FarmLogicSoil
| Modifier and Type | Class and Description |
|---|---|
static class |
FarmLogicWatered.CultivationType |
isManual, properties| Constructor and Description |
|---|
FarmLogicWatered(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.
|
int |
getFertilizerConsumption() |
int |
getWaterConsumption(float hydrationModifier) |
protected boolean |
isValidPosition(IFarmHousing housing,
FarmDirection direction,
net.minecraft.util.math.BlockPos pos,
FarmLogicWatered.CultivationType type) |
protected boolean |
maintainCrops(net.minecraft.world.World world,
IFarmHousing farmHousing,
net.minecraft.util.math.BlockPos pos,
FarmDirection direction,
int extent) |
protected boolean |
maintainSoil(net.minecraft.world.World world,
IFarmHousing farmHousing,
net.minecraft.util.math.BlockPos pos,
FarmDirection direction,
int extent) |
protected boolean |
maintainWater(net.minecraft.world.World world,
IFarmHousing farmHousing,
net.minecraft.util.math.BlockPos pos,
FarmDirection direction,
int extent) |
protected boolean |
trySetSoil(net.minecraft.world.World world,
IFarmHousing farmHousing,
net.minecraft.util.math.BlockPos position,
net.minecraft.item.ItemStack resource,
net.minecraft.block.state.IBlockState ground) |
protected boolean |
trySetWater(net.minecraft.world.World world,
IFarmHousing farmHousing,
net.minecraft.util.math.BlockPos position) |
isAcceptedResource, isAcceptedSoilcollectEntityItems, getCrop, getFarmables, getName, getProperties, getSoils, harvest, isAcceptedWindfall, isIceBlock, isManual, isWaterSourceBlock, setManual, toString, translateWithOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddSoil, collect, getIconItemStack, getTextureMap, getUnlocalizedName, harvest, isAcceptedGermlingpublic FarmLogicWatered(IFarmProperties properties, boolean isManual)
public int getFertilizerConsumption()
IFarmHousing automatically removes after this logic cultivated
a block or harvested a crop.public int getWaterConsumption(float hydrationModifier)
hydrationModifier - A modifier that depends on the weather and the biome of the farm.IFarmHousing automatically removes after this logic cultivated
a block or harvested a crop.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 boolean isValidPosition(IFarmHousing housing, FarmDirection direction, net.minecraft.util.math.BlockPos pos, FarmLogicWatered.CultivationType type)
protected boolean maintainSoil(net.minecraft.world.World world,
IFarmHousing farmHousing,
net.minecraft.util.math.BlockPos pos,
FarmDirection direction,
int extent)
protected boolean maintainWater(net.minecraft.world.World world,
IFarmHousing farmHousing,
net.minecraft.util.math.BlockPos pos,
FarmDirection direction,
int extent)
protected boolean maintainCrops(net.minecraft.world.World world,
IFarmHousing farmHousing,
net.minecraft.util.math.BlockPos pos,
FarmDirection direction,
int extent)
protected boolean trySetSoil(net.minecraft.world.World world,
IFarmHousing farmHousing,
net.minecraft.util.math.BlockPos position,
net.minecraft.item.ItemStack resource,
net.minecraft.block.state.IBlockState ground)
protected boolean trySetWater(net.minecraft.world.World world,
IFarmHousing farmHousing,
net.minecraft.util.math.BlockPos position)