Fix a bug

This commit is contained in:
Nedelosk committed 2016-06-13 22:14:03 +02:00
1 parent ba7ef4228c
commit 28e7b561ea
7 files changed
+35 -4

No files matched your search

@@ -35,6 +35,6 @@ public interface IClimateManager {
Map<Integer, List<IClimateRegion>> getRegions();
@Nonnull
Map<Integer, List<IClimateSource>> getSources();
Map<Integer, Map<BlockPos, IClimateSource>> getSources();
}
@@ -6,6 +6,7 @@
package forestry.api.core.climate;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
/**
* A climate source is used to change the climate in a region.
@@ -18,6 +19,8 @@ public interface IClimateSource {
*/
void changeClimate(int tickCount, IClimateRegion region);
World getWorld();
BlockPos getPos();
}
@@ -10,7 +10,7 @@ import forestry.api.multiblock.IGreenhouseController;
public class DefaultGreenhouseListener implements IGreenhouseListener {
@Override
public <G extends IGreenhouseController & IGreenhouseHousing> boolean canWork(G greenhouse, boolean canWork) {
public boolean canWork(IGreenhouseController greenhouse, boolean canWork) {
return true;
}