Skip to content

Commit d798ffb

Browse files
committed
Initial commit
0 parents  commit d798ffb

File tree

16 files changed

+596
-0
lines changed

16 files changed

+596
-0
lines changed

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/.gradle
2+
/.settings
3+
/bin
4+
/build
5+
/run
6+
*.launch
7+
*.project
8+
*.classpath

build.gradle

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
buildscript {
2+
repositories {
3+
jcenter()
4+
maven { url = "http://files.minecraftforge.net/maven" }
5+
}
6+
dependencies {
7+
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
8+
}
9+
}
10+
apply plugin: 'net.minecraftforge.gradle.forge'
11+
//Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
12+
13+
14+
version = "1.0.0"
15+
group = "ru.wowhcb.towel"
16+
archivesBaseName = "towel"
17+
18+
sourceCompatibility = targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
19+
compileJava {
20+
sourceCompatibility = targetCompatibility = '1.8'
21+
}
22+
23+
minecraft {
24+
version = "1.12.2-14.23.0.2528"
25+
runDir = "run"
26+
mappings = "snapshot_20171003"
27+
}
28+
29+
dependencies {
30+
}
31+
32+
processResources {
33+
// this will ensure that this task is redone when the versions change.
34+
inputs.property "version", project.version
35+
inputs.property "mcversion", project.minecraft.version
36+
37+
// replace stuff in mcmod.info, nothing else
38+
from(sourceSets.main.resources.srcDirs) {
39+
include 'mcmod.info'
40+
41+
// replace version and mcversion
42+
expand 'version':project.version, 'mcversion':project.minecraft.version
43+
}
44+
45+
// copy everything else except the mcmod.info
46+
from(sourceSets.main.resources.srcDirs) {
47+
exclude 'mcmod.info'
48+
}
49+
}

gradle/wrapper/gradle-wrapper.jar

51 KB
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#Mon Sep 14 12:28:28 PDT 2015
2+
distributionBase=GRADLE_USER_HOME
3+
distributionPath=wrapper/dists
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14-bin.zip

gradlew

Lines changed: 164 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 90 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
package ru.wowhcb.towel;
2+
3+
import org.apache.logging.log4j.Logger;
4+
5+
import net.minecraftforge.fml.common.Mod;
6+
import net.minecraftforge.fml.common.SidedProxy;
7+
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
8+
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
9+
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
10+
import ru.wowhcb.towel.proxy.CommonProxy;
11+
12+
@Mod(modid = Core.MODID, version = Core.VERSION, name = Core.MODNAME)
13+
public class Core
14+
{
15+
public static final String MODID = "towel";
16+
public static final String MODNAME = "BTM Towel";
17+
public static final String VERSION = "1.0.0";
18+
19+
@Mod.Instance
20+
public static Core instance;
21+
22+
@SidedProxy(clientSide="ru.wowhcb.towel.proxy.ClientProxy", serverSide="ru.wowhcb.towel.proxy.ServerProxy")
23+
public static CommonProxy proxy;
24+
25+
public static Logger logger;
26+
27+
@Mod.EventHandler
28+
public void preInit(FMLPreInitializationEvent e) {
29+
logger = e.getModLog();
30+
proxy.preInit(e);
31+
}
32+
33+
@Mod.EventHandler
34+
public void init(FMLInitializationEvent e) {
35+
proxy.init(e);
36+
}
37+
38+
@Mod.EventHandler
39+
public void postInit(FMLPostInitializationEvent e) {
40+
proxy.postInit(e);
41+
}
42+
}

0 commit comments

Comments
 (0)