mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-12-05 03:03:31 +00:00
d71b7abfc3
Only a few are supported right now You will need certain script files in ./resources/Scripts
22 lines
648 B
Java
22 lines
648 B
Java
package emu.grasscutter.server.packet.send;
|
|
|
|
import emu.grasscutter.game.entity.EntityGadget;
|
|
import emu.grasscutter.net.packet.BasePacket;
|
|
import emu.grasscutter.net.packet.PacketOpcodes;
|
|
import emu.grasscutter.net.proto.GadgetStateNotifyOuterClass.GadgetStateNotify;
|
|
|
|
public class PacketGadgetStateNotify extends BasePacket {
|
|
|
|
public PacketGadgetStateNotify(EntityGadget gadget, int newState) {
|
|
super(PacketOpcodes.GadgetStateNotify);
|
|
|
|
GadgetStateNotify proto = GadgetStateNotify.newBuilder()
|
|
.setGadgetEntityId(gadget.getId())
|
|
.setGadgetState(newState)
|
|
.setIsEnableInteract(true)
|
|
.build();
|
|
|
|
this.setData(proto);
|
|
}
|
|
}
|