mirror of
https://github.com/GTNewHorizons/Advanced-Botany.git
synced 2026-11-14 01:14:19 +00:00
spotless
This commit is contained in:
1 parent
17454c4993
commit
8e0818be4a
150 files changed
+13246
-12429
No files matched your search
@@ -3,10 +3,6 @@ package ab.api;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import ab.api.recipe.RecipeAdvancedPlate;
|
||||
import ab.api.recipe.RecipeAncientAlphirine;
|
||||
import ab.common.core.handler.ConfigABHandler;
|
||||
import ab.common.lib.register.ItemListAB;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.item.EnumRarity;
|
||||
import net.minecraft.item.Item;
|
||||
@@ -15,39 +11,51 @@ import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.stats.Achievement;
|
||||
import net.minecraft.util.EnumChatFormatting;
|
||||
import net.minecraftforge.common.util.EnumHelper;
|
||||
import vazkii.botania.common.item.ModItems;
|
||||
|
||||
import ab.api.recipe.RecipeAdvancedPlate;
|
||||
import ab.api.recipe.RecipeAncientAlphirine;
|
||||
import ab.common.core.handler.ConfigABHandler;
|
||||
|
||||
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 List<Achievement> achievements = new ArrayList<Achievement>();
|
||||
public static List<ItemStack> relicList = new ArrayList<ItemStack>();
|
||||
public static List<ItemStack> diceList = new ArrayList<ItemStack>();
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
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 List<Achievement> achievements = new ArrayList<Achievement>();
|
||||
public static List<ItemStack> relicList = new ArrayList<ItemStack>();
|
||||
public static List<ItemStack> diceList = new ArrayList<ItemStack>();
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user