Package com.atlauncher.data

Examples of com.atlauncher.data.DisableableMod


            if (this.jsonVersion.getCaseAllFiles() == CaseType.upper) {
                file = file.substring(0, file.lastIndexOf(".")).toUpperCase() + file.substring(file.lastIndexOf("."));
            } else if (this.jsonVersion.getCaseAllFiles() == CaseType.lower) {
                file = file.substring(0, file.lastIndexOf(".")).toLowerCase() + file.substring(file.lastIndexOf("."));
            }
            this.modsInstalled.add(new DisableableMod(mod.getName(), mod.getVersion(), mod.isOptional(), file,
                    Type.valueOf(Type.class, mod.getType().toString()), this.jsonVersion.getColour(mod.getColour()),
                    mod.getDescription(), false, false));
        }

        if (this.isReinstall && instance.hasCustomMods() && instance.getMinecraftVersion().equalsIgnoreCase(version
View Full Code Here


                } else if (this.caseAllFiles.equalsIgnoreCase("lower")) {
                    file = file.substring(0, file.lastIndexOf(".")).toLowerCase() + file.substring(file.lastIndexOf
                            ("" + "."));
                }
            }
            modsInstalled.add(new DisableableMod(mod.getName(), mod.getVersion(), mod.isOptional(), file,
                    mod.getType(), mod.getColour(), mod.getDescription(), false, false));
        }
        if (isReinstall && instance.getMinecraftVersion().equalsIgnoreCase(version.getMinecraftVersion().getVersion()
        ) && instance.hasCustomMods()) {
            for (DisableableMod mod : instance.getCustomDisableableMods()) {
View Full Code Here

                            type = com.atlauncher.data.Type.resourcepack;
                        } else if (typeTemp.equalsIgnoreCase("Shader Pack")) {
                            type = com.atlauncher.data.Type.shaderpack;
                        }
                        if (type != null) {
                            DisableableMod mod = new DisableableMod(file.getName(), "Custom", true, file.getName(),
                                    type, null, null, true, true);
                            if (Utils.copyFile(file, instance.getDisabledModsDirectory())) {
                                instance.getInstalledMods().add(mod);
                                disabledMods.add(new ModsJCheckBox(mod));
                                reload = true;
View Full Code Here

TOP

Related Classes of com.atlauncher.data.DisableableMod

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.