mirror of
https://github.com/revanced/ARSCLib.git
synced 2025-04-30 22:34:24 +02:00
add raw int setter
This commit is contained in:
parent
0b9aafd0d2
commit
2bcbf76f2f
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user