Java tutorial
//package com.java2s; //License from project: Open Source License import java.lang.reflect.Field; public class Main { public static boolean isObf() { try { Field[] fields = Class.forName("net.minecraft.world.World").getDeclaredFields(); for (Field f : fields) { f.setAccessible(true); if (f.getName().equalsIgnoreCase("loadedEntityList")) return false; } } catch (Exception e) { return true; } return true; } }