2022-02-15 19:03:43 +03:00
|
|
|
package ab.api;
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
import net.minecraft.block.Block;
|
2022-05-03 19:37:10 +03:00
|
|
|
import net.minecraft.item.EnumRarity;
|
2022-02-15 19:03:43 +03:00
|
|
|
import net.minecraft.item.Item;
|
|
|
|
|
import net.minecraft.item.ItemArmor;
|
|
|
|
|
import net.minecraft.item.ItemStack;
|
2022-04-01 22:20:01 +03:00
|
|
|
import net.minecraft.stats.Achievement;
|
2022-05-03 19:37:10 +03:00
|
|
|
import net.minecraft.util.EnumChatFormatting;
|
2022-02-15 19:03:43 +03:00
|
|
|
import net.minecraftforge.common.util.EnumHelper;
|
2023-03-06 23:23:19 +01:00
|
|
|
|
|
|
|
|
import ab.api.recipe.RecipeAdvancedPlate;
|
|
|
|
|
import ab.api.recipe.RecipeAncientAlphirine;
|
|
|
|
|
import ab.common.core.handler.ConfigABHandler;
|
2022-02-15 19:03:43 +03:00
|
|
|
|
|
|
|
|
public class AdvancedBotanyAPI {
|
|
|
|
|
|
2024-03-16 12:38:19 +03:00
|
|
|
public static List<RecipeAdvancedPlate> advancedPlateRecipes = new ArrayList<>();
|
|
|
|
|
public static List<RecipeAncientAlphirine> alphirineRecipes = new ArrayList<>();
|
|
|
|
|
public static List<TerraFarmlandList> farmlandList = new ArrayList<>();
|
|
|
|
|
public static List<Achievement> achievements = new ArrayList<>();
|
|
|
|
|
public static List<ItemStack> relicList = new ArrayList<>();
|
|
|
|
|
public static List<ItemStack> diceList = new ArrayList<>();
|
2023-03-06 23:23:19 +01:00
|
|
|
|
|
|
|
|
public static Item.ToolMaterial mithrilToolMaterial = EnumHelper.addToolMaterial("MITHRIL", 7, -1, 8.0F, 4.0F, 24);
|
|
|
|
|
public static ItemArmor.ArmorMaterial nebulaArmorMaterial = EnumHelper.addArmorMaterial(
|
|
|
|
|
"NEBULA",
|
|
|
|
|
0,
|
|
|
|
|
new int[] { (int) (3 * ConfigABHandler.protectionFactorNebula),
|
|
|
|
|
(int) (8 * ConfigABHandler.protectionFactorNebula),
|
|
|
|
|
(int) (6 * ConfigABHandler.protectionFactorNebula),
|
|
|
|
|
(int) (3 * ConfigABHandler.protectionFactorNebula) },
|
|
|
|
|
26);
|
|
|
|
|
public static ItemArmor.ArmorMaterial wildHundArmor = EnumHelper
|
|
|
|
|
.addArmorMaterial("WILD_HUNT_MATERIAL", 34, new int[] { 7, 8, 3, 2 }, 26);
|
|
|
|
|
|
|
|
|
|
public static EnumRarity rarityNebula = EnumHelper.addRarity("NEBULA", EnumChatFormatting.LIGHT_PURPLE, "Nebula");
|
|
|
|
|
public static EnumRarity rarityWildHunt = EnumHelper.addRarity("WILD_HUNT", EnumChatFormatting.AQUA, "WildHunt");
|
|
|
|
|
|
|
|
|
|
public static RecipeAdvancedPlate registerAdvancedPlateRecipe(ItemStack output, ItemStack input1, ItemStack input2,
|
|
|
|
|
ItemStack input3, int mana, int color) {
|
|
|
|
|
RecipeAdvancedPlate recipe = new RecipeAdvancedPlate(output, mana, color, input1, input2, input3);
|
|
|
|
|
advancedPlateRecipes.add(recipe);
|
|
|
|
|
return recipe;
|
|
|
|
|
}
|
|
|
|
|
|
2024-03-16 12:38:19 +03:00
|
|
|
public static RecipeAdvancedPlate registerAdvancedPlateRecipe(ItemStack output, int mana, int color,
|
|
|
|
|
Object... inputs) {
|
|
|
|
|
RecipeAdvancedPlate recipe = new RecipeAdvancedPlate(output, mana, color, inputs);
|
|
|
|
|
advancedPlateRecipes.add(recipe);
|
|
|
|
|
return recipe;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static RecipeAdvancedPlate registerAdvancedPlateRecipe(String output, int mana, int color,
|
|
|
|
|
Object... inputs) {
|
|
|
|
|
RecipeAdvancedPlate recipe = RecipeAdvancedPlate.fromOreDictOutput(output, mana, color, inputs);
|
|
|
|
|
if (recipe != null) {
|
|
|
|
|
advancedPlateRecipes.add(recipe);
|
|
|
|
|
}
|
|
|
|
|
return recipe;
|
|
|
|
|
}
|
|
|
|
|
|
2023-03-06 23:23:19 +01:00
|
|
|
public static RecipeAncientAlphirine registerAlphirineRecipe(ItemStack output, ItemStack input, int chance) {
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|