Grasscutter/src/main/java/emu/grasscutter/utils/ProtoHelper.java
2022-04-18 01:11:27 -04:00

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();
}
}