diff options
author | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2019-11-24 16:14:12 +0000 |
---|---|---|
committer | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2019-11-24 16:14:12 +0000 |
commit | f3a698a3af1826ef6f5ac719d31334b930e0005e (patch) | |
tree | 5964a9e90c6c3bd3fd71a3e65a48d3ff3f9277e9 /src/Java/gtPlusPlus/api/objects/data/AutoMap.java | |
parent | 9ba6d563d1b69bc8aa88d48754c273dae77aa713 (diff) | |
download | GT5-Unofficial-f3a698a3af1826ef6f5ac719d31334b930e0005e.tar.gz GT5-Unofficial-f3a698a3af1826ef6f5ac719d31334b930e0005e.tar.bz2 GT5-Unofficial-f3a698a3af1826ef6f5ac719d31334b930e0005e.zip |
+ Added Concurrent Set objects to the API.
+ Added Flexible Pair objects to the API.
+ Added logging to ICO formation code.
% Adjusted position of GUI elements in NEI for Chemical Plant recipes.
% Adjusted the recipe for the Lava Filter.
% Adjusted which fluids are returned when requesting tiered fluids from CI. This will inevitably adjust many recipes as a result.
% Adjusted handling of the creative energy buffer.
% Adjusted Achievement handler for Dev Mode.
% Adjusted Tank Capacity on my Chemical Plants.
$ Fixed Output buffer checks on multiblocks, Closes #574.
$ Fixed LuV Super Bus recipes, Closes #575. (ULV super bus recipe is still broken for the time being)
$ Attempted once more to fix Hot Water localization.
Diffstat (limited to 'src/Java/gtPlusPlus/api/objects/data/AutoMap.java')
-rw-r--r-- | src/Java/gtPlusPlus/api/objects/data/AutoMap.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Java/gtPlusPlus/api/objects/data/AutoMap.java b/src/Java/gtPlusPlus/api/objects/data/AutoMap.java index 9e7f702200..02517097cf 100644 --- a/src/Java/gtPlusPlus/api/objects/data/AutoMap.java +++ b/src/Java/gtPlusPlus/api/objects/data/AutoMap.java @@ -70,6 +70,20 @@ public class AutoMap<V> implements Iterable<V>, Cloneable, Serializable, Collect } } } + + /** + * Generates an AutoMap from a Array. + * @param aArray - Data to be inserted into the AutoMap. + */ + public AutoMap(V[] aArray) { + mInternalMap = new LinkedHashMap<Integer, V>(); + mInternalNameMap = new LinkedHashMap<String, Integer>(); + if (aArray != null && aArray.length > 0) { + for (V obj : aArray) { + add(obj); + } + } + } @Override public Iterator<V> iterator() { |