Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
156 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
src/main/java/forestry/greenhouse/FakeGreenhouseState.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2011-2014 SirSengir. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the GNU Lesser Public License v3 | ||
* which accompanies this distribution, and is available at | ||
* http://www.gnu.org/licenses/lgpl-3.0.txt | ||
* | ||
* Various Contributors including, but not limited to: | ||
* SirSengir (original work), CovertJaguar, Player, Binnie, MysteriousAges | ||
******************************************************************************/ | ||
package forestry.greenhouse; | ||
|
||
import java.util.Collection; | ||
import java.util.Collections; | ||
import java.util.List; | ||
|
||
import forestry.api.core.EnumHumidity; | ||
import forestry.api.core.EnumTemperature; | ||
import forestry.api.greenhouse.IGreenhouseState; | ||
import forestry.api.greenhouse.IInternalBlock; | ||
import forestry.api.multiblock.IMultiblockComponent; | ||
import net.minecraft.world.World; | ||
|
||
public class FakeGreenhouseState implements IGreenhouseState { | ||
|
||
public static final FakeGreenhouseState instance = new FakeGreenhouseState(); | ||
|
||
@Override | ||
public EnumTemperature getTemperature() { | ||
return null; | ||
} | ||
|
||
@Override | ||
public EnumHumidity getHumidity() { | ||
return null; | ||
} | ||
|
||
@Override | ||
public float getExactTemperature() { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public float getExactHumidity() { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public List<IInternalBlock> getInternalBlocks() { | ||
return Collections.emptyList(); | ||
} | ||
|
||
@Override | ||
public Collection<IMultiblockComponent> getGreenhouseComponents() { | ||
return Collections.emptyList(); | ||
} | ||
|
||
@Override | ||
public World getWorld() { | ||
return null; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters