mirror of
https://github.com/GTMEGA/EndlessIDs.git
synced 2026-11-17 00:35:01 +00:00
Rebranding, readme, and credits
This commit is contained in:
6 files changed
+42
-42
No files matched your search
@@ -0,0 +1,6 @@
|
||||
package com.falsepattern.endlessids;
|
||||
|
||||
import cpw.mods.fml.common.Mod;
|
||||
|
||||
@Mod(modid = Tags.MODID, name = Tags.MODNAME, version = Tags.VERSION)
|
||||
public class EndlessIDs {}
|
||||
@@ -1,25 +0,0 @@
|
||||
package com.falsepattern.endlessids;
|
||||
|
||||
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
||||
import cpw.mods.fml.common.Mod;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.BlockIce;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
|
||||
@Mod(modid = "notenoughIDs", name = "NotEnoughIDs", version = "1.4.3.4")
|
||||
public class IDExtender
|
||||
{
|
||||
public IDExtender() {
|
||||
super();
|
||||
}
|
||||
|
||||
@Mod.EventHandler
|
||||
public void test(final FMLPreInitializationEvent event) {
|
||||
// for(int i = 0; i < 65536; i++){
|
||||
// Block shield = new BlockIce().setBlockName(".shield" + i);
|
||||
// GameRegistry.registerBlock(shield, i + "ShieldBlock");
|
||||
// shield.setCreativeTab(CreativeTabs.tabFood);
|
||||
// }
|
||||
}
|
||||
}
|
||||
@@ -3,38 +3,30 @@ package com.falsepattern.endlessids;
|
||||
import java.io.File;
|
||||
import net.minecraftforge.common.config.Configuration;
|
||||
|
||||
public class IEConfig
|
||||
{
|
||||
public class IEConfig {
|
||||
static Configuration config;
|
||||
public static boolean catchUnregisteredBlocks;
|
||||
public static boolean removeInvalidBlocks;
|
||||
public static boolean postNeidWorldsSupport;
|
||||
public static boolean extendDataWatcher;
|
||||
|
||||
public IEConfig() {
|
||||
super();
|
||||
}
|
||||
|
||||
public static void init(final File file) {
|
||||
File newFile;
|
||||
if (file.getPath().contains("bin")) {
|
||||
newFile = new File(file.getParent() + "/eclipse/config", "NEID.cfg");
|
||||
newFile = new File(file.getParent() + "/eclipse/config", Tags.MODID + ".cfg");
|
||||
}
|
||||
else {
|
||||
newFile = new File(file.getParentFile().getParent() + "/config", "NEID.cfg");
|
||||
newFile = new File(file.getParentFile().getParent() + "/config", Tags.MODID + ".cfg");
|
||||
}
|
||||
IEConfig.config = new Configuration(newFile);
|
||||
IEConfig.catchUnregisteredBlocks = IEConfig.config.getBoolean("CatchUnregisteredBlocks", "NEID", false, "");
|
||||
IEConfig.removeInvalidBlocks = IEConfig.config.getBoolean("RemoveInvalidBlocks", "NEID", false, "Remove invalid (corrupted) blocks from the game.");
|
||||
IEConfig.postNeidWorldsSupport = IEConfig.config.getBoolean("PostNeidWorldsSupport", "NEID", true, "If true, only blocks with IDs > 4095 will disappear after removing NEID.");
|
||||
IEConfig.extendDataWatcher = IEConfig.config.getBoolean("ExtendDataWatcher", "NEID", false, "Extend DataWatcher IDs. Vanilla limit is 31, new limit is 127.");
|
||||
IEConfig.catchUnregisteredBlocks = IEConfig.config.getBoolean("CatchUnregisteredBlocks", Tags.MODNAME, false, "");
|
||||
IEConfig.removeInvalidBlocks = IEConfig.config.getBoolean("RemoveInvalidBlocks", Tags.MODNAME, false, "Remove invalid (corrupted) blocks from the game.");
|
||||
IEConfig.extendDataWatcher = IEConfig.config.getBoolean("ExtendDataWatcher", Tags.MODNAME, false, "Extend DataWatcher IDs. Vanilla limit is 31, new limit is 127.");
|
||||
IEConfig.config.save();
|
||||
}
|
||||
|
||||
static {
|
||||
IEConfig.catchUnregisteredBlocks = false;
|
||||
IEConfig.removeInvalidBlocks = false;
|
||||
IEConfig.postNeidWorldsSupport = true;
|
||||
IEConfig.extendDataWatcher = false;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user