Test with stuff + Forestry potential support
This commit is contained in:
parent
5b05cf651b
commit
bd26e441cb
174 changed files with 5602 additions and 0 deletions
8
BM_src/forestry/api/food/BeverageManager.java
Normal file
8
BM_src/forestry/api/food/BeverageManager.java
Normal file
|
@ -0,0 +1,8 @@
|
|||
package forestry.api.food;
|
||||
|
||||
public class BeverageManager {
|
||||
public static IBeverageEffect[] effectList = new IBeverageEffect[128];
|
||||
|
||||
public static IInfuserManager infuserManager;
|
||||
public static IIngredientManager ingredientManager;
|
||||
}
|
12
BM_src/forestry/api/food/IBeverageEffect.java
Normal file
12
BM_src/forestry/api/food/IBeverageEffect.java
Normal file
|
@ -0,0 +1,12 @@
|
|||
package forestry.api.food;
|
||||
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public interface IBeverageEffect {
|
||||
int getId();
|
||||
|
||||
void doEffect(World world, EntityPlayer player);
|
||||
|
||||
String getDescription();
|
||||
}
|
17
BM_src/forestry/api/food/IInfuserManager.java
Normal file
17
BM_src/forestry/api/food/IInfuserManager.java
Normal file
|
@ -0,0 +1,17 @@
|
|||
package forestry.api.food;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public interface IInfuserManager {
|
||||
|
||||
void addMixture(int meta, ItemStack ingredient, IBeverageEffect effect);
|
||||
|
||||
void addMixture(int meta, ItemStack[] ingredients, IBeverageEffect effect);
|
||||
|
||||
ItemStack getSeasoned(ItemStack base, ItemStack[] ingredients);
|
||||
|
||||
boolean hasMixtures(ItemStack[] ingredients);
|
||||
|
||||
ItemStack[] getRequired(ItemStack[] ingredients);
|
||||
|
||||
}
|
11
BM_src/forestry/api/food/IIngredientManager.java
Normal file
11
BM_src/forestry/api/food/IIngredientManager.java
Normal file
|
@ -0,0 +1,11 @@
|
|||
package forestry.api.food;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public interface IIngredientManager {
|
||||
|
||||
String getDescription(ItemStack itemstack);
|
||||
|
||||
void addIngredient(ItemStack ingredient, String description);
|
||||
|
||||
}
|
3
BM_src/forestry/api/food/package-info.java
Normal file
3
BM_src/forestry/api/food/package-info.java
Normal file
|
@ -0,0 +1,3 @@
|
|||
@API(apiVersion="1.0", owner="ForestryAPI|core", provides="ForestryAPI|food")
|
||||
package forestry.api.food;
|
||||
import cpw.mods.fml.common.API;
|
Loading…
Add table
Add a link
Reference in a new issue