Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pipenet rewrite #1945

Open
wants to merge 70 commits into
base: 1.20.1
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
45847f1
start on graph pipenet port :) (very much WIP, doesn't launch at all,…
screret Aug 21, 2024
a42e55f
stuff
screret Aug 21, 2024
2ada98e
holy hell
screret Aug 21, 2024
5a6d384
pipenets
screret Aug 22, 2024
841d519
stuff
screret Aug 22, 2024
e8215ad
holy errors, batman!
screret Aug 22, 2024
811a443
fix conveyor cover build errors, spotless
screret Aug 22, 2024
d9a2495
duct pipes
screret Aug 23, 2024
e41c4a8
fluid pipe properties
screret Aug 23, 2024
a5c6415
WHAT THE FUCK THE COMPILE ERRORS STOPPED COMING
screret Aug 23, 2024
a26d800
rendering does nnnnot work just yet, placing a block crashes because …
screret Aug 23, 2024
6c0de35
it works now yay
screret Aug 24, 2024
918fcad
actually fix #1650
screret Aug 24, 2024
f55c36b
allow blocks without block entities to do grid highlights as well
screret Aug 24, 2024
ae1b610
fix world pipe nets not having their level set correctly
screret Aug 24, 2024
7bd7a6e
clean up JAVD compat because it annoyed me
screret Aug 24, 2024
70cb63a
everything works, except:
screret Aug 24, 2024
eedb538
render works now
screret Aug 25, 2024
18808f5
new model logic port
screret Aug 25, 2024
c965fe0
it works :yippee:
screret Aug 25, 2024
bae0f37
datagen
screret Aug 25, 2024
b271b41
small fixes
screret Aug 25, 2024
ede4f3c
move net logic entry types to a clearer system
screret Sep 4, 2024
a2245bb
remove fluid pipe storage provider as it's useless now
screret Sep 4, 2024
dd298ab
update with changes from 1.12
screret Sep 5, 2024
cf069ed
start on fixing computation stuff with new things
screret Sep 5, 2024
6fae2fe
I think? it works can't test rn
screret Sep 5, 2024
3b91b68
remove ancient "fixers" that are definitely no longer needed
screret Sep 5, 2024
de5bb4d
add datafixer internal code
screret Sep 5, 2024
fe851d5
add datafixers from 1.21 and pipe remap fix
screret Sep 5, 2024
8b43e3e
:weary:
screret Sep 5, 2024
1805167
work pls
screret Sep 5, 2024
2dd726b
try to fix datafix
screret Sep 6, 2024
31d1c8c
datagen
screret Sep 6, 2024
ee1b582
y u no find blcok :wuh:
screret Sep 6, 2024
1012107
fix pipe renames + connections
screret Sep 7, 2024
f513a1d
add methods to IGTAddon for loading client data, tags and loot tables…
screret Sep 7, 2024
3c595db
would you rather have infinite bloom but no cables or cables, infinit…
screret Sep 7, 2024
d3b5f91
fix cable colors (it was simple), support all colors on frame boxes, …
screret Sep 9, 2024
56885e2
port latest changes
screret Sep 9, 2024
7f7bd4b
clean up unused fields, spotless
screret Sep 9, 2024
699c7ae
fix net logic types not loading early enough
screret Sep 9, 2024
9fc77e8
fix some tint color and frame box issues
screret Sep 9, 2024
89f286b
spotless
screret Sep 9, 2024
14e0258
fix more frame box issues
screret Sep 9, 2024
7f2011f
port lots of changes
screret Sep 12, 2024
8fdf4aa
fix gradle + spotless + datagen
screret Sep 12, 2024
6c7ecd0
disable gradle-home-cache-cleanup so that action works again
screret Sep 13, 2024
388b11a
fix errors, spotless, datagen refresh
screret Sep 26, 2024
b0acd14
attempt number 1 at fixing the github build
screret Sep 26, 2024
6d48dcc
number 2
screret Sep 26, 2024
bfca36f
attempt number 3
screret Sep 26, 2024
80d63a2
fix laser redirector pipe model
screret Sep 26, 2024
bf838ae
attempt 4
screret Sep 26, 2024
0510507
attempt 5
screret Sep 26, 2024
635d512
yippee it works
screret Sep 26, 2024
30e68ad
fix pipe structures not actually being registered
screret Sep 26, 2024
0ec799f
fix laser bender grid overlay not working correctly
screret Sep 26, 2024
69dee7b
fix laser bender texture showing through because the texture wasn't f…
screret Sep 26, 2024
80bae58
try to fix shadow using dependencies from runtimeClasspath
screret Sep 27, 2024
3a8c495
fix moving when a server closes crashing the client
screret Sep 29, 2024
1e6a6b0
fix server
screret Sep 29, 2024
8435c54
fix portable scanner using the wrong method for getting block tooltip…
screret Sep 29, 2024
656d7c3
sbobldes
screret Sep 29, 2024
7cee9f5
fix mixin refmap in prod
screret Oct 1, 2024
63b4271
fix bug in shadow that broke jar-in-jar
screret Oct 1, 2024
3e75a4d
fix fluid crash
screret Oct 1, 2024
69d1b58
teeny tiny little crash
screret Oct 1, 2024
fa98dff
actually fix the crash (it's caused by remapping)
screret Oct 1, 2024
e11ff74
fix null crash
screret Oct 1, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions .github/actions/build_setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,8 @@ runs:
notifications
jdks
wrapper

# run gradlew jar to set up necessary files before shadow can break them in the Build step
- name: Pre-build
shell: bash
run: ./gradlew jar --build-cache
23 changes: 21 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar

plugins {
id 'java-library'
id 'eclipse'
id 'idea'
id 'maven-publish'
alias libs.plugins.modDevGradle
alias libs.plugins.machete // automatic jar compressing on build
//alias libs.plugins.shadow
alias libs.plugins.shadow
alias libs.plugins.spotless
alias libs.plugins.lombok
}
Expand All @@ -18,14 +20,31 @@ java.toolchain.languageVersion = JavaLanguageVersion.of(17)
boolean isSnapshot = System.getenv("SNAPSHOT")
version = "${mod_version}" + (isSnapshot ? "-SNAPSHOT" : "")

tasks.register('slimJar', ShadowJar) {
from sourceSets.main.output
}

final refmapFile = mixin.add sourceSets.main, "gtceu.refmap.json"

apply from: "$rootDir/gradle/scripts/moddevgradle.gradle"
apply from: "$rootDir/gradle/scripts/repositories.gradle"
apply from: "$rootDir/gradle/scripts/jars.gradle"
apply from: "$rootDir/dependencies.gradle"
apply from: "$rootDir/gradle/scripts/resources.gradle"
apply from: "$rootDir/gradle/scripts/jars.gradle"
apply from: "$rootDir/gradle/scripts/publishing.gradle"
apply from: "$rootDir/gradle/scripts/spotless.gradle"

afterEvaluate {
tasks.withType(ShadowJar).configureEach {
from(refmapFile)
configurations = [project.configurations.includedLibrary]
minimize()
relocate("org.jgrapht", "${maven_group}.repack.org.jgrapht")
relocate("org.jheaps", "${maven_group}.repack.org.jheaps")
relocate("org.apfloat", "${maven_group}.repack.org.apfloat")
}
}

// Include resources generated by data generators.
sourceSets.main.resources { srcDir 'src/generated/resources' }

Expand Down
8 changes: 7 additions & 1 deletion dependencies.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
dependencies {
compileOnly 'org.jetbrains:annotations:24.1.0'

// Shadowed Dependencies
// Packages that aren't mods, and thus need to be included in the release files.

api(includedLibrary('org.jgrapht:jgrapht-core:1.5.2')) // JGraphT 1.5.2
additionalRuntimeClasspath('org.jgrapht:jgrapht-core:1.5.2')

// LDLib
modApi(forge.ldlib.forge) { transitive = false }
jarJar(forge.ldlib.forge)
Expand Down Expand Up @@ -57,7 +63,7 @@ dependencies {
jarJar(forge.configuration)

// Shimmer
modCompileOnly(forge.shimmer.forge) { transitive = false }
modImplementation(forge.shimmer.forge) { transitive = false }
modCompileOnly("maven.modrinth:embeddium:0.3.19+mc1.20.1")
modCompileOnly("maven.modrinth:oculus:1.20.1-1.7.0")

Expand Down
40 changes: 38 additions & 2 deletions gradle/scripts/jars.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,46 @@
tasks.register('slimJar', Jar) {
configurations {
includedLibrary {
canBeConsumed = false
canBeResolved = true
}
}

// hack to avoid a bug in Shadow: https://github.com/GradleUp/shadow/issues/111
tasks.register('shadowBugWorkaround', Jar) {
dependsOn jarJar
from jarJar.outputs
}

shadowJar {
from tasks.shadowBugWorkaround
configurations = [project.configurations.includedLibrary]
archiveClassifier = "dev"
}

slimJar {
configurations = [project.configurations.includedLibrary]
archiveClassifier = "dev-slim"
from sourceSets.main.output
}

obfuscation {
reobfuscate(tasks.named('slimJar'), sourceSets.main) {
archiveClassifier = "slim"
}
reobfuscate(tasks.named('shadowJar'), sourceSets.main) {
archiveClassifier = null
archiveClassifier.convention(null)
}
}

jar {
archiveClassifier = "dev-no-shadow"
archiveClassifier.convention("dev-no-shadow")
enabled = false
}

reobfJar {
archiveClassifier = "no-shadow"
enabled = false
}

tasks.register('sourcesJar', Jar) {
Expand All @@ -21,6 +55,8 @@ base {

afterEvaluate {
tasks.withType(org.gradle.jvm.tasks.Jar).configureEach {
exclude ".cache/*"

manifest.attributes([
'MixinConfigs': 'gtceu.mixins.json',
'Specification-Title': project.name,
Expand Down
2 changes: 0 additions & 2 deletions gradle/scripts/moddevgradle.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

mixin {
add sourceSets.main, "gtceu.refmap.json"
config 'gtceu.mixins.json'
}

Expand Down
5 changes: 3 additions & 2 deletions gradle/scripts/publishing.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
artifacts {
archives tasks.reobfJar
archives tasks.shadowJar
archives tasks.reobfShadowJar
archives tasks.reobfSlimJar
archives tasks.sourcesJar
}
Expand All @@ -8,7 +9,7 @@ publishing {
publications {
mavenJava(MavenPublication) {
groupId = project.maven_group
artifactId = project.archivesBaseName
artifactId = base.archivesName
version = project.version

from components.java
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
4 changes: 2 additions & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ dependencyResolutionManagement {
// Libs
def quiltMappingsVersion = "5" // https://lambdaurora.dev/tools/import_quilt.html
def parchmentVersion = "2023.09.03" // https://parchmentmc.org/docs/getting-started
def shadowVersion = "7.1.2"
def shadowVersion = "8.3.0"
def spotlessVersion = "6.25.0"
def modDevGradleVersion = "2.0.61-beta-pr-118-legacy"
def vineFlowerVersion = "1.+"
Expand Down Expand Up @@ -151,7 +151,7 @@ dependencyResolutionManagement {
library("minecraft", "com.mojang", "minecraft").versionRef(minecraft)

def shadow = version("shadow", shadowVersion)
plugin("shadow", "com.github.johnrengelman.shadow").versionRef(shadow)
plugin("shadow", "com.gradleup.shadow").versionRef(shadow)

def spotless = version("spotless", spotlessVersion)
plugin("spotless", "com.diffplug.spotless").versionRef(spotless)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"variants": {
"": {
"model": "gtceu:block/oil_heavy"
"model": "gtceu:block/heavy_oil"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"variants": {
"": {
"model": "gtceu:block/oil_light"
"model": "gtceu:block/light_oil"
}
}
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "gtceu:block/raw_oil"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"gtceu:andesite_nickel_ore",
"gtceu:andesite_palladium_ore",
"gtceu:andesite_platinum_ore",
"gtceu:andesite_plutonium_ore",
"gtceu:andesite_plutonium_239_ore",
"gtceu:andesite_silver_ore",
"gtceu:andesite_sulfur_ore",
"gtceu:andesite_thorium_ore",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"gtceu:basalt_nickel_ore",
"gtceu:basalt_palladium_ore",
"gtceu:basalt_platinum_ore",
"gtceu:basalt_plutonium_ore",
"gtceu:basalt_plutonium_239_ore",
"gtceu:basalt_silver_ore",
"gtceu:basalt_sulfur_ore",
"gtceu:basalt_thorium_ore",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"gtceu:blackstone_nickel_ore",
"gtceu:blackstone_palladium_ore",
"gtceu:blackstone_platinum_ore",
"gtceu:blackstone_plutonium_ore",
"gtceu:blackstone_plutonium_239_ore",
"gtceu:blackstone_silver_ore",
"gtceu:blackstone_sulfur_ore",
"gtceu:blackstone_thorium_ore",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"gtceu:deepslate_nickel_ore",
"gtceu:deepslate_palladium_ore",
"gtceu:deepslate_platinum_ore",
"gtceu:deepslate_plutonium_ore",
"gtceu:deepslate_plutonium_239_ore",
"gtceu:deepslate_silver_ore",
"gtceu:deepslate_sulfur_ore",
"gtceu:deepslate_thorium_ore",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"gtceu:diorite_nickel_ore",
"gtceu:diorite_palladium_ore",
"gtceu:diorite_platinum_ore",
"gtceu:diorite_plutonium_ore",
"gtceu:diorite_plutonium_239_ore",
"gtceu:diorite_silver_ore",
"gtceu:diorite_sulfur_ore",
"gtceu:diorite_thorium_ore",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"gtceu:endstone_nickel_ore",
"gtceu:endstone_palladium_ore",
"gtceu:endstone_platinum_ore",
"gtceu:endstone_plutonium_ore",
"gtceu:endstone_plutonium_239_ore",
"gtceu:endstone_silver_ore",
"gtceu:endstone_sulfur_ore",
"gtceu:endstone_thorium_ore",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"gtceu:granite_nickel_ore",
"gtceu:granite_palladium_ore",
"gtceu:granite_platinum_ore",
"gtceu:granite_plutonium_ore",
"gtceu:granite_plutonium_239_ore",
"gtceu:granite_silver_ore",
"gtceu:granite_sulfur_ore",
"gtceu:granite_thorium_ore",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"gtceu:gravel_nickel_ore",
"gtceu:gravel_palladium_ore",
"gtceu:gravel_platinum_ore",
"gtceu:gravel_plutonium_ore",
"gtceu:gravel_plutonium_239_ore",
"gtceu:gravel_silver_ore",
"gtceu:gravel_sulfur_ore",
"gtceu:gravel_thorium_ore",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"gtceu:marble_nickel_ore",
"gtceu:marble_palladium_ore",
"gtceu:marble_platinum_ore",
"gtceu:marble_plutonium_ore",
"gtceu:marble_plutonium_239_ore",
"gtceu:marble_silver_ore",
"gtceu:marble_sulfur_ore",
"gtceu:marble_thorium_ore",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"gtceu:netherrack_nickel_ore",
"gtceu:netherrack_palladium_ore",
"gtceu:netherrack_platinum_ore",
"gtceu:netherrack_plutonium_ore",
"gtceu:netherrack_plutonium_239_ore",
"gtceu:netherrack_silver_ore",
"gtceu:netherrack_sulfur_ore",
"gtceu:netherrack_thorium_ore",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"gtceu:red_granite_nickel_ore",
"gtceu:red_granite_palladium_ore",
"gtceu:red_granite_platinum_ore",
"gtceu:red_granite_plutonium_ore",
"gtceu:red_granite_plutonium_239_ore",
"gtceu:red_granite_silver_ore",
"gtceu:red_granite_sulfur_ore",
"gtceu:red_granite_thorium_ore",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"gtceu:red_sand_nickel_ore",
"gtceu:red_sand_palladium_ore",
"gtceu:red_sand_platinum_ore",
"gtceu:red_sand_plutonium_ore",
"gtceu:red_sand_plutonium_239_ore",
"gtceu:red_sand_silver_ore",
"gtceu:red_sand_sulfur_ore",
"gtceu:red_sand_thorium_ore",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"gtceu:sand_nickel_ore",
"gtceu:sand_palladium_ore",
"gtceu:sand_platinum_ore",
"gtceu:sand_plutonium_ore",
"gtceu:sand_plutonium_239_ore",
"gtceu:sand_silver_ore",
"gtceu:sand_sulfur_ore",
"gtceu:sand_thorium_ore",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"gtceu:nickel_ore",
"gtceu:palladium_ore",
"gtceu:platinum_ore",
"gtceu:plutonium_ore",
"gtceu:plutonium_239_ore",
"gtceu:silver_ore",
"gtceu:sulfur_ore",
"gtceu:thorium_ore",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"gtceu:tuff_nickel_ore",
"gtceu:tuff_palladium_ore",
"gtceu:tuff_platinum_ore",
"gtceu:tuff_plutonium_ore",
"gtceu:tuff_plutonium_239_ore",
"gtceu:tuff_silver_ore",
"gtceu:tuff_sulfur_ore",
"gtceu:tuff_thorium_ore",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"page": "gtceu:materials/chainsaw_head",
"position": [
-250,
-300,
250
],
"section": "gtceu:materials"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"res": "gtceu:aluminium_frame"
},
"items": [
"#minecraft:climbable",
"#forge:frames"
"#forge:frames",
"#minecraft:climbable"
],
"page": "gtceu:materials/frame",
"position": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"page": "gtceu:materials/screwdriver_tip",
"position": [
-100,
-150,
100
],
"section": "gtceu:materials"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"page": "gtceu:materials/wire_cutter_head",
"position": [
-300,
-350,
200
],
"section": "gtceu:materials"
Expand Down
Loading