package com.huluxia.mcjavascript;
import android.content.SharedPreferences.Editor;
import android.util.Log;
import com.huluxia.h.g;
import com.huluxia.i.h;
import com.huluxia.mcsdk.DTSDKManager;
import com.huluxia.mcsdk.b.c;
import com.huluxia.mcsdk.s;
import java.io.InputStream;
import net.zhuoweizhang.mcpelauncher.ScriptManager;
import org.mozilla.javascript.ScriptableObject;
import org.mozilla.javascript.annotations.JSStaticFunction;
public class DTNativeModPEApi extends ScriptableObject {
private static final boolean DEBUG = false;
private static String currentScript = null;
private static boolean requestLeaveGame = false;
private static final long serialVersionUID = -1420996403572729843L;
@JSStaticFunction
public static void dumpVtable(String str, int i) {
m.a(str, i);
}
@JSStaticFunction
public static byte[] getBytesFromTexturePack(String str) {
return m.a(str);
}
@JSStaticFunction
public static String getMinecraftVersion() {
try {
return DTSDKManager.androidContext.getPackageManager().getPackageInfo("com.mojang.minecraftpe", 0).versionName;
} catch (Exception e) {
e.printStackTrace();
return "Unknown";
}
}
@JSStaticFunction
public static void langEdit(String str, String str2) {
s.b(str, str2);
}
@JSStaticFunction
public static void leaveGame() {
DTSDKManager.requestLeaveGame = true;
}
@JSStaticFunction
public static void log(String str) {
Log.i("HuLuXiaLog", str);
}
@JSStaticFunction
public static InputStream openInputStreamFromTexturePack(String str) {
return m.b(str);
}
@JSStaticFunction
public static void overrideTexture(String str, String str2) {
DTSDKManager.overrideTexture(str2, str);
}
@JSStaticFunction
public static String readData(String str) {
return DTSDKManager.androidContext.getSharedPreferences(package com.huluxia.mcjavascript;
import android.content.SharedPreferences.Editor;
import android.util.Log;
import com.huluxia.h.g;
import com.huluxia.i.h;
import com.huluxia.mcsdk.DTSDKManager;
import com.hulux
import android.content.SharedPreferences.Editor;
import android.util.Log;
import com.huluxia.h.g;
import com.huluxia.i.h;
import com.huluxia.mcsdk.DTSDKManager;
import com.huluxia.mcsdk.b.c;
import com.huluxia.mcsdk.s;
import java.io.InputStream;
import net.zhuoweizhang.mcpelauncher.ScriptManager;
import org.mozilla.javascript.ScriptableObject;
import org.mozilla.javascript.annotations.JSStaticFunction;
public class DTNativeModPEApi extends ScriptableObject {
private static final boolean DEBUG = false;
private static String currentScript = null;
private static boolean requestLeaveGame = false;
private static final long serialVersionUID = -1420996403572729843L;
@JSStaticFunction
public static void dumpVtable(String str, int i) {
m.a(str, i);
}
@JSStaticFunction
public static byte[] getBytesFromTexturePack(String str) {
return m.a(str);
}
@JSStaticFunction
public static String getMinecraftVersion() {
try {
return DTSDKManager.androidContext.getPackageManager().getPackageInfo("com.mojang.minecraftpe", 0).versionName;
} catch (Exception e) {
e.printStackTrace();
return "Unknown";
}
}
@JSStaticFunction
public static void langEdit(String str, String str2) {
s.b(str, str2);
}
@JSStaticFunction
public static void leaveGame() {
DTSDKManager.requestLeaveGame = true;
}
@JSStaticFunction
public static void log(String str) {
Log.i("HuLuXiaLog", str);
}
@JSStaticFunction
public static InputStream openInputStreamFromTexturePack(String str) {
return m.b(str);
}
@JSStaticFunction
public static void overrideTexture(String str, String str2) {
DTSDKManager.overrideTexture(str2, str);
}
@JSStaticFunction
public static String readData(String str) {
return DTSDKManager.androidContext.getSharedPreferences(package com.huluxia.mcjavascript;
import android.content.SharedPreferences.Editor;
import android.util.Log;
import com.huluxia.h.g;
import com.huluxia.i.h;
import com.huluxia.mcsdk.DTSDKManager;
import com.hulux