All Getter methods for lists/maps in registry now return new copies

This commit is contained in:
Nick 2016-02-18 09:49:12 -08:00
parent d997932306
commit 48622bf2e7
5 changed files with 40 additions and 13 deletions

View file

@ -21,7 +21,6 @@ public class AlchemyArrayRecipeRegistry
{
public static final AlchemyCircleRenderer defaultRenderer = new AlchemyCircleRenderer(new ResourceLocation("bloodmagic", "textures/models/AlchemyArrays/BaseArray.png"));
@Getter
private static BiMap<ItemStackWrapper, AlchemyArrayRecipe> recipes = HashBiMap.create();
/**
@ -223,4 +222,8 @@ public class AlchemyArrayRecipeRegistry
return null;
}
}
public static BiMap<ItemStackWrapper, AlchemyArrayRecipe> getRecipes() {
return HashBiMap.create(recipes);
}
}