-
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.
- Loading branch information
Stefan Wimmer
committed
Jul 25, 2016
1 parent
81cdcdb
commit 5ba8230
Showing
8 changed files
with
155 additions
and
122 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# MoreFood | ||
|
||
This Minecraft Mod will add additional food to Mincraft to provide a healthy variety. | ||
This Minecraft Mod will add additional food to Minecraft to provide a healthy variety. | ||
|
||
More information can be found on [Curse](http://minecraft.curseforge.com/projects/tm-morefood) |
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,48 +1,58 @@ | ||
buildscript { | ||
repositories { | ||
buildscript | ||
{ | ||
repositories | ||
{ | ||
jcenter() | ||
|
||
maven { | ||
name = "forge" | ||
url = "http://files.minecraftforge.net/maven" | ||
} | ||
} | ||
dependencies { | ||
classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT' | ||
|
||
dependencies | ||
{ | ||
classpath "net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT" | ||
} | ||
} | ||
|
||
apply plugin: "scala" | ||
apply plugin: "net.minecraftforge.gradle.forge" | ||
|
||
version = "2.0.0" | ||
version = "2.1.0" | ||
group = "io.teammion.morefood" | ||
archivesBaseName = "tm-morefood" | ||
|
||
sourceCompatibility = JavaVersion.VERSION_1_8 | ||
targetCompatibility = JavaVersion.VERSION_1_8 | ||
|
||
minecraft { | ||
minecraft | ||
{ | ||
version = "1.10.2-12.18.1.2020" | ||
runDir = "run" | ||
|
||
mappings = "snapshot_20160518" | ||
} | ||
|
||
dependencies { | ||
dependencies | ||
{ | ||
} | ||
|
||
processResources | ||
{ | ||
inputs.property "version", project.version | ||
inputs.property "mcversion", project.minecraft.version | ||
|
||
from(sourceSets.main.resources.srcDirs) { | ||
include 'mcmod.info' | ||
from(sourceSets.main.resources.srcDirs) | ||
{ | ||
include "mcmod.info" | ||
|
||
expand 'version':project.version, 'mcversion':project.minecraft.version | ||
expand "version": project.version, | ||
"mcversion": project.minecraft.version | ||
} | ||
|
||
from(sourceSets.main.resources.srcDirs) { | ||
exclude 'mcmod.info' | ||
from(sourceSets.main.resources.srcDirs) | ||
{ | ||
exclude "mcmod.info" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ package io.teammion.morefood | |
import io.teammion.morefood.proxy.CommonProxy | ||
import net.minecraftforge.fml.common.{Mod, SidedProxy} | ||
import net.minecraftforge.fml.common.event.{FMLInitializationEvent, FMLPostInitializationEvent, FMLPreInitializationEvent} | ||
import org.apache.logging.log4j.Logger | ||
|
||
/** | ||
* Created by Stefan Wimmer <[email protected]> on 24.07.16. | ||
|
@@ -16,15 +17,37 @@ object MoreFood | |
) | ||
var proxy : CommonProxy = _ | ||
|
||
var logger : Logger = _ | ||
|
||
@Mod.EventHandler | ||
def preInit(e : FMLPreInitializationEvent) : Unit = | ||
{ | ||
logger = e.getModLog | ||
|
||
logger.info ("MoreFood preinitializing...") | ||
|
||
proxy.preInit(e) | ||
|
||
logger.info("MoreFood preinitialized") | ||
} | ||
|
||
@Mod.EventHandler | ||
def init(e : FMLInitializationEvent) : Unit = | ||
{ | ||
logger.info("MoreFood initializing...") | ||
|
||
proxy.init(e) | ||
|
||
logger.info("MoreFood initialized") | ||
} | ||
|
||
@Mod.EventHandler | ||
def postInit(e : FMLPostInitializationEvent) : Unit = | ||
{ | ||
logger.info("MoreFood postinitializing...") | ||
|
||
proxy.postInit(e) | ||
|
||
logger.info("MoreFood postinitialized") | ||
} | ||
} |
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
Oops, something went wrong.