mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-12-05 03:03:31 +00:00
2531ae366d
1. Remove references. 2. Handle vehicle stamina.
19 lines
583 B
Java
19 lines
583 B
Java
package emu.grasscutter.server.packet.send;
|
|
|
|
import emu.grasscutter.net.packet.BasePacket;
|
|
import emu.grasscutter.net.packet.PacketOpcodes;
|
|
import emu.grasscutter.net.proto.VehicleStaminaNotifyOuterClass.VehicleStaminaNotify;
|
|
|
|
public class PacketVehicleStaminaNotify extends BasePacket {
|
|
|
|
public PacketVehicleStaminaNotify(int vehicleId, float newStamina) {
|
|
super(PacketOpcodes.VehicleStaminaNotify);
|
|
VehicleStaminaNotify.Builder proto = VehicleStaminaNotify.newBuilder();
|
|
|
|
proto.setEntityId(vehicleId);
|
|
proto.setCurStamina(newStamina);
|
|
|
|
this.setData(proto.build());
|
|
}
|
|
}
|