blob: 6846341c92fe85621d7f77edd5ba718d370fa6bc [file] [log] [blame] [raw]
/*******************************************************************************
* Copyright 2011-2014 SirSengir
*
* This work (the API) is licensed under the "MIT" License, see LICENSE.txt for details.
******************************************************************************/
package forestry.api.genetics;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import com.mojang.authlib.GameProfile;
import forestry.api.core.EnumHumidity;
import forestry.api.core.EnumTemperature;
/**
* Any housing, hatchery or nest which is a fixed location in the world.
*/
public interface IHousing {
/**
* @return String containing the login of this housing's owner.
*/
GameProfile getOwnerName();
World getWorld();
int getXCoord();
int getYCoord();
int getZCoord();
int getBiomeId();
EnumTemperature getTemperature();
EnumHumidity getHumidity();
void setErrorState(int state);
int getErrorOrdinal();
/**
* Adds products to the housing's inventory.
*
* @param product
* ItemStack with the product to add.
* @param all
* @return Boolean indicating success or failure.
*/
boolean addProduct(ItemStack product, boolean all);
}