- Added MFR support for 1.6.4

- Improved API for blocks
- NBT compound tags with non-identifier keys should now be output properly
This commit is contained in:
Stan Hebben committed 2014-08-09 12:06:26 +02:00
1 parent e644398505
commit e2b4f50dfc
97 files changed
+5307 -216

No files matched your search

@@ -7,6 +7,8 @@
package minetweaker.util;
import java.util.Arrays;
import minetweaker.api.block.IBlockPattern;
import minetweaker.api.item.IIngredient;
import minetweaker.api.item.IItemCondition;
import minetweaker.api.item.IItemTransformer;
@@ -29,4 +31,16 @@ public class ArrayUtil {
result[values.length] = value;
return result;
}
public static IIngredient[] append(IIngredient[] values, IIngredient value) {
IIngredient[] result = Arrays.copyOf(values, values.length + 1);
result[values.length] = value;
return result;
}
public static IBlockPattern[] append(IBlockPattern[] values, IBlockPattern value) {
IBlockPattern[] result = Arrays.copyOf(values, values.length + 1);
result[values.length] = value;
return result;
}
}