public class FarmLogicGourd extends FarmLogicWatered
FarmLogicWatered.CultivationTypeisManual, properties| Constructor and Description |
|---|
FarmLogicGourd(IFarmProperties properties,
boolean isManual) |
| Modifier and Type | Method and Description |
|---|---|
int |
getFertilizerConsumption() |
net.minecraft.item.ItemStack |
getIconItemStack() |
java.lang.String |
getUnlocalizedName() |
int |
getWaterConsumption(float hydrationModifier) |
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 stack) |
protected boolean |
isValidPosition(IFarmHousing housing,
FarmDirection direction,
net.minecraft.util.math.BlockPos position,
FarmLogicWatered.CultivationType type) |
protected boolean |
maintainCrops(net.minecraft.world.World world,
IFarmHousing farmHousing,
net.minecraft.util.math.BlockPos pos,
FarmDirection direction,
int extent) |
cultivate, maintainSoil, maintainWater, trySetSoil, trySetWaterisAcceptedResource, isAcceptedSoilcollectEntityItems, getCrop, getFarmables, getName, getProperties, getSoils, harvest, isIceBlock, isManual, isWaterSourceBlock, setManual, toString, translateWithOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddSoil, collect, getTextureMap, harvestpublic FarmLogicGourd(IFarmProperties properties, boolean isManual)
public net.minecraft.item.ItemStack getIconItemStack()
public java.lang.String getUnlocalizedName()
public int getFertilizerConsumption()
getFertilizerConsumption in interface IFarmLogicgetFertilizerConsumption in class FarmLogicWateredIFarmHousing automatically removes after this logic cultivated
a block or harvested a crop.public int getWaterConsumption(float hydrationModifier)
getWaterConsumption in interface IFarmLogicgetWaterConsumption in class FarmLogicWateredhydrationModifier - 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 isAcceptedGermling(net.minecraft.item.ItemStack itemstack)
IFarmLogicIFarmable of this farm.public boolean isAcceptedWindfall(net.minecraft.item.ItemStack stack)
isAcceptedWindfall in class FarmLogicprotected boolean maintainCrops(net.minecraft.world.World world,
IFarmHousing farmHousing,
net.minecraft.util.math.BlockPos pos,
FarmDirection direction,
int extent)
maintainCrops in class FarmLogicWateredprotected boolean isValidPosition(IFarmHousing housing, FarmDirection direction, net.minecraft.util.math.BlockPos position, FarmLogicWatered.CultivationType type)
isValidPosition in class FarmLogicWatered