-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
60c914a
commit 52493ad
Showing
21 changed files
with
1,862 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/bin/ | ||
/build/ | ||
/.gradle/ | ||
/.settings/ | ||
/eclipse/ | ||
/.project | ||
/.classpath |
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,28 @@ | ||
This is Forge Mod Loader. | ||
|
||
You can find the source code at all times at https://github.com/MinecraftForge/FML | ||
|
||
This minecraft mod is a clean open source implementation of a mod loader for minecraft servers | ||
and minecraft clients. | ||
|
||
The code is authored by cpw. | ||
|
||
It began by partially implementing an API defined by the client side ModLoader, authored by Risugami. | ||
http://www.minecraftforum.net/topic/75440- | ||
This support has been dropped as of Minecraft release 1.7, as Risugami no longer maintains ModLoader. | ||
|
||
It also contains suggestions and hints and generous helpings of code from LexManos, author of MinecraftForge. | ||
http://www.minecraftforge.net/ | ||
|
||
Additionally, it contains an implementation of topological sort based on that | ||
published at http://keithschwarz.com/interesting/code/?dir=topological-sort | ||
|
||
It also contains code from the Maven project for performing versioned dependency | ||
resolution. http://maven.apache.org/ | ||
|
||
It also contains a partial repackaging of the javaxdelta library from http://sourceforge.net/projects/javaxdelta/ | ||
with credit to it's authors. | ||
|
||
Forge Mod Loader downloads components from the Minecraft Coder Pack | ||
(http://mcp.ocean-labs.de/index.php/Main_Page) with kind permission from the MCP team. | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
* Eloraam * | ||
|
||
* FlowerChild * | ||
|
||
* Hawkye * | ||
|
||
* MALfunction84 * | ||
|
||
Submitted the sleep handler code for his mod (Somnia) and others to use. | ||
|
||
* Scokeev9 * | ||
|
||
Gave permission for ScotTools API to be integrated into MCF, and also supported the Forge by converting his mods to use it. | ||
|
||
ScotTools Background: ScotTools was an API that enabled modders to add blocks to harvesting levels (and many other ease-of-use features to create new tools), and the first tool API that used block material for block breaking efficiency which allowed blocks from mods that didn't use ScotTools API to break with the correct speed. | ||
|
||
* SpaceToad * | ||
|
||
* LexManos * | ||
|
||
* cpw * | ||
|
||
* Minecraft Coder Pack (MCP) * | ||
Forge Mod Loader and Minecraft Forge have permission to distribute and automatically download components of MCP and distribute MCP data files. | ||
This permission is not transitive and others wishing to redistribute the Minecraft Forge source independently should seek permission of MCP or | ||
remove the MCP data files and request their users to download MCP separately. |
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,70 @@ | ||
Minecraft Forge Public Licence | ||
============================== | ||
|
||
Version 1.0 | ||
|
||
0. Definitions | ||
-------------- | ||
|
||
Minecraft: Denotes a copy of the Minecraft game licensed by Mojang AB | ||
|
||
User: Anybody that interract with the software in one of the following ways: | ||
- play | ||
- decompile | ||
- recompile or compile | ||
- modify | ||
|
||
Minecraft Forge: The Minecraft Forge code, in source form, class file form, as | ||
obtained in a standalone fashion or as part of a wider distribution. | ||
|
||
Dependency: Code required to have Minecraft Forge working properly. That can | ||
include dependencies required to compile the code as well as modifications in | ||
the Minecraft sources that are required to have Minecraft Forge working. | ||
|
||
1. Scope | ||
-------- | ||
|
||
The present license is granted to any user of Minecraft Forge, for all files included | ||
unless stated otherwise in the file itself. As a prerequisite, a user of Minecraft | ||
Forge must own a legally aquired copy of Minecraft. | ||
|
||
2. Play rights | ||
-------------- | ||
|
||
The user of Minecraft Forge is allowed to install the software on a client or | ||
a server and to play it without restriction. | ||
|
||
3. Modification rights | ||
---------------------- | ||
|
||
The user has the right to decompile the source code, look at either the | ||
decompiled version or the original source code, and to modify it. | ||
|
||
4. Derivation rights | ||
-------------------- | ||
|
||
The user has the rights to derive code from Minecraft Forge, that is to say to | ||
write code that either extends Minecraft Forge class and interfaces, | ||
instantiate the objects declared or calls the functions. This code is known as | ||
"derived" code, and can be licensed with conditions different from Minecraft | ||
Forge. | ||
|
||
|
||
5. Distribution rights | ||
---------------------- | ||
|
||
The user of Minecraft Forge is allowed to redistribute Minecraft Forge in | ||
partially, in totallity, or included in a distribution. When distributing | ||
binaries or class files, the user must provide means to obtain the sources of | ||
the distributed version of Minecraft Forge at no costs. This includes the | ||
files as well as any dependency that the code may rely on, including patches to | ||
minecraft original sources. | ||
|
||
Modification of Minecraft Forge as well as dependencies, including patches to | ||
minecraft original sources, has to remain under the terms of the present | ||
license. | ||
|
||
The right to distribute Minecraft Forge does not extend to the right to distribute | ||
MCP data files included within Minecraft Forge. These are the property of the MCP | ||
project and should be removed from any customized distribution of Minecraft Forge | ||
or permission sought separately from the MCP team. |
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,59 @@ | ||
------------------------------------------- | ||
Source installation information for modders | ||
------------------------------------------- | ||
This code follows the Minecraft Forge installation methodology. It will apply | ||
some small patches to the vanilla MCP source code, giving you and it access | ||
to some of the data and functions you need to build a successful mod. | ||
|
||
Note also that the patches are built against "unrenamed" MCP source code (aka | ||
srgnames) - this means that you will not be able to read them directly against | ||
normal code. | ||
|
||
Source pack installation information: | ||
|
||
Standalone source installation | ||
============================== | ||
|
||
Step 1: Open your command-line and browse to the folder where you extracted the zip file. | ||
|
||
Step 2: Once you have a command window up in the folder that the downloaded material was placed, type: | ||
|
||
Windows: "gradlew setupDecompWorkspace" | ||
Linux/Mac OS: "./gradlew setupDecompWorkspace" | ||
|
||
Step 3: After all that finished, you're left with a choice. | ||
For eclipse, run "gradlew eclipse" (./gradlew eclipse if you are on Mac/Linux) | ||
|
||
If you preffer to use IntelliJ, steps are a little different. | ||
1. Open IDEA, and import project. | ||
2. Select your build.gradle file and have it import. | ||
3. Once it's finished you must close IntelliJ and run the following command: | ||
|
||
"gradlew genIntellijRuns" (./gradlew genIntellijRuns if you are on Mac/Linux) | ||
|
||
Step 4: The final step is to open Eclipse and switch your workspace to /eclipse/ (if you use IDEA, it should automatically start on your project) | ||
|
||
If at any point you are missing libraries in your IDE, or you've run into problems you can run "gradlew --refresh-dependencies" to refresh the local cache. "gradlew clean" to reset everything {this does not effect your code} and then start the processs again. | ||
|
||
Should it still not work, | ||
Refer to #ForgeGradle on EsperNet for more information about the gradle environment. | ||
|
||
Tip: | ||
If you do not care about seeing Minecraft's source code you can replace "setupDecompWorkspace" with one of the following: | ||
"setupDevWorkspace": Will patch, deobfusicated, and gather required assets to run minecraft, but will not generated human readable source code. | ||
"setupCIWorkspace": Same as Dev but will not download any assets. This is useful in build servers as it is the fastest because it does the least work. | ||
|
||
Tip: | ||
When using Decomp workspace, the Minecraft source code is NOT added to your workspace in a editable way. Minecraft is treated like a normal Library. Sources are there for documentation and research purposes and usually can be accessed under the 'referenced libraries' section of your IDE. | ||
|
||
Forge source installation | ||
========================= | ||
MinecraftForge ships with this code and installs it as part of the forge | ||
installation process, no further action is required on your part. | ||
|
||
LexManos' Install Video | ||
======================= | ||
https://www.youtube.com/watch?v=8VEdtQLuLO0&feature=youtu.be | ||
|
||
For more details update more often refer to the Forge Forums: | ||
http://www.minecraftforge.net/forum/index.php/topic,14048.0.html |
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,70 @@ | ||
buildscript { | ||
repositories { | ||
mavenCentral() | ||
maven { | ||
name = "forge" | ||
url = "http://files.minecraftforge.net/maven" | ||
} | ||
maven { | ||
name = "sonatype" | ||
url = "https://oss.sonatype.org/content/repositories/snapshots/" | ||
} | ||
} | ||
dependencies { | ||
classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT' | ||
} | ||
} | ||
|
||
apply plugin: 'forge' | ||
|
||
version = "1.8-1.0" | ||
group= "net.unladenswallow.minecraft.autofish" // http://maven.apache.org/guides/mini/guide-naming-conventions.html | ||
archivesBaseName = "mod_autofish_forge" | ||
|
||
minecraft { | ||
version = "1.8-11.14.3.1502" | ||
runDir = "eclipse" | ||
|
||
// the mappings can be changed at any time, and must be in the following format. | ||
// snapshot_YYYYMMDD snapshot are built nightly. | ||
// stable_# stables are built at the discretion of the MCP team. | ||
// Use non-default mappings at your own risk. they may not allways work. | ||
// simply re-run your setup task after changing the mappings to update your workspace. | ||
mappings = "snapshot_20141130" | ||
} | ||
|
||
dependencies { | ||
// you may put jars on which you depend on in ./libs | ||
// or you may define them like so.. | ||
//compile "some.group:artifact:version:classifier" | ||
//compile "some.group:artifact:version" | ||
|
||
// real examples | ||
//compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env | ||
//compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env | ||
|
||
// for more info... | ||
// http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html | ||
// http://www.gradle.org/docs/current/userguide/dependency_management.html | ||
|
||
} | ||
|
||
processResources | ||
{ | ||
// this will ensure that this task is redone when the versions change. | ||
inputs.property "version", project.version | ||
inputs.property "mcversion", project.minecraft.version | ||
|
||
// replace stuff in mcmod.info, nothing else | ||
from(sourceSets.main.resources.srcDirs) { | ||
include 'mcmod.info' | ||
|
||
// replace version and mcversion | ||
expand 'version':project.version, 'mcversion':project.minecraft.version | ||
} | ||
|
||
// copy everything else, thats not the mcmod.info | ||
from(sourceSets.main.resources.srcDirs) { | ||
exclude 'mcmod.info' | ||
} | ||
} |
Binary file not shown.
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,6 @@ | ||
#Wed Jul 02 15:54:47 CDT 2014 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.0-bin.zip |
Oops, something went wrong.