Update buildscript & spotlessApply

This commit is contained in:
DianeXD committed 2022-07-03 12:17:51 +08:00
1 parent e4329e2b8f
commit 8683a345c3
818 files changed
+51123 -49403

No files matched your search

@@ -15,22 +15,23 @@ import codechicken.nei.NEIServerUtils;
import codechicken.nei.PositionedStack;
import forestry.api.genetics.AlleleManager;
import forestry.api.genetics.ISpeciesRoot;
import java.awt.*;
import java.util.ArrayList;
import java.util.List;
import net.minecraft.item.ItemStack;
import net.minecraft.util.StatCollector;
import net.minecraftforge.fluids.FluidStack;
import net.minecraftforge.oredict.OreDictionary;
import java.awt.*;
import java.util.ArrayList;
import java.util.List;
public class InoculatorRecipeHandler extends RecipeHandlerBase {
private static final List<InoculatorRecipe> recipes = new ArrayList<>();
private void createInoculatorRecipeForNEI(ItemStack dnaManipulable) {
recipes.add(new InoculatorRecipe(dnaManipulable, new ItemStack(Genetics.itemSerum, 1, OreDictionary.WILDCARD_VALUE)));
recipes.add(new InoculatorRecipe(dnaManipulable, new ItemStack(Genetics.itemSerumArray, 1, OreDictionary.WILDCARD_VALUE)));
recipes.add(new InoculatorRecipe(
dnaManipulable, new ItemStack(Genetics.itemSerum, 1, OreDictionary.WILDCARD_VALUE)));
recipes.add(new InoculatorRecipe(
dnaManipulable, new ItemStack(Genetics.itemSerumArray, 1, OreDictionary.WILDCARD_VALUE)));
}
@Override
@@ -102,7 +103,8 @@ public class InoculatorRecipeHandler extends RecipeHandlerBase {
@Override
public void loadUsageRecipes(ItemStack ingredient) {
for (InoculatorRecipe recipe : recipes) {
if (NEIServerUtils.areStacksSameTypeCrafting(recipe.getDnaManipulable(), ingredient) || NEIServerUtils.areStacksSameTypeCrafting(recipe.getSerum(), ingredient)) {
if (NEIServerUtils.areStacksSameTypeCrafting(recipe.getDnaManipulable(), ingredient)
|| NEIServerUtils.areStacksSameTypeCrafting(recipe.getSerum(), ingredient)) {
this.arecipes.add(new CachedInoculatorRecipe(recipe));
}
}
@@ -129,7 +131,6 @@ public class InoculatorRecipeHandler extends RecipeHandlerBase {
public ItemStack getSerum() {
return this.serum;
}
}
public class CachedInoculatorRecipe extends CachedBaseRecipe {
@@ -146,7 +147,8 @@ public class InoculatorRecipeHandler extends RecipeHandlerBase {
ISpeciesRoot root1 = AlleleManager.alleleRegistry.getSpeciesRoot(recipe.getDnaManipulable());
List<ItemStack> serums = new ArrayList<>();
for (ItemStack serumStack : ItemList.itemMap.get(recipe.getSerum().getItem())) {
for (ItemStack serumStack :
ItemList.itemMap.get(recipe.getSerum().getItem())) {
if (serumStack.getTagCompound() != null) {
IItemSerum itemSerum = (IItemSerum) serumStack.getItem();
ISpeciesRoot root2 = itemSerum.getSpeciesRoot(serumStack);
@@ -154,7 +156,8 @@ public class InoculatorRecipeHandler extends RecipeHandlerBase {
}
}
this.bacteriaTank = new PositionedFluidTank(recipe.getBacteriaVector(), 100, new Rectangle(28, 6, 16, 58));
this.bacteriaTank =
new PositionedFluidTank(recipe.getBacteriaVector(), 100, new Rectangle(28, 6, 16, 58));
this.serum = new PositionedStack(serums, 53, 6);
this.input = new PositionedStack(recipe.getDnaManipulable(), 53, 27);
this.output = new PositionedStack(recipe.getDnaManipulable(), 105, 27);
@@ -181,7 +184,5 @@ public class InoculatorRecipeHandler extends RecipeHandlerBase {
public PositionedFluidTank getFluidTank() {
return this.bacteriaTank;
}
}
}