/******************************************************************************* * Copyright 2011-2014 SirSengir * * This work (the API) is licensed under the "MIT" License, see LICENSE.txt for details. ******************************************************************************/ package forestry.api.genetics; import com.mojang.authlib.GameProfile; import forestry.api.core.EnumHumidity; import forestry.api.core.EnumTemperature; import forestry.api.core.IErrorState; import net.minecraft.item.ItemStack; import net.minecraft.world.World; import net.minecraft.world.biome.BiomeGenBase; /** * 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(); /** * @deprecated since 3.2. Use getBiome(). */ @Deprecated int getBiomeId(); BiomeGenBase getBiome(); EnumTemperature getTemperature(); EnumHumidity getHumidity(); /** * @deprecated since Forestry 3.2.0. Use EnumErrorCode version instead. */ @Deprecated void setErrorState(int state); void setErrorState(IErrorState state); /** * @deprecated since Forestry 3.2.0. Use getErrorState instead. */ @Deprecated int getErrorOrdinal(); IErrorState getErrorState(); /** * Adds products to the housing's inventory. * * @param product * ItemStack with the product to add. * @param all * if true, success requires that all products are added * @return Boolean indicating success or failure. */ boolean addProduct(ItemStack product, boolean all); }