mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-18 03:15:28 +00:00
Add clima manager and add greenhouse controller to multiblock logic factory
This commit is contained in:
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();
|
||||
}
|
||||
Reference in new issue
Block a user