mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-27 15:23:03 +00:00
- 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
44 lines
859 B
Java
44 lines
859 B
Java
/*
|
|
* To change this license header, choose License Headers in Project Properties.
|
|
* To change this template file, choose Tools | Templates
|
|
* and open the template in the editor.
|
|
*/
|
|
|
|
package minetweaker.mc172.network;
|
|
|
|
import cpw.mods.fml.common.network.simpleimpl.IMessage;
|
|
import io.netty.buffer.ByteBuf;
|
|
|
|
/**
|
|
*
|
|
* @author Stan
|
|
*/
|
|
public class MineTweakerLoadScriptsPacket implements IMessage {
|
|
private byte[] data;
|
|
|
|
public MineTweakerLoadScriptsPacket() {
|
|
// used for deserialization
|
|
}
|
|
|
|
public MineTweakerLoadScriptsPacket(byte[] data) {
|
|
this.data = data;
|
|
}
|
|
|
|
public byte[] getData() {
|
|
return data;
|
|
}
|
|
|
|
@Override
|
|
public void fromBytes(ByteBuf buf) {
|
|
int size = buf.readInt();
|
|
data = new byte[size];
|
|
buf.readBytes(data);
|
|
}
|
|
|
|
@Override
|
|
public void toBytes(ByteBuf buf) {
|
|
buf.writeInt(data.length);
|
|
buf.writeBytes(data);
|
|
}
|
|
}
|