Carrot is not fruit (#27)

* Carrot is not fruit

* updateBuildScript & spotlessApply
This commit is contained in:
miozune authored and GitHub committed 2022-08-25 14:10:35 +02:00
1 parent 6973dbc80d
commit c5c3aee2fb
1345 files changed
+92079 -90006

No files matched your search

@@ -1,48 +1,52 @@
/*******************************************************************************
* Copyright 2011-2014 SirSengir
*
*
* This work (the API) is licensed under the "MIT" License, see LICENSE.txt for details.
******************************************************************************/
package forestry.api.farming;
import net.minecraft.world.World;
import net.minecraftforge.fluids.FluidStack;
import forestry.api.core.IErrorLogicSource;
import net.minecraft.world.World;
import net.minecraftforge.fluids.FluidStack;
public interface IFarmHousing extends IErrorLogicSource {
int[] getCoords();
int[] getArea();
int[] getOffset();
World getWorld();
int[] getCoords();
/**
* @return true if any work was done, false otherwise.
*/
boolean doWork();
int[] getArea();
boolean hasLiquid(FluidStack liquid);
void removeLiquid(FluidStack liquid);
int[] getOffset();
/**
* Callback for {@link IFarmLogic}s to plant a sapling, seed, germling, stem.
* Will remove the appropriate germling from the farm's inventory.
* It's up to the logic to only call this on a valid location.
*
* @return true if planting was successful, false otherwise.
*/
boolean plantGermling(IFarmable farmable, World world, int x, int y, int z);
World getWorld();
/* INTERACTION WITH HATCHES */
IFarmInventory getFarmInventory();
/**
* @return true if any work was done, false otherwise.
*/
boolean doWork();
/* LOGIC */
void setFarmLogic(FarmDirection direction, IFarmLogic logic);
void resetFarmLogic(FarmDirection direction);
IFarmLogic getFarmLogic(FarmDirection direction);
boolean hasLiquid(FluidStack liquid);
/* GUI */
int getStoredFertilizerScaled(int scale);
void removeLiquid(FluidStack liquid);
/**
* Callback for {@link IFarmLogic}s to plant a sapling, seed, germling, stem.
* Will remove the appropriate germling from the farm's inventory.
* It's up to the logic to only call this on a valid location.
*
* @return true if planting was successful, false otherwise.
*/
boolean plantGermling(IFarmable farmable, World world, int x, int y, int z);
/* INTERACTION WITH HATCHES */
IFarmInventory getFarmInventory();
/* LOGIC */
void setFarmLogic(FarmDirection direction, IFarmLogic logic);
void resetFarmLogic(FarmDirection direction);
IFarmLogic getFarmLogic(FarmDirection direction);
/* GUI */
int getStoredFertilizerScaled(int scale);
}