Improve the greenhouse controller

This commit is contained in:
Nedelosk committed 2016-04-25 20:40:55 +02:00
1 parent 080dd93dc2
commit 7ca28d4d10
7 files changed
+156 -44

No files matched your search

@@ -10,14 +10,29 @@ import net.minecraft.world.World;
public interface ICamouflageHandler{
/**
* @return The item of the block that is the camouflage of this handler for the EnumCamouflageType.
*/
ItemStack getCamouflageBlock(EnumCamouflageType type);
/**
* @return The default camouflage block item for the EnumCamouflageType.
*/
ItemStack getDefaultCamouflageBlock(EnumCamouflageType type);
/**
* Set the camouflage block item for the EnumCamouflageType.
*/
void setCamouflageBlock(EnumCamouflageType type, ItemStack camouflageBlock);
/**
* @return The coordinates of the handler as a BlockPos.
*/
BlockPos getCoordinates();
/**
* @return The world of the handler.
*/
World getWorld();
}
@@ -21,7 +21,7 @@ public interface IGreenhouseHousing extends IErrorLogicSource {
float getExactHumidity();
/**
* @return The world in that the housing is
* @return The world in that the housing is.
*/
World getWorld();
@@ -16,12 +16,12 @@ import forestry.api.greenhouse.IGreenhouseLogic;
public interface IGreenhouseController extends IMultiblockController, IGreenhouseHousing, ICamouflageHandler, IClimateControlled {
/**
* Handle change events
* Handle change events.
*/
void onChange(EnumGreenhouseEventType type, Object event);
/**
* @return The logics of the greenhouse
* @return The logics of the greenhouse.
*/
List<IGreenhouseLogic> getLogics();