mirror of
https://github.com/revanced/ARSCLib.git
synced 2025-05-01 06:34:26 +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() {
|
public EntryBlock() {
|
||||||
super();
|
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){
|
public ResValueInt setValueAsBoolean(boolean val){
|
||||||
ResValueInt resValueInt;
|
ResValueInt resValueInt;
|
||||||
BaseResValue res = getResValue();
|
BaseResValue res = getResValue();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user