Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Fix merge conflicts for world-god-class #195

Closed
wants to merge 76 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
d891443
Add access widener for SpawnRestriction.register (#135)
florensie Jul 19, 2020
3f504ca
ItemTooltipEvent (#108)
cittyinthecloud Jul 19, 2020
90ba4b0
Implement ForgeEventFactory.gatherCapabilities (#129)
kitlith Jul 19, 2020
a2c372e
Impl ModelBakeEvent, ModelRegistryEvent and some ModelLoader methods …
rikka0w0 Jul 21, 2020
56953c0
Dispatch from ForgeHooksClient to RenderEvents (#132)
kitlith Jul 21, 2020
7be7f5f
Dispatch to EntityEvents from ForgeHooks, etc. (#134)
kitlith Jul 21, 2020
0316d31
Change IForgeRegistryEntry.setRegistryName to return V, not IForgeReg…
cittyinthecloud Jul 21, 2020
657afda
Add LootTableLoadEvent, methods on LootPool/LootTable (#113)
kitlith Jul 21, 2020
494fd27
Don't crash when a mods Block has a BlockEntity but doesn't extend Bl…
cittyinthecloud Jul 23, 2020
14ecc17
Add BlockEvent.HarvestDropsEvent and its respective firing method, Wo…
GammaWhiskey Jul 24, 2020
c801a94
ForgeRegistryEntry<V extends IForgeRegistryEntry<V>>, not <V> (#141)
cittyinthecloud Jul 25, 2020
6180e4e
Improve documentation
GammaWhiskey Jul 25, 2020
0e22a5b
Use raw types to "hand erase" the generics (#151)
cittyinthecloud Jul 25, 2020
8530df3
Use Fabric's world load event. (#149)
kitlith Jul 26, 2020
a1cec72
Forge Tags (#153)
jearmstrong21 Jul 26, 2020
5ce6d98
Implement ChunkWatchEvent.UnWatch (#143)
kitlith Jul 26, 2020
7d7600f
Dispatch to InputEvents from patchwork-god-classes (#130)
kitlith Jul 26, 2020
491088c
Merge branch 'master' into master
GammaWhiskey Jul 26, 2020
2ffa876
Fix style
GammaWhiskey Jul 26, 2020
158e573
Merge pull request #150 from GammaWhiskey/master
florensie Jul 26, 2020
82ca90f
Fix FAPI not being fully updated, giving IDEA a heart attack
TheGlitch76 Jul 26, 2020
f9a1d2a
Implement DeferredRegister and RegistryObject (#140)
cittyinthecloud Jul 27, 2020
7376574
Implement AnimalTameEvent (#152)
cittyinthecloud Jul 27, 2020
f7fc388
Revert "Implement AnimalTameEvent (#152)"
TheGlitch76 Jul 28, 2020
35cf663
Impl PlayerChangedDimensionEvent, PlayerRespawnEvent and PlayerLogged…
rikka0w0 Jul 29, 2020
cc2cddd
Implement ItemFishedEvent (#147)
cittyinthecloud Jul 29, 2020
9d5cca0
AnimalTameEvent 2: Electric Boogaloo (#156)
cittyinthecloud Jul 29, 2020
5cb31ac
Add support for keybindings (#154)
Jul 30, 2020
f76e5db
Impl ServerTickEvent and RenderTickEvent (#158)
GammaWhiskey Jul 30, 2020
2d2cc76
Add classes and fields to ForgeHooks, which might be use by hacky mod…
rikka0w0 Jul 30, 2020
37e35c3
Create patchwork-api-base (#157)
TheGlitch76 Jul 30, 2020
e92de09
Clean up stacktrace for unimplemented class / method / field errors. …
cittyinthecloud Jul 30, 2020
c9f2cdf
Patchwork v0.8.0: BoP, ForgeHooks, basic BEs, start of models, and ma…
TheGlitch76 Jul 30, 2020
6702c75
Fix annotation scanning argument object types (#76)
qouteall Aug 2, 2020
1a4e892
Implement ProjectileImpactEvent (#168)
WalkerKnapp Aug 2, 2020
515c8ac
Fix Dedicated Server inject using CallbackInfo instead of CallbackInf…
GammaWhiskey Aug 2, 2020
3d5e35e
Refactor PatchworkKeyBinding (#170)
Aug 4, 2020
fc655ee
Move the Forge EventBus (and some other classes) to api-base (#164)
TheGlitch76 Aug 5, 2020
7f41577
Hotfix: Remove trailing commas
TheGlitch76 Aug 5, 2020
eef59b6
Hotfix: Make patchwork-networking-messages work on the server
TheGlitch76 Aug 5, 2020
31e2fca
`./gradlew licenseFormat` at the behest of Glitch
kitlith Aug 6, 2020
7d7f2b1
Impl removedByPlayer and canHarvestBlock in IForgeBlock (#126)
rikka0w0 Aug 7, 2020
3389d85
Revert "Impl removedByPlayer and canHarvestBlock in IForgeBlock (#126)"
TheGlitch76 Aug 7, 2020
5c633e6
Hotfix: Accessors must be interfaces
TheGlitch76 Aug 9, 2020
c92e748
Make CapabilityRegisteredCallback store class names not class objects…
cittyinthecloud Aug 11, 2020
4789f0a
IItemHandler support (#142)
cittyinthecloud Aug 11, 2020
e936b61
Hotfix: another memory leak involving ThreadLocal
TheGlitch76 Aug 11, 2020
8437561
Implement ClientPlayerNetworkEvent (#177)
WalkerKnapp Aug 14, 2020
72a45a3
Add ChunkEvent (#176)
rikka0w0 Aug 15, 2020
146f43b
Feature/block harvest (#174)
rikka0w0 Aug 16, 2020
a86a132
Bugfix/mod init (#173)
rikka0w0 Aug 16, 2020
494367d
Feature/extensions blockentity (#162)
rikka0w0 Aug 17, 2020
547331d
Add FakePlayer API (#178)
williambl Aug 18, 2020
d1ad8e1
Fix invalid mixins json for fake players module (#181)
williambl Aug 19, 2020
ea0ad1b
Feature/armor (#171)
rikka0w0 Aug 19, 2020
04cbc4c
Add forge energy (#180)
williambl Aug 20, 2020
b9a9155
Impl RenderPlayerEvent (#183)
rikka0w0 Aug 21, 2020
c2edb12
Add CODEOWNERS file.
TheGlitch76 Aug 22, 2020
dc6fe55
Add EntityItemPickupEvent and EntityTravelToDimensionEvent (#179)
williambl Aug 31, 2020
bb69d4e
Faster building, hopefully better actions workflow (#185)
TheGlitch76 Aug 31, 2020
f04a2d5
Patchwork v0.9.0
TheGlitch76 Aug 31, 2020
a27cc35
Patchwork v0.9.1
TheGlitch76 Aug 31, 2020
daef992
Add @williambl as codeowner for fake-players (#187)
williambl Sep 4, 2020
5ad67b2
Patchwork v0.9.2
TheGlitch76 Sep 5, 2020
5602298
Fix energy capability not being registered and mark `@CapabilityInjec…
williambl Sep 7, 2020
ccbaadd
Fix issue #188 and rectify some fabric.mod.json problems
rikka0w0 Sep 7, 2020
1c8fd2a
Implemented getHeight and setHeight on AbstractButtonWidget (#191)
bs2kbs2k Sep 25, 2020
94d0092
Publicized MinecraftClient#textureManager (#190)
YTG1234 Sep 26, 2020
c890fab
Remove "jars" in favor of loader 0.10.0 remapping
TheGlitch76 Sep 26, 2020
8abca85
Add automatic code style setting in IDEA
TheGlitch76 Oct 2, 2020
9ba44fa
Add more settings to Intellij code style
TheGlitch76 Oct 2, 2020
3c1af29
Merge remote-tracking branch 'origin/master' into world-god-class
JFronny Oct 6, 2020
542829b
Fix
JFronny Oct 6, 2020
539bdcc
Test, will be reverted later
JFronny Oct 6, 2020
8165cb0
Second attempt at fixing checkstyle
JFronny Oct 6, 2020
54a5126
Revert Test commit (539bdccc)
JFronny Oct 6, 2020
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
  •  
  •  
  •  
9 changes: 9 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Current Lead
* @theglitch76

# Maintainers of specific modules.
# Add the current lead to the end of each, because specific overrules general.
# Any org member is encouraged to add themselves to this file when creating a new module,
# but it's not required.
/patchwork-enum-hacks/ @NuclearFarts @theglitch76
/patchwork-fake-players/ @williambl @theglitch76
51 changes: 17 additions & 34 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,57 +8,40 @@ on:

jobs:
build:
strategy:
matrix:
java-version: [1.8, 11, 14]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 8
# https://github.com/actions/cache/blob/master/examples.md#java---gradle
- uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-build-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
java-version: ${{ matrix.java-version }}
- uses: eskatos/gradle-command-action@v1
with:
arguments: remapJar
gradle-version: wrapper
arguments: build -x check
dependencies-cache-enabled: true
configuration-cache-enabled: false
# Artifact publishing
- uses: actions/upload-artifact@v2
# In theory we could publish the j11 or even j14 jar, but let's not take any chances
if: ${{ matrix.java-version == 1.8 }}
with:
name: Jar Download
path: ./build/libs/patchwork-api-?.?.?.jar

checkstyle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 8
- uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-checkstyle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- uses: eskatos/gradle-command-action@v1
with:
arguments: checkstyleMain

license:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 8
- uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-license-${{ hashFiles('**/*.gradle*') }}-license
restore-keys: |
${{ runner.os }}-gradle-
java-version: 11
- uses: eskatos/gradle-command-action@v1
with:
arguments: checkLicenses
gradle-version: wrapper
arguments: licenseCheck checkstyleMain
dependencies-cache-enabled: true
configuration-cache-enabled: false
21 changes: 6 additions & 15 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,6 @@ env:
bintray_key: ${{ secrets.bintray_key }}

jobs:
# bintray:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v1
# - uses: actions/setup-java@v1
# with:
# java-version: 8
# - uses: eskatos/gradle-command-action@v1
# with:
# arguments: bintrayUpload
release:
runs-on: ubuntu-latest
steps:
Expand All @@ -27,12 +17,10 @@ jobs:
java-version: 8
- uses: eskatos/gradle-command-action@v1
with:
arguments: remapJar
- name: Delete -dev jar
run: rm ./build/libs/patchwork-api-*-dev.jar
- uses: ncipollo/[email protected]
arguments: build
- uses: ncipollo/release-action@v1
with:
artifacts: ./build/libs/patchwork-api-*.jar
artifacts: ./build/libs/patchwork-api-?.?.?.jar
token: ${{ secrets.GITHUB_TOKEN }}
bintray:
runs-on: ubuntu-latest
Expand All @@ -43,4 +31,7 @@ jobs:
java-version: 8
- uses: eskatos/gradle-command-action@v1
with:
gradle-version: wrapper
arguments: bintrayUpload
dependencies-cache-enabled: true
configuration-cache-enabled: false
126 changes: 73 additions & 53 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
id 'eclipse'
id 'idea'
id 'maven-publish'
id 'fabric-loom' version '0.4-SNAPSHOT' apply false
id 'fabric-loom' version '0.5-SNAPSHOT' apply false
id 'net.minecrell.licenser' version '0.4.1'
id "org.ajoberstar.grgit" version "3.1.1"
id 'com.jfrog.bintray' version '1.8.4'
Expand All @@ -12,10 +12,13 @@ plugins {
def ENV = System.getenv()

class Globals {
static def baseVersion = "0.7.0"
static def baseVersion = "0.9.1"
static def mcVersion = "1.14.4"
static def yarnVersion = "+build.16"
}
version = Globals.baseVersion //+ "+" + (ENV.BUILD_NUMBER ? ("build." + ENV.BUILD_NUMBER) : "local") + "-" + getBranch()

logger.lifecycle("Building Patchwork: " + version)

def getSubprojectVersion(project, version) {
if (grgit == null) {
Expand Down Expand Up @@ -46,17 +49,25 @@ allprojects {
apply plugin: 'maven-publish'
apply plugin: 'fabric-loom'
apply plugin: 'net.minecrell.licenser'

apply plugin: 'com.jfrog.bintray'
sourceCompatibility = 1.8
targetCompatibility = 1.8

group = "net.patchworkmc.patchwork-api"

loom {
shareCaches = true
}

repositories {
maven { url 'https://dl.bintray.com/patchworkmc/Patchwork-Maven/' }
}

dependencies {
minecraft "com.mojang:minecraft:$Globals.mcVersion"
mappings "net.fabricmc:yarn:${Globals.mcVersion}${Globals.yarnVersion}:v2"
modCompile "net.fabricmc:fabric-loader:0.8.4+build.198"
modCompile "net.fabricmc.fabric-api:fabric-api:0.4.2+build.246-1.14"
modImplementation "net.fabricmc:fabric-loader:0.10.0+build.208"
modImplementation "net.fabricmc.fabric-api:fabric-api:0.15.1+build.260-1.14"

implementation 'net.patchworkmc:patchwork-eventbus:2.0.1:all'
implementation 'com.google.code.findbugs:jsr305:3.0.2'
Expand All @@ -69,10 +80,6 @@ allprojects {
dev
}

repositories {
maven { url 'https://dl.bintray.com/patchworkmc/Patchwork-Maven/' }
}

jar {
classifier = "dev"
}
Expand Down Expand Up @@ -113,7 +120,7 @@ allprojects {

checkstyle {
configFile = rootProject.file("checkstyle.xml")
toolVersion = '8.25'
toolVersion = '8.36.2'
}
}

Expand All @@ -136,39 +143,50 @@ subprojects {

publishing {
publications {
mavenJava(MavenPublication) {
artifact(file("${project.buildDir}/libs/$archivesBaseName-${version}-maven.jar")) {
builtBy remapMavenJar
}
artifact(sourcesJar) {
builtBy remapSourcesJar
create("${archivesBaseName}_mavenJava", MavenPublication) {
afterEvaluate {
artifact(file("${project.buildDir}/libs/$archivesBaseName-${version}-maven.jar")) {
builtBy remapMavenJar
}
artifact(sourcesJar) {
builtBy remapSourcesJar
}
}
}
}
}

repositories {
maven {
url "http://mavenupload.modmuss50.me/"
if (project.hasProperty('mavenPass')) {
credentials {
username 'buildslave'
password project.getProperty('mavenPass')
}
}
bintray {
user = project.hasProperty('bintrayUser') ? project.getProperty('bintrayUser') : System.getenv('bintray_user')
key = project.hasProperty('bintrayKey') ? project.getProperty('bintrayKey') : System.getenv('bintray_key')
publish = true
override = true
publications = ["${archivesBaseName}_mavenJava"]
pkg {
repo = project.bintrayRepo
name = archivesBaseName
user = bintray.user
userOrg = project.repoOwner
licenses = [project.codeLicense]
desc = project.description
websiteUrl = "https://github.com/${project.repoOwner}/${project.repoName}"
issueTrackerUrl = "https://github.com/${project.repoOwner}/${project.repoName}/issues"
vcsUrl = "https://github.com/${project.repoOwner}/${project.repoName}.git"
publicDownloadNumbers = true

githubRepo = "${project.repoOwner}/${project.repoName}"
version {
name = project.version
released = new Date()
}
}
}

javadoc.enabled = false
}

task remapMavenJar(type: net.fabricmc.loom.task.RemapJarTask, dependsOn: jar) {
afterEvaluate {
input = file("${project.buildDir}/libs/${archivesBaseName}-${version}-dev.jar")
archiveName = "${archivesBaseName}-${version}-maven.jar"
addNestedDependencies = false
}
}
subprojects.each { bintrayUpload.dependsOn("${it.path}:bintrayUpload") }

bintray {
user = project.hasProperty('bintrayUser') ? project.getProperty('bintrayUser') : System.getenv('bintray_user')
key = project.hasProperty('bintrayKey') ? project.getProperty('bintrayKey') : System.getenv('bintray_key')
Expand All @@ -193,7 +211,18 @@ bintray {
released = new Date()
}
}

javadoc.enabled = false
}

task remapMavenJar(type: net.fabricmc.loom.task.RemapJarTask, dependsOn: jar) {
afterEvaluate {
input = file("${project.buildDir}/libs/${archivesBaseName}-${version}-dev.jar")
archiveName = "${archivesBaseName}-${version}-maven.jar"
addNestedDependencies = false
}
}

publishing {
publications {
mavenJava(MavenPublication) {
Expand All @@ -220,6 +249,7 @@ publishing {
task licenseFormatAll
subprojects {p -> licenseFormatAll.dependsOn("${p.path}:licenseFormat")}
subprojects.each {remapJar.dependsOn("${it.path}:remapJar")}

repositories {
flatDir {
dirs 'jars'
Expand All @@ -238,35 +268,25 @@ dependencies {

minecraft "com.mojang:minecraft:$Globals.mcVersion"
mappings "net.fabricmc:yarn:${Globals.mcVersion}${Globals.yarnVersion}:v2"
modCompile "net.fabricmc:fabric-loader:0.8.4+build.198"
modCompile "net.fabricmc.fabric-api:fabric-api:0.4.2+build.246-1.14"
modImplementation "net.fabricmc:fabric-loader:0.10.0+build.208"
modImplementation "net.fabricmc.fabric-api:fabric-api:0.15.1+build.260-1.14"

implementation 'com.electronwill.night-config:toml:3.6.2'
include 'com.electronwill.night-config:core:3.6.2'
include 'com.electronwill.night-config:toml:3.6.2'
include 'net.patchworkmc:patchwork-eventbus:2.0.0:all'
}

fileTree(dir: 'jars', include: '*.jar').each {
String baseName = it.name.replace(".jar", "")
String version = "0.1.0"
int split = baseName.lastIndexOf('-')

if (split != -1) {
version = baseName.substring(split + 1)
baseName = baseName.substring(0, split)
}

String name = "testmod:${baseName}:${version}"
loom {
shareCaches = true
}

System.out.println("Found test mod: " + it.name.replace(".jar", "") + " -> " + name)

modCompileOnly name
modRuntime name
task copyIdeaFiles(type: Copy) {
if (file(".idea/").exists()) {
from "idea-docs/"
into ".idea/"
}
}

version = Globals.baseVersion //+ "+" + (ENV.BUILD_NUMBER ? ("build." + ENV.BUILD_NUMBER) : "local") + "-" + getBranch()

logger.lifecycle("Building Patchwork: " + version)

apply from: 'https://github.com/FabricMC/fabric-docs/raw/master/gradle/ideconfig.gradle'
copyIdeaFiles
6 changes: 5 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
org.gradle.jvmargs=-Xmx2G
# Gradle needs a lot of memory to build in parallel.
# If you're starved, you can reduce this to 1G and disable parallel building.
org.gradle.jvmargs=-Xmx3G
org.gradle.parallel=true
org.gradle.daemon=false
repoName=patchwork-api
repoOwner=patchworkmc
bintrayRepo=Patchwork-Maven
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.6.1-all.zip
18 changes: 18 additions & 0 deletions idea-docs/checkstyle-idea.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CheckStyle-IDEA">
<option name="configuration">
<map>
<entry key="active-configuration" value="LOCAL_FILE:$PROJECT_DIR$/checkstyle.xml:patchwork-api" />
<entry key="checkstyle-version" value="8.36.2" />
<entry key="copy-libs" value="false" />
<entry key="location-0" value="BUNDLED:(bundled):Sun Checks" />
<entry key="location-1" value="BUNDLED:(bundled):Google Checks" />
<entry key="location-2" value="LOCAL_FILE:$PROJECT_DIR$/checkstyle.xml:patchwork-api" />
<entry key="scan-before-checkin" value="false" />
<entry key="scanscope" value="JavaOnly" />
<entry key="suppress-errors" value="true" />
</map>
</option>
</component>
</project>
Loading