mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-23 20:29:52 +08:00
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:
committed by
GitHub
Unverified
parent
1ecc3f4390
commit
cf67c44f22
@@ -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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user