Grasscutter/src/main/java/emu/grasscutter/server/packet/send/PacketGadgetAutoPickDropInfoNotify.java
Melledy 1b97b4afa0 Fixed dungeon challenge scoreboard and implement dungeon drops
Also fixed a few dungeon script handlers
2022-05-03 23:24:43 -07:00

23 lines
815 B
Java

package emu.grasscutter.server.packet.send;
import java.util.Collection;
import emu.grasscutter.game.inventory.GameItem;
import emu.grasscutter.net.packet.BasePacket;
import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.net.proto.GadgetAutoPickDropInfoNotifyOuterClass.GadgetAutoPickDropInfoNotify;
import emu.grasscutter.net.proto.GadgetAutoPickDropInfoNotifyOuterClass.GadgetAutoPickDropInfoNotify.Builder;
public class PacketGadgetAutoPickDropInfoNotify extends BasePacket {
public PacketGadgetAutoPickDropInfoNotify(Collection<GameItem> items) {
super(PacketOpcodes.GadgetAutoPickDropInfoNotify);
GadgetAutoPickDropInfoNotify.Builder proto = GadgetAutoPickDropInfoNotify.newBuilder();
items.forEach(item -> proto.addItemList(item.toProto()));
this.setData(proto);
}
}