feat:cooking food ingredient(aka:compound) implementation (#1858)

* feat:cooking food ingredient(aka:compound) implementation

Implement food ingredient(compound) feature.Need a thorough test and still has some work to do.

* small bug fix;implement fish processing

* Update src/main/java/emu/grasscutter/server/packet/send/PacketItemAddHintNotify.java

Co-authored-by: Luke H-W <Birdulon@users.noreply.github.com>

* Update Inventory.java

* Update Inventory.java

Co-authored-by: Luke H-W <Birdulon@users.noreply.github.com>
This commit is contained in:
dragon
2022-10-17 16:48:05 +08:00
committed by GitHub
Unverified
parent 1ecc3f4390
commit cf67c44f22
27 changed files with 7265 additions and 77 deletions
@@ -0,0 +1,17 @@
package emu.grasscutter.server.packet.send;
import emu.grasscutter.net.packet.BasePacket;
import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.net.proto.ItemParamOuterClass.ItemParam;
import emu.grasscutter.net.proto.TakeCompoundOutputRspOuterClass.TakeCompoundOutputRsp;
public class PackageTakeCompoundOutputRsp extends BasePacket {
public PackageTakeCompoundOutputRsp(Iterable<ItemParam> itemList, int retcode) {
super(PacketOpcodes.TakeCompoundOutputRsp);
var builder = TakeCompoundOutputRsp.newBuilder()
.addAllItemList(itemList)
.setRetcode(retcode);
setData(builder.build());
}
}