Testing abstracting out the release type to build.properties
This commit is contained in:
parent
76c1e4d661
commit
383acdc967
1 changed files with 7 additions and 1 deletions
|
@ -13,6 +13,7 @@ public class RecipeRegistry
|
||||||
private static RecipeRegistry recipeRegistry = null;
|
private static RecipeRegistry recipeRegistry = null;
|
||||||
|
|
||||||
private Multimap<WrappedStack, List<WrappedStack>> recipeMap;
|
private Multimap<WrappedStack, List<WrappedStack>> recipeMap;
|
||||||
|
private ImmutableMultimap<WrappedStack, List<WrappedStack>> immutableRecipeMap;
|
||||||
|
|
||||||
private RecipeRegistry()
|
private RecipeRegistry()
|
||||||
{
|
{
|
||||||
|
@ -69,7 +70,12 @@ public class RecipeRegistry
|
||||||
}
|
}
|
||||||
|
|
||||||
public Multimap<WrappedStack, List<WrappedStack>> getRecipeMappings()
|
public Multimap<WrappedStack, List<WrappedStack>> getRecipeMappings()
|
||||||
|
{
|
||||||
|
if (immutableRecipeMap == null)
|
||||||
{
|
{
|
||||||
return ImmutableMultimap.copyOf(recipeRegistry.recipeMap);
|
return ImmutableMultimap.copyOf(recipeRegistry.recipeMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return immutableRecipeMap;
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue