Add missing files

This commit is contained in:
Nedelosk committed 2016-03-18 23:56:20 +01:00
1 parent a0fb568144
commit 252a08f416
7 files changed
+37 -7

No files matched your search

@@ -4,16 +4,20 @@
* This work (the API) is licensed under the "MIT" License, see LICENSE.txt for details.
******************************************************************************/
package forestry.api.core;
import forestry.core.tiles.ILocatable;
import net.minecraft.item.ItemStack;
import net.minecraft.util.BlockPos;
import net.minecraft.world.World;
public interface ICamouflageHandler extends ILocatable {
public interface ICamouflageHandler{
ItemStack getCamouflageBlock(EnumCamouflageType type);
ItemStack getDefaultCamouflageBlock(EnumCamouflageType type);
void setCamouflageBlock(EnumCamouflageType type, ItemStack camouflageBlock);
BlockPos getCoordinates();
World getWorld();
}
@@ -5,10 +5,15 @@
******************************************************************************/
package forestry.api.core;
import forestry.core.tiles.ILocatable;
import net.minecraft.util.BlockPos;
import net.minecraft.world.World;
public interface ICamouflagedBlock extends ILocatable {
public interface ICamouflagedBlock {
EnumCamouflageType getCamouflageType();
BlockPos getCoordinates();
World getWorld();
}
@@ -12,6 +12,8 @@ public class GreenhouseManager {
public static IGreenhouseAccess greenhouseAccess;
public static IGreenhouseHelper greenhouseHelper;
public static List<Class<? extends IGreenhouseLogic>> greenhouseLogics = new ArrayList();
}
@@ -5,13 +5,22 @@
******************************************************************************/
package forestry.api.greenhouse;
import forestry.api.core.EnumHumidity;
import forestry.api.core.EnumTemperature;
import forestry.api.core.IErrorLogicSource;
import forestry.core.tiles.IClimatised;
import net.minecraft.util.BlockPos;
import net.minecraft.world.World;
public interface IGreenhouseHousing extends IErrorLogicSource, IClimatised {
public interface IGreenhouseHousing extends IErrorLogicSource {
EnumTemperature getTemperature();
EnumHumidity getHumidity();
float getExactTemperature();
float getExactHumidity();
World getWorld();
boolean isInGreenhouse(BlockPos pos);
@@ -48,6 +48,7 @@ public class PluginGreenhouse extends BlankForestryPlugin {
@Override
public void setupAPI() {
GreenhouseManager.greenhouseAccess = new GreenhouseAccess();
GreenhouseManager.greenhouseHelper = new GreenhouseHelper();
}
@Override
@@ -16,6 +16,7 @@ import java.util.List;
import forestry.api.core.EnumCamouflageType;
import forestry.api.greenhouse.EnumGreenhouseChangeType;
import forestry.api.greenhouse.IGreenhouseLogic;
import forestry.api.greenhouse.IGreenhouseState;
import forestry.core.fluids.FakeTankManager;
import forestry.core.fluids.ITankManager;
import forestry.core.inventory.FakeInventoryAdapter;
@@ -92,4 +93,9 @@ public class FakeGreenhouseController extends FakeMultiblockController implement
public void addHumidityChange(float change, float boundaryDown, float boundaryUp) {
}
@Override
public IGreenhouseState createState() {
return null;
}
}
@@ -12,6 +12,7 @@ package forestry.greenhouse.multiblock;
import javax.annotation.Nullable;
import forestry.api.greenhouse.IGreenhouseState;
import forestry.api.multiblock.IGreenhouseController;
import forestry.core.access.IRestrictedAccess;
import forestry.core.fluids.ITankManager;
@@ -29,6 +30,8 @@ public interface IGreenhouseControllerInternal extends IGreenhouseController, IM
@Nullable
EnergyManager getEnergyManager();
IGreenhouseState createState();
void createLogics();
}