- Continued writing on the IC2 integration code

- Implemented advanced recipes on <*> values
- Removed unused ZenScript classes
- Continued work on any values
- Moved documentation generation to buildSrc
- Started work on a jar merging task
- Added toString implementation to ingredients
- Added stack count to ICraftingInventory
- Fixed imports
- Added logCommand to the logger to log command output
- Implemented memory script provider to load scripts received from the server
- Added exception handling for script execution
- First attempt at creating a transformer to generate a list of ZenClass and ZenExpansion classes
- Added console commands (reload, names, liquids, inventory, hand, oredict)
- Added general logic
- Fixed item ingredients for wildcard sizes
- Implemented selective recipe removal
- Fixed null recipe results
- Started implementation of player-specific recipes
- Removed redundant IC2 mod copy
- Other minor fixes
This commit is contained in:
Stan Hebben committed 2014-06-20 14:13:55 +02:00
1 parent f3ea7f7831
commit 489347558f
124 files changed
+3942 -419

No files matched your search

@@ -31,33 +31,31 @@ import minetweaker.runtime.IScriptProvider;
* @author Stan
*/
public class ScriptProviderMemory implements IScriptProvider {
public static byte[] collect(Iterable<IScriptProvider> providers) {
public static byte[] collect(IScriptProvider provider) {
ByteArrayOutputStream output = new ByteArrayOutputStream();
try {
DeflaterOutputStream deflater = new DeflaterOutputStream(output);
DataOutputStream deflaterData = new DataOutputStream(deflater);
Set<String> executed = new HashSet<String>();
for (IScriptProvider provider : providers) {
Iterator<IScriptIterator> scripts = provider.getScripts();
while (scripts.hasNext()) {
IScriptIterator script = scripts.next();
if (!executed.contains(script.getGroupName())) {
executed.add(script.getGroupName());
deflaterData.writeUTF(script.getGroupName());
while (script.next()) {
String name = script.getName();
byte[] data = FileUtil.read(script.open());
deflaterData.writeUTF(name);
deflaterData.writeInt(data.length);
deflaterData.write(data);
}
deflaterData.writeUTF("");
Iterator<IScriptIterator> scripts = provider.getScripts();
while (scripts.hasNext()) {
IScriptIterator script = scripts.next();
if (!executed.contains(script.getGroupName())) {
executed.add(script.getGroupName());
deflaterData.writeUTF(script.getGroupName());
while (script.next()) {
String name = script.getName();
byte[] data = FileUtil.read(script.open());
deflaterData.writeUTF(name);
deflaterData.writeInt(data.length);
deflaterData.write(data);
}
deflaterData.writeUTF("");
}
}