Start project
This commit is contained in:
commit
140474e194
12
.gitignore
vendored
Normal file
12
.gitignore
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
/libs
|
||||
/build
|
||||
/Minecraft Client/*
|
||||
/Minecraft Server/*
|
||||
/Minecraft Server Save/*
|
||||
/.idea
|
||||
/.gradle
|
||||
/gradle
|
||||
/eclipse
|
||||
/gradlew
|
||||
/gradlew.bat
|
||||
/output
|
89
build.gradle
Normal file
89
build.gradle
Normal file
|
@ -0,0 +1,89 @@
|
|||
buildscript {
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven {
|
||||
name = "forge"
|
||||
url = "https://repo.spongepowered.org/repository/forge-proxy/"
|
||||
}
|
||||
maven {
|
||||
name = "sunproject"
|
||||
url = "http://mvn.sunproject.xyz/releases"
|
||||
}
|
||||
maven {
|
||||
name = "sonatype"
|
||||
url = "https://oss.sonatype.org/content/repositories/snapshots/"
|
||||
}
|
||||
}
|
||||
dependencies {
|
||||
classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
|
||||
}
|
||||
}
|
||||
|
||||
apply plugin: 'forge'
|
||||
|
||||
compileJava.options.encoding = 'UTF-8'
|
||||
|
||||
version = "0.0.0"
|
||||
group = "xamora.gp_dbc" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||
archivesBaseName = "gp_dbc"
|
||||
sourceCompatibility = targetCompatibility = "1.8"
|
||||
compileJava {
|
||||
sourceCompatibility = targetCompatibility = "1.8"
|
||||
}
|
||||
|
||||
minecraft {
|
||||
version = "1.7.10-10.13.4.1614-1.7.10"
|
||||
runDir = "eclipse"
|
||||
}
|
||||
|
||||
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'
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets
|
||||
{
|
||||
main
|
||||
{
|
||||
output.resourcesDir = output.classesDir
|
||||
}
|
||||
}
|
||||
|
||||
idea
|
||||
{
|
||||
module
|
||||
{
|
||||
inheritOutputDirs = true
|
||||
}
|
||||
}
|
35
src/main/java/gp_dbc/Main.java
Normal file
35
src/main/java/gp_dbc/Main.java
Normal file
|
@ -0,0 +1,35 @@
|
|||
package gp_dbc;
|
||||
|
||||
import cpw.mods.fml.common.event.*;
|
||||
import cpw.mods.fml.common.Mod;
|
||||
import cpw.mods.fml.common.Mod.EventHandler;
|
||||
|
||||
@Mod(modid = Main.MODID, version = Main.VERSION)
|
||||
public class Main
|
||||
{
|
||||
public static final String MODID = "gp_dbc";
|
||||
public static final String VERSION = "0.0.0";
|
||||
|
||||
@EventHandler
|
||||
public void preInit(FMLPreInitializationEvent $e) {
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void init(FMLInitializationEvent $e) {
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void postInit(FMLPostInitializationEvent $e) {
|
||||
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void serverStarting(FMLServerStartingEvent event) {
|
||||
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void serverStopping(FMLServerStoppingEvent event) {
|
||||
|
||||
}
|
||||
}
|
20
src/main/java/gp_dbc/proxy/ClientProxy.java
Normal file
20
src/main/java/gp_dbc/proxy/ClientProxy.java
Normal file
|
@ -0,0 +1,20 @@
|
|||
package gp_dbc.proxy;
|
||||
|
||||
import cpw.mods.fml.common.event.FMLInitializationEvent;
|
||||
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
|
||||
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
||||
|
||||
public class ClientProxy extends CommonProxy {
|
||||
|
||||
public void preInit(FMLPreInitializationEvent $e) {
|
||||
super.preInit($e);
|
||||
}
|
||||
|
||||
public void init(FMLInitializationEvent $e) {
|
||||
super.init($e);
|
||||
}
|
||||
|
||||
public void postInit(FMLPostInitializationEvent $e) {
|
||||
super.postInit($e);
|
||||
}
|
||||
}
|
26
src/main/java/gp_dbc/proxy/CommonProxy.java
Normal file
26
src/main/java/gp_dbc/proxy/CommonProxy.java
Normal file
|
@ -0,0 +1,26 @@
|
|||
package gp_dbc.proxy;
|
||||
|
||||
import cpw.mods.fml.common.event.FMLInitializationEvent;
|
||||
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
|
||||
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
||||
import cpw.mods.fml.common.network.simpleimpl.SimpleNetworkWrapper;
|
||||
|
||||
public class CommonProxy {
|
||||
|
||||
public static SimpleNetworkWrapper network;
|
||||
|
||||
public void preInit(FMLPreInitializationEvent $e) {
|
||||
|
||||
}
|
||||
|
||||
public void init(FMLInitializationEvent $e) {
|
||||
|
||||
}
|
||||
|
||||
public void postInit(FMLPostInitializationEvent $e) {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
22
src/main/java/gp_dbc/proxy/ServerProxy.java
Normal file
22
src/main/java/gp_dbc/proxy/ServerProxy.java
Normal file
|
@ -0,0 +1,22 @@
|
|||
package gp_dbc.proxy;
|
||||
|
||||
import cpw.mods.fml.common.FMLCommonHandler;
|
||||
import cpw.mods.fml.common.event.FMLInitializationEvent;
|
||||
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
|
||||
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
|
||||
|
||||
public class ServerProxy extends CommonProxy{
|
||||
|
||||
public void preInit(FMLPreInitializationEvent $e) {
|
||||
super.preInit($e);
|
||||
}
|
||||
|
||||
public void init(FMLInitializationEvent $e) {
|
||||
super.init($e);
|
||||
}
|
||||
|
||||
public void postInit(FMLPostInitializationEvent $e) {
|
||||
super.postInit($e);
|
||||
}
|
||||
|
||||
}
|
16
src/main/resources/mcmod.info
Normal file
16
src/main/resources/mcmod.info
Normal file
|
@ -0,0 +1,16 @@
|
|||
[
|
||||
{
|
||||
"modid": "gp_dbc",
|
||||
"name": "Galatic Patrol DBC",
|
||||
"description": "Galatic Patrol DBZ for DBC mod",
|
||||
"version": "${version}",
|
||||
"mcversion": "${mcversion}",
|
||||
"url": "",
|
||||
"updateUrl": "",
|
||||
"authorList": ["Xamora"],
|
||||
"credits": "",
|
||||
"logoFile": "",
|
||||
"screenshots": [],
|
||||
"dependencies": []
|
||||
}
|
||||
]
|
Loading…
Reference in a new issue