mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-05-08 18:34:12 +00:00
Expose a stub "cctweaked" mod
This is largely invisible (it's marked as a child of the main "computercraft" mod), but allows other mods (such as Plethora) to add hard/soft dependencies on CC:T in a user-friendly manner.
This commit is contained in:
parent
9bf586b018
commit
e4ef92ca2d
30
src/main/java/dan200/computercraft/CCTweaked.java
Normal file
30
src/main/java/dan200/computercraft/CCTweaked.java
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of ComputerCraft - http://www.computercraft.info
|
||||||
|
* Copyright Daniel Ratcliffe, 2011-2019. Do not distribute without permission.
|
||||||
|
* Send enquiries to dratcliffe@gmail.com
|
||||||
|
*/
|
||||||
|
|
||||||
|
package dan200.computercraft;
|
||||||
|
|
||||||
|
import net.minecraftforge.fml.common.Mod;
|
||||||
|
import net.minecraftforge.fml.common.network.NetworkCheckHandler;
|
||||||
|
import net.minecraftforge.fml.relauncher.Side;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A stub mod for CC: Tweaked. This doesn't have any functionality (everything of note is done in
|
||||||
|
* {@link ComputerCraft}), but people may depend on this if they require CC: Tweaked functionality.
|
||||||
|
*/
|
||||||
|
@Mod(
|
||||||
|
modid = "cctweaked", name = ComputerCraft.NAME, version = ComputerCraft.VERSION,
|
||||||
|
acceptableRemoteVersions = "*"
|
||||||
|
)
|
||||||
|
public class CCTweaked
|
||||||
|
{
|
||||||
|
@NetworkCheckHandler
|
||||||
|
public boolean onNetworkConnect( Map<String, String> mods, Side side )
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
@ -91,13 +91,15 @@ import java.util.zip.ZipEntry;
|
|||||||
import java.util.zip.ZipFile;
|
import java.util.zip.ZipFile;
|
||||||
|
|
||||||
@Mod(
|
@Mod(
|
||||||
modid = ComputerCraft.MOD_ID, name = "CC: Tweaked", version = "${version}",
|
modid = ComputerCraft.MOD_ID, name = ComputerCraft.NAME, version = ComputerCraft.VERSION,
|
||||||
guiFactory = "dan200.computercraft.client.gui.GuiConfigCC$Factory",
|
guiFactory = "dan200.computercraft.client.gui.GuiConfigCC$Factory",
|
||||||
dependencies = "required:forge@[14.23.4.2746,)"
|
dependencies = "required:forge@[14.23.4.2746,)"
|
||||||
)
|
)
|
||||||
public class ComputerCraft
|
public class ComputerCraft
|
||||||
{
|
{
|
||||||
public static final String MOD_ID = "computercraft";
|
public static final String MOD_ID = "computercraft";
|
||||||
|
static final String VERSION = "${version}";
|
||||||
|
static final String NAME = "CC: Tweaked";
|
||||||
|
|
||||||
// Configuration options
|
// Configuration options
|
||||||
public static final String[] DEFAULT_HTTP_WHITELIST = new String[] { "*" };
|
public static final String[] DEFAULT_HTTP_WHITELIST = new String[] { "*" };
|
||||||
@ -297,7 +299,7 @@ public class ComputerCraft
|
|||||||
|
|
||||||
public static String getVersion()
|
public static String getVersion()
|
||||||
{
|
{
|
||||||
return "${version}";
|
return VERSION;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static File getBaseDir()
|
private static File getBaseDir()
|
||||||
|
@ -5,17 +5,19 @@
|
|||||||
"version" : "${version}",
|
"version" : "${version}",
|
||||||
"mcversion" : "${mcversion}",
|
"mcversion" : "${mcversion}",
|
||||||
"url" : "https://github.com/SquidDev-CC/CC-Tweaked",
|
"url" : "https://github.com/SquidDev-CC/CC-Tweaked",
|
||||||
"credits" : "Created by Daniel Ratcliffe (@DanTwoHundred)",
|
"credits" : "Initially created by Daniel Ratcliffe (@DanTwoHundred)",
|
||||||
"authorList" : [
|
"authorList" : [
|
||||||
"Daniel Ratcliffe",
|
"Daniel Ratcliffe",
|
||||||
"Aaron Mills",
|
"Aaron Mills",
|
||||||
"SquidDev"
|
"SquidDev"
|
||||||
],
|
],
|
||||||
"description" : "CC: Tweaked is a fork of ComputerCraft with a focus on more experimental features.",
|
"description" : "CC: Tweaked is a fork of ComputerCraft, adding programmable computers, turtles and more to Minecraft.",
|
||||||
"logoFile" : "pack.png",
|
"logoFile" : "pack.png"
|
||||||
"updateUrl" : "https://github.com/SquidDev-CC/CC-Tweaked",
|
},
|
||||||
"parent" : "",
|
{
|
||||||
"screenshots": [
|
"modid" : "cctweaked",
|
||||||
]
|
"name" : "CC: Tweaked",
|
||||||
|
"version" : "${version}",
|
||||||
|
"parent" : "computercraft"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user