quick fix : Private field may be 'final'

This commit is contained in:
Alexdoru authored and Jason Mitchell committed 2023-01-28 18:02:41 -08:00
1 parent b1c2569992
commit ae363450b1
42 files changed
+81 -81

No files matched your search

@@ -13,12 +13,12 @@ import tconstruct.TConstruct;
modsRequired = "appliedenergistics2",
forced = true)
public class TinkerAE2 {
private static List<String> spatialIOLogics = Arrays.asList(
private static final List<String> spatialIOLogics = Arrays.asList(
"EssenceExtractorLogic",
"GolemPedestalLogic", // TODO What happened to these?
"MultiServantLogic"); // TODO Should Mantle handle this?
private static List<String> spatialIOSmelteryLogics = Arrays.asList(
private static final List<String> spatialIOSmelteryLogics = Arrays.asList(
"AdaptiveSmelteryLogic",
"AqueductLogic",
"CastingBasinLogic",
@@ -31,7 +31,7 @@ public class TinkerAE2 {
"TankAirLogic",
"TowerFurnaceLogic");
private static List<String> spatialIOToolLogics = Arrays.asList(
private static final List<String> spatialIOToolLogics = Arrays.asList(
"CraftingStationLogic",
"FrypanLogic",
"PartBuilderLogic",
@@ -7,9 +7,9 @@ import net.minecraft.world.World;
import powercrystals.minefactoryreloaded.api.*;
public class HarvestableOreBerry implements IFactoryHarvestable {
private Block _sourceBlock;
private Item _berryItem;
private int _metaOffset;
private final Block _sourceBlock;
private final Item _berryItem;
private final int _metaOffset;
public HarvestableOreBerry(Block sourceBlock, Item berryItem, int metaOffset) {
_sourceBlock = sourceBlock;
@@ -17,7 +17,7 @@ public class RecipeHandlerAlloying extends RecipeHandlerBase {
public static final Rectangle OUTPUT_TANK = new Rectangle(118, 9, 18, 32);
public class CachedAlloyingRecipe extends CachedBaseRecipe {
private List<FluidTankElement> fluidTanks;
private final List<FluidTankElement> fluidTanks;
private int minAmount;
public CachedAlloyingRecipe(AlloyMix recipe) {
@@ -14,8 +14,8 @@ public abstract class RecipeHandlerCastingBase extends RecipeHandlerBase {
public static final Rectangle MOLTEN_FLOW_NO_ITEM = new Rectangle(60, 8, 6, 27);
public class CachedCastingRecipe extends CachedBaseRecipe {
private List<PositionedStack> resources;
private FluidTankElement metal;
private final List<PositionedStack> resources;
private final FluidTankElement metal;
private PositionedStack output = null;
public CachedCastingRecipe(CastingRecipe recipe) {
@@ -19,9 +19,9 @@ public class RecipeHandlerMelting extends RecipeHandlerBase {
public static final Rectangle MOLTEN_TANK = new Rectangle(115, 20, 18, 18);
public class CachedMeltingRecipe extends CachedBaseRecipe {
private PositionedStack input;
private int temperature;
private FluidTankElement output;
private final PositionedStack input;
private final int temperature;
private final FluidTankElement output;
public CachedMeltingRecipe(ItemStack input) {
this.input = new PositionedStack(input, 28, 21);