mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-16 01:54:40 +00:00
- 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:
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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user