Skip to content

Commit a1b70ff

Browse files
committed
Initial Forge Port/Release
0 parents  commit a1b70ff

29 files changed

+1204
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: "[BUG] "
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Versions (DO NOT USE "LATEST"! I STEAL YOUR KNEE CAPS!):**
27+
- Minecraft Version:
28+
- Forge Version:
29+
- Java Version:
30+
- Mod Version:
31+
- Client Side [ ] / Server Side [ ]
32+
33+
**Additional context**
34+
Add any other context about the problem here.
35+
36+
**Crash Report**
37+
If the game crashed, please include your latest crash report here
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: "[SUGGESTION]"
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/workflows/gradle.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# This workflow will build a Java project with Gradle
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
3+
4+
name: Build Test
5+
on:
6+
push:
7+
branches: [ master ]
8+
pull_request:
9+
branches: [ master ]
10+
11+
jobs:
12+
build:
13+
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Set up JDK 8
19+
uses: actions/setup-java@v2
20+
with:
21+
java-version: '8'
22+
distribution: 'adopt'
23+
- name: Grant execute permission for gradlew
24+
run: chmod +x gradlew
25+
- name: Build with Gradle
26+
run: ./gradlew build

.gitignore

+118
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
# User-specific stuff
2+
.idea/
3+
4+
*.iml
5+
*.ipr
6+
*.iws
7+
8+
# IntelliJ
9+
out/
10+
# mpeltonen/sbt-idea plugin
11+
.idea_modules/
12+
13+
# JIRA plugin
14+
atlassian-ide-plugin.xml
15+
16+
# Compiled class file
17+
*.class
18+
19+
# Log file
20+
*.log
21+
22+
# BlueJ files
23+
*.ctxt
24+
25+
# Package Files #
26+
*.jar
27+
*.war
28+
*.nar
29+
*.ear
30+
*.zip
31+
*.tar.gz
32+
*.rar
33+
34+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
35+
hs_err_pid*
36+
37+
*~
38+
39+
# temporary files which can be created if a process still has a handle open of a deleted file
40+
.fuse_hidden*
41+
42+
# KDE directory preferences
43+
.directory
44+
45+
# Linux trash folder which might appear on any partition or disk
46+
.Trash-*
47+
48+
# .nfs files are created when an open file is removed but is still being accessed
49+
.nfs*
50+
51+
# General
52+
.DS_Store
53+
.AppleDouble
54+
.LSOverride
55+
56+
# Icon must end with two \r
57+
Icon
58+
59+
# Thumbnails
60+
._*
61+
62+
# Files that might appear in the root of a volume
63+
.DocumentRevisions-V100
64+
.fseventsd
65+
.Spotlight-V100
66+
.TemporaryItems
67+
.Trashes
68+
.VolumeIcon.icns
69+
.com.apple.timemachine.donotpresent
70+
71+
# Directories potentially created on remote AFP share
72+
.AppleDB
73+
.AppleDesktop
74+
Network Trash Folder
75+
Temporary Items
76+
.apdisk
77+
78+
# Windows thumbnail cache files
79+
Thumbs.db
80+
Thumbs.db:encryptable
81+
ehthumbs.db
82+
ehthumbs_vista.db
83+
84+
# Dump file
85+
*.stackdump
86+
87+
# Folder config file
88+
[Dd]esktop.ini
89+
90+
# Recycle Bin used on file shares
91+
$RECYCLE.BIN/
92+
93+
# Windows Installer files
94+
*.cab
95+
*.msi
96+
*.msix
97+
*.msm
98+
*.msp
99+
100+
# Windows shortcuts
101+
*.lnk
102+
103+
.gradle
104+
build/
105+
106+
# Ignore Gradle GUI config
107+
gradle-app.setting
108+
109+
# Cache of project
110+
.gradletasknamecache
111+
112+
**/build/
113+
114+
# Common working directory
115+
run/
116+
117+
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
118+
!gradle-wrapper.jar

build.gradle

+153
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,153 @@
1+
buildscript {
2+
repositories {
3+
maven {
4+
name = 'sponge'
5+
url = 'https://repo.spongepowered.org/maven'
6+
}
7+
maven { url = 'https://files.minecraftforge.net/maven' }
8+
jcenter()
9+
mavenCentral()
10+
}
11+
dependencies {
12+
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true
13+
classpath group: 'org.spongepowered', name: 'mixingradle', version: '0.7-SNAPSHOT'
14+
}
15+
}
16+
17+
apply plugin: 'net.minecraftforge.gradle'
18+
apply plugin: 'org.spongepowered.mixin'
19+
20+
group = 'me.hypherionmc'
21+
version = '1.0'
22+
archivesBaseName = 'SimpleSplashScreen'
23+
24+
// Jenkins
25+
if (System.getenv('BUILD_NUMBER') != null) {
26+
version = "dev-" + System.getenv('BUILD_NUMBER')
27+
jar.archiveName = archivesBaseName + "-dev-" + System.getenv('BUILD_NUMBER') + ".jar"
28+
}
29+
30+
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
31+
32+
minecraft {
33+
// The mappings can be changed at any time, and must be in the following format.
34+
// snapshot_YYYYMMDD Snapshot are built nightly.
35+
// stable_# Stables are built at the discretion of the MCP team.
36+
// Use non-default mappings at your own risk. they may not always work.
37+
// Simply re-run your setup task after changing the mappings to update your workspace.
38+
mappings channel: 'snapshot', version: '20210309-1.16.5'
39+
// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
40+
41+
// accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
42+
43+
// Default run configurations.
44+
// These can be tweaked, removed, or duplicated as needed.
45+
runs {
46+
client {
47+
workingDirectory project.file('run')
48+
arg "-mixin.config=simplesplashscreen.mixins.json"
49+
// Recommended logging data for a userdev environment
50+
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
51+
52+
// Recommended logging level for the console
53+
property 'forge.logging.console.level', 'debug'
54+
55+
mods {
56+
simplesplashscreen {
57+
source sourceSets.main
58+
}
59+
}
60+
}
61+
62+
server {
63+
workingDirectory project.file('run')
64+
65+
// Recommended logging data for a userdev environment
66+
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
67+
68+
// Recommended logging level for the console
69+
property 'forge.logging.console.level', 'debug'
70+
71+
mods {
72+
simplesplashscreen {
73+
source sourceSets.main
74+
}
75+
}
76+
}
77+
78+
data {
79+
workingDirectory project.file('run')
80+
81+
// Recommended logging data for a userdev environment
82+
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
83+
84+
// Recommended logging level for the console
85+
property 'forge.logging.console.level', 'debug'
86+
87+
// Specify the modid for data generation, where to output the resulting resource, and where to look for existing resources.
88+
args '--mod', 'simplesplashscreen', '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/')
89+
90+
mods {
91+
simplesplashscreen {
92+
source sourceSets.main
93+
}
94+
}
95+
}
96+
}
97+
}
98+
99+
// Include resources generated by data generators.
100+
sourceSets.main.resources { srcDir 'src/generated/resources' }
101+
102+
repositories {
103+
maven { url "https://maven.shedaniel.me/" }
104+
}
105+
106+
dependencies {
107+
// Specify the version of Minecraft to use, If this is any group other then 'net.minecraft' it is assumed
108+
// that the dep is a ForgeGradle 'patcher' dependency. And it's patches will be applied.
109+
// The userdev artifact is a special name and will get all sorts of transformations applied to it.
110+
minecraft 'net.minecraftforge:forge:1.16.5-36.1.10'
111+
112+
compile(fg.deobf("me.shedaniel.cloth:cloth-config-forge:4.11.26"))
113+
114+
// You may put jars on which you depend on in ./libs or you may define them like so..
115+
// compile "some.group:artifact:version:classifier"
116+
// compile "some.group:artifact:version"
117+
118+
// Real examples
119+
// compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env
120+
// compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env
121+
122+
// The 'provided' configuration is for optional dependencies that exist at compile-time but might not at runtime.
123+
// provided 'com.mod-buildcraft:buildcraft:6.0.8:dev'
124+
125+
// These dependencies get remapped to your current MCP mappings
126+
// deobf 'com.mod-buildcraft:buildcraft:6.0.8:dev'
127+
128+
// For more info...
129+
// http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
130+
// http://www.gradle.org/docs/current/userguide/dependency_management.html
131+
}
132+
133+
// Example for how to get properties into the manifest for reading by the runtime..
134+
jar {
135+
manifest {
136+
attributes([
137+
"Specification-Title" : "simplesplashscreen",
138+
//"Specification-Vendor": "customsplashscreen authors",
139+
"Specification-Version" : "1", // We are version 1 of ourselves
140+
"Implementation-Title" : project.name,
141+
"Implementation-Version" : project.version,
142+
//"Implementation-Vendor": "customsplashscreen authors",
143+
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ"),
144+
"MixinConfigs": "simplesplashscreen.mixins.json"
145+
])
146+
}
147+
}
148+
149+
jar.finalizedBy('reobfJar')
150+
151+
mixin {
152+
add sourceSets.main, "simplesplashscreen.refmap.json"
153+
}

gradle.properties

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
org.gradle.jvmargs=-Xmx3G
2+
org.gradle.daemon=false

gradle/wrapper/gradle-wrapper.jar

54.9 KB
Binary file not shown.
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.3-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)