mirror of
https://github.com/GTNewHorizons/Advanced-Botany.git
synced 2026-11-14 01:14:19 +00:00
no message
This commit is contained in:
1 parent
93f114dceb
commit
f435e13882
645 files changed
-59797
No files matched your search
@@ -1,42 +0,0 @@
|
||||
package ab.api;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import ab.api.recipe.RecipeAdvancedPlate;
|
||||
import ab.api.recipe.RecipeAncientAlphirine;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.common.util.EnumHelper;
|
||||
|
||||
public class AdvancedBotanyAPI {
|
||||
|
||||
public static List<RecipeAdvancedPlate> advancedPlateRecipes = new ArrayList<RecipeAdvancedPlate>();
|
||||
public static List<RecipeAncientAlphirine> alphirineRecipes = new ArrayList<RecipeAncientAlphirine>();
|
||||
public static List<TerraFarmlandList> farmlandList = new ArrayList<TerraFarmlandList>();
|
||||
|
||||
public static Item.ToolMaterial mithrilToolMaterial = EnumHelper.addToolMaterial("MITHRIL", 7, -1, 8.0F, 8.0F, 20);
|
||||
|
||||
public static RecipeAdvancedPlate registerAdvancedPlateRecipe(ItemStack output, ItemStack input1, ItemStack input2, ItemStack input3, int mana) {
|
||||
RecipeAdvancedPlate recipe = new RecipeAdvancedPlate(output, mana, input1, input2, input3);
|
||||
advancedPlateRecipes.add(recipe);
|
||||
return recipe;
|
||||
}
|
||||
|
||||
public static RecipeAncientAlphirine registerAlphirineRecipe(ItemStack output, ItemStack input, int chance) {
|
||||
if(chance > 100)
|
||||
chance = 100;
|
||||
else if(chance <= 0)
|
||||
chance = 1;
|
||||
RecipeAncientAlphirine recipe = new RecipeAncientAlphirine(output, input, chance);
|
||||
alphirineRecipes.add(recipe);
|
||||
return recipe;
|
||||
}
|
||||
|
||||
public static TerraFarmlandList registerFarmlandSeed(Block block, int meta) {
|
||||
TerraFarmlandList seed = new TerraFarmlandList(block, meta);
|
||||
farmlandList.add(seed);
|
||||
return seed;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user