mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-20 04:09:45 +00:00
Update buildscript & apply automatic formatting rules
This commit is contained in:
1 parent
a7683b885d
commit
f7a900e910
173 files changed
+4581
-5321
No files matched your search
@@ -2,28 +2,24 @@ package codechicken.nei.api;
|
||||
|
||||
import codechicken.nei.NEIClientConfig;
|
||||
import codechicken.nei.config.OptionCycled;
|
||||
import java.util.LinkedList;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import java.util.LinkedList;
|
||||
|
||||
public class NEIInfo
|
||||
{
|
||||
public class NEIInfo {
|
||||
public static final LinkedList<INEIModeHandler> modeHandlers = new LinkedList<>();
|
||||
|
||||
public static void load(World world) {
|
||||
OptionCycled modeOption = (OptionCycled) NEIClientConfig.getOptionList().getOption("inventory.cheatmode");
|
||||
modeOption.parent.synthesizeEnvironment(false);
|
||||
if(!modeOption.optionValid(modeOption.value())) {
|
||||
if (!modeOption.optionValid(modeOption.value())) {
|
||||
modeOption.copyGlobals();
|
||||
modeOption.cycle();
|
||||
}
|
||||
}
|
||||
|
||||
public static boolean isValidMode(int mode) {
|
||||
for(INEIModeHandler handler : modeHandlers)
|
||||
if(!handler.isModeValid(mode))
|
||||
return false;
|
||||
|
||||
for (INEIModeHandler handler : modeHandlers) if (!handler.isModeValid(mode)) return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user