Make fields final if possible to ensure immutability
This commit is contained in:
@@ -39,9 +39,9 @@ public class Inscribe implements ICraftHandler, IWebsiteSerializer
|
||||
|
||||
public boolean usePlates = false;
|
||||
|
||||
public static HashSet<ItemStack> plates = new HashSet<ItemStack>();
|
||||
public static HashSet<ItemStack> inputs = new HashSet<ItemStack>();
|
||||
public static LinkedList<InscriberRecipe> recipes = new LinkedList<InscriberRecipe>();
|
||||
public static final HashSet<ItemStack> plates = new HashSet<ItemStack>();
|
||||
public static final HashSet<ItemStack> inputs = new HashSet<ItemStack>();
|
||||
public static final LinkedList<InscriberRecipe> recipes = new LinkedList<InscriberRecipe>();
|
||||
|
||||
IIngredient imprintable;
|
||||
|
||||
|
||||
@@ -13,8 +13,8 @@ import appeng.api.recipes.IIngredient;
|
||||
public class OreRegistration implements ICraftHandler
|
||||
{
|
||||
|
||||
List<IIngredient> inputs;
|
||||
String name;
|
||||
final List<IIngredient> inputs;
|
||||
final String name;
|
||||
|
||||
public OreRegistration(List<IIngredient> in, String out) {
|
||||
inputs = in;
|
||||
|
||||
Reference in New Issue
Block a user