Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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;
    }
}