add raw int setter

This commit is contained in:
REAndroid 2023-01-01 08:52:44 -05:00
parent 0b9aafd0d2
commit 2bcbf76f2f

View File

@ -44,6 +44,20 @@ public class EntryBlock extends Block implements JSONConvert<JSONObject> {
public EntryBlock() {
super();
}
public ResValueInt setValueAsRaw(ValueType valueType, int rawValue){
ResValueInt resValueInt;
BaseResValue res = getResValue();
if(res instanceof ResValueInt){
resValueInt=(ResValueInt) res;
}else {
resValueInt=new ResValueInt();
setResValue(resValueInt);
}
resValueInt.setType(valueType);
resValueInt.setData(rawValue);
return resValueInt;
}
public ResValueInt setValueAsBoolean(boolean val){
ResValueInt resValueInt;
BaseResValue res = getResValue();