Add clima manager and add greenhouse controller to multiblock logic factory

This commit is contained in:
Nedelosk committed 2016-03-19 16:11:22 +01:00
1 parent a828c6a006
commit cd4061b1fe
8 files changed
+82 -6

No files matched your search

@@ -46,6 +46,8 @@ public class ForestryAPI {
*/
@SideOnly(Side.CLIENT)
public static IModelManager modelManager;
public static IClimateManager climateManager;
/**
* The currently active {@link IGameMode}.
@@ -0,0 +1,17 @@
/*******************************************************************************
* Copyright 2011-2014 SirSengir
*
* This work (the API) is licensed under the "MIT" License, see LICENSE.txt for details.
******************************************************************************/
package forestry.api.core;
import net.minecraft.util.BlockPos;
import net.minecraft.world.World;
public interface IClimateManager {
float getTemperature(World world, BlockPos pos);
float getHumidity(World world, BlockPos pos);
}
@@ -13,4 +13,6 @@ public interface IMultiblockLogicFactory {
IMultiblockLogicAlveary createAlvearyLogic();
IMultiblockLogicFarm createFarmLogic();
IMultiblockLogicGreenhouse createGreenhouseLogic();
}