Test with stuff + Forestry potential support
This commit is contained in:
parent
5b05cf651b
commit
bd26e441cb
174 changed files with 5602 additions and 0 deletions
46
BM_src/forestry/api/genetics/IHousing.java
Normal file
46
BM_src/forestry/api/genetics/IHousing.java
Normal file
|
@ -0,0 +1,46 @@
|
|||
package forestry.api.genetics;
|
||||
|
||||
import forestry.api.core.EnumHumidity;
|
||||
import forestry.api.core.EnumTemperature;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
String 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);
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue