mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-22 21:19:56 +00:00
Update buildscript & spotlessApply
This commit is contained in:
1 parent
e4329e2b8f
commit
8683a345c3
818 files changed
+51123
-49403
No files matched your search
@@ -10,13 +10,12 @@ import binnie.genetics.machine.acclimatiser.ToleranceType;
|
||||
import codechicken.lib.gui.GuiDraw;
|
||||
import codechicken.nei.NEIServerUtils;
|
||||
import codechicken.nei.PositionedStack;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import net.minecraftforge.oredict.OreDictionary;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class AcclimatiserRecipeHandler extends RecipeHandlerBase {
|
||||
|
||||
private static final List<AcclimatiserRecipe> recipes = new ArrayList<>();
|
||||
@@ -63,7 +62,6 @@ public class AcclimatiserRecipeHandler extends RecipeHandlerBase {
|
||||
}
|
||||
recipes.add(new AcclimatiserRecipe(targets, resource, effect, ToleranceType.Humidity));
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -143,7 +141,6 @@ public class AcclimatiserRecipeHandler extends RecipeHandlerBase {
|
||||
public ToleranceType getType() {
|
||||
return this.type;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class CachedAcclimatiserRecipe extends CachedBaseRecipe {
|
||||
@@ -157,11 +154,14 @@ public class AcclimatiserRecipeHandler extends RecipeHandlerBase {
|
||||
public CachedAcclimatiserRecipe(AcclimatiserRecipe recipe) {
|
||||
if (recipe.getTarget() != null) {
|
||||
for (int i = 0; i < recipe.getTarget().length; i++) {
|
||||
target.add(new PositionedStack(recipe.getTarget()[i], 31 + 18 * (i > 5 ? i % 6 : i), 29 + 18 * (i / 6)));
|
||||
target.add(new PositionedStack(
|
||||
recipe.getTarget()[i], 31 + 18 * (i > 5 ? i % 6 : i), 29 + 18 * (i / 6)));
|
||||
}
|
||||
this.resource = new PositionedStackAdv(recipe.getResource(), 76, 2)
|
||||
.addToTooltip(StatCollector.translateToLocal("genetics.nei.tip." + (recipe.getType().equals(ToleranceType.Temperature) ? "temperature" : "humidity")))
|
||||
.addToTooltip(StatCollector.translateToLocalFormatted("genetics.nei.tip.effect", recipe.getEffect()));
|
||||
.addToTooltip(StatCollector.translateToLocal("genetics.nei.tip."
|
||||
+ (recipe.getType().equals(ToleranceType.Temperature) ? "temperature" : "humidity")))
|
||||
.addToTooltip(
|
||||
StatCollector.translateToLocalFormatted("genetics.nei.tip.effect", recipe.getEffect()));
|
||||
this.effect = recipe.getEffect();
|
||||
this.type = recipe.getType();
|
||||
|
||||
@@ -180,5 +180,4 @@ public class AcclimatiserRecipeHandler extends RecipeHandlerBase {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user