-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
334 changed files
with
40 additions
and
8,283 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
249 changes: 7 additions & 242 deletions
249
src/main/java/wks/wolfkidsounds/wildplants/block/ModBlocks.java
Large diffs are not rendered by default.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
src/main/java/wks/wolfkidsounds/wildplants/config/CompatConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,15 @@ | ||
package wks.wolfkidsounds.wildplants.config; | ||
|
||
import net.minecraftforge.common.ForgeConfigSpec; | ||
import net.minecraftforge.fml.ModList; | ||
import wks.wolfkidsounds.wildplants.Wildplants; | ||
|
||
public class CompatConfig { | ||
//COMPAT | ||
public static ForgeConfigSpec.BooleanValue ENABLE_MINECRAFT; | ||
|
||
public static ForgeConfigSpec.BooleanValue ENABLE_IMMERSIVEENGINEERING; | ||
public static ForgeConfigSpec.BooleanValue ENABLE_HARVESTCRAFT; | ||
|
||
public static Boolean LOADED_IMMERSIVEENGINEERING = ModList.get().isLoaded("immersiveengineering"); | ||
public static Boolean LOADED_HARVESTCRAFT = ModList.get().isLoaded("pamhc2crops"); | ||
|
||
public static void initMinecraft(ForgeConfigSpec.Builder BUILDER) { | ||
Wildplants.LOGGER.debug("init-compat-minecraft-configuration"); | ||
ENABLE_MINECRAFT = BUILDER | ||
.define("Minecraft", true); | ||
} | ||
|
||
public static void initImmersiveEngineering(ForgeConfigSpec.Builder BUILDER) { | ||
Wildplants.LOGGER.debug("init-compat-immersiveengineering-configuration"); | ||
ENABLE_IMMERSIVEENGINEERING = BUILDER | ||
.define("Immersive_Engineering", true); | ||
} | ||
|
||
public static void initHarvestcraft(ForgeConfigSpec.Builder BUILDER) { | ||
Wildplants.LOGGER.debug("init-compat-harvestcraft-configuration"); | ||
ENABLE_HARVESTCRAFT = BUILDER | ||
.define("Pams_Harvestcraft", true); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,495 changes: 0 additions & 1,495 deletions
1,495
src/main/java/wks/wolfkidsounds/wildplants/config/features/HarvestcraftConfig.java
This file was deleted.
Oops, something went wrong.
32 changes: 0 additions & 32 deletions
32
src/main/java/wks/wolfkidsounds/wildplants/config/features/ImmersiveEngineeringConfig.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/main/java/wks/wolfkidsounds/wildplants/utils/FileUtils.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package wks.wolfkidsounds.wildplants.utils; | ||
|
||
import net.minecraftforge.fml.loading.FMLPaths; | ||
import wks.wolfkidsounds.wildplants.Wildplants; | ||
|
||
import java.io.IOException; | ||
import java.nio.file.FileAlreadyExistsException; | ||
import java.nio.file.Files; | ||
import java.nio.file.Path; | ||
import java.nio.file.Paths; | ||
|
||
public class FileUtils { | ||
|
||
public static void createFolders() { | ||
Path wildplantsConfigurationPath = Paths.get(FMLPaths.CONFIGDIR.get().toAbsolutePath().toString(), "wildplants"); | ||
|
||
try {Files.createDirectory(wildplantsConfigurationPath);} | ||
catch (FileAlreadyExistsException event) { Wildplants.LOGGER.debug("Configuration already exists. nice."); }//do nothing | ||
catch (IOException event) {Wildplants.LOGGER.error("The wildplants configuration directory could not be created", event);} | ||
} | ||
} |
Oops, something went wrong.