mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-26 06:43:05 +00:00
Add Greenhous Helper and State
This commit is contained in:
1 parent
eebd9c6ecf
commit
a0fb568144
9 files changed
+146
-4
No files matched your search
@@ -27,7 +27,7 @@ public class DefaultGreenhouseLogic implements IGreenhouseLogic {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onWork() {
|
||||
public void work() {
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
/*******************************************************************************
|
||||
* Copyright 2011-2014 SirSengir
|
||||
*
|
||||
* This work (the API) is licensed under the "MIT" License, see LICENSE.txt for details.
|
||||
******************************************************************************/
|
||||
package forestry.api.greenhouse;
|
||||
|
||||
import net.minecraft.util.BlockPos;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public interface IGreenhouseHelper {
|
||||
|
||||
IGreenhouseState getGreenhouseState(World world, BlockPos pos);
|
||||
|
||||
}
|
||||
@@ -16,7 +16,7 @@ import forestry.api.multiblock.IGreenhouseController;
|
||||
|
||||
public interface IGreenhouseLogic extends INbtWritable, INbtReadable {
|
||||
|
||||
void onWork();
|
||||
void work();
|
||||
|
||||
void onChange(EnumGreenhouseChangeType type, Object event);
|
||||
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
/*******************************************************************************
|
||||
* Copyright 2011-2014 SirSengir
|
||||
*
|
||||
* This work (the API) is licensed under the "MIT" License, see LICENSE.txt for details.
|
||||
******************************************************************************/
|
||||
package forestry.api.greenhouse;
|
||||
|
||||
import forestry.api.core.EnumHumidity;
|
||||
import forestry.api.core.EnumTemperature;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public interface IGreenhouseState {
|
||||
|
||||
EnumTemperature getTemperature();
|
||||
|
||||
EnumHumidity getHumidity();
|
||||
|
||||
float getExactTemperature();
|
||||
|
||||
float getExactHumidity();
|
||||
|
||||
World getWorld();
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user