mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-27 21:12:58 +08:00
11 lines
347 B
Java
11 lines
347 B
Java
package emu.grasscutter.utils;
|
|
|
|
import emu.grasscutter.game.props.PlayerProperty;
|
|
import emu.grasscutter.net.proto.PropValueOuterClass.PropValue;
|
|
|
|
public final class ProtoHelper {
|
|
public static PropValue newPropValue(PlayerProperty key, int value) {
|
|
return PropValue.newBuilder().setType(key.getId()).setIval(value).setVal(value).build();
|
|
}
|
|
}
|