mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-12-05 03:03:31 +00:00
19ee983c08
It's being perfected, so don't worry. (probably)
27 lines
1.0 KiB
Java
27 lines
1.0 KiB
Java
package emu.grasscutter.server.packet.send;
|
|
|
|
import emu.grasscutter.net.packet.BasePacket;
|
|
import emu.grasscutter.net.packet.PacketOpcodes;
|
|
import emu.grasscutter.net.proto.WidgetGadgetDataNotifyOuterClass;
|
|
import emu.grasscutter.net.proto.WidgetGadgetDataOuterClass;
|
|
|
|
import java.io.IOException;
|
|
import java.util.List;
|
|
|
|
public class PacketWidgetGadgetDataNotify extends BasePacket {
|
|
public PacketWidgetGadgetDataNotify(int gadgetId, List<Integer> gadgetEntityIdList) throws IOException {
|
|
super(PacketOpcodes.WidgetGadgetDataNotify);
|
|
|
|
WidgetGadgetDataNotifyOuterClass.WidgetGadgetDataNotify proto = WidgetGadgetDataNotifyOuterClass.WidgetGadgetDataNotify.newBuilder()
|
|
.setWidgetGadgetData(
|
|
WidgetGadgetDataOuterClass.WidgetGadgetData.newBuilder()
|
|
.setGadgetId(gadgetId)
|
|
.addAllGadgetEntityIdList(gadgetEntityIdList)
|
|
.build()
|
|
)
|
|
.build();
|
|
|
|
this.setData(proto);
|
|
}
|
|
}
|