JEI cleanup, pass 3

Strickter nullchecks, access variables though getters, not though public ones.
This commit is contained in:
Tom Elfring committed 2017-08-12 18:57:35 +02:00
1 parent 0021b34a31
commit 5f23ad4725
28 files changed
+250 -166

No files matched your search

@@ -14,7 +14,7 @@ import java.util.Arrays;
public class ChanceMachineRecipeWrapper implements IRecipeWrapper
{
public ChanceMachineRecipe recipe;
private ChanceMachineRecipe recipe;
public ChanceMachineRecipeWrapper(ChanceMachineRecipe r)
{
@@ -40,4 +40,9 @@ public class ChanceMachineRecipeWrapper implements IRecipeWrapper
fontRendererObj.drawString(Math.round(output.secondaryChance*100) + "%", 104, 41, 0x404040, false);
}
}
public ChanceMachineRecipe getRecipe()
{
return recipe;
}
}