mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-19 03:39:09 +00:00
Move files
This commit is contained in:
1 parent
a958073079
commit
3429114d2a
274 files changed
+37547
-11
No files matched your search
@@ -0,0 +1,48 @@
|
||||
/*******************************************************************************
|
||||
* 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;
|
||||
|
||||
public interface IFarmHousing extends IErrorLogicSource {
|
||||
|
||||
int[] getCoords();
|
||||
int[] getArea();
|
||||
int[] getOffset();
|
||||
World getWorld();
|
||||
|
||||
/**
|
||||
* @return true if any work was done, false otherwise.
|
||||
*/
|
||||
boolean doWork();
|
||||
|
||||
boolean hasLiquid(FluidStack liquid);
|
||||
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);
|
||||
}
|
||||
Reference in new issue
Block a user