-
-
Notifications
You must be signed in to change notification settings - Fork 315
Update for 1.18 #1482
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
Merged
Merged
Update for 1.18 #1482
Changes from all commits
Commits
Show all changes
88 commits
Select commit
Hold shift + click to select a range
507b8d5
ci: Switch deployment to gh actions and use semver & java 17
NotMyFault 705f580
build: Update core dependencies
NotMyFault 7d5659a
ci: Snapshot builds are the default
NotMyFault 52293f5
ci: Cleanup and finish transition
NotMyFault 3a189f6
ci: Trigger initial sync with the OSSRH
NotMyFault 64f3932
revert: OSSRH snapshot deployment was successful, returning to baseline
NotMyFault 121bd58
ci: Register javadoc jar for lib artifacts
NotMyFault 22f52fc
ci: Sign artifacts
NotMyFault 0af0d84
build: Set kotlin jvm toolchain
NotMyFault 2a1bef2
Merge branch 'main' into major/2.0.0/1.18
NotMyFault 0b45248
style: Use minimized `version` output
NotMyFault 38130f7
feat: Setup project structure for 1.18
NotMyFault 930025a
Exclude 1.17
NotMyFault e296a32
Port initial paperweight classes to 1.18 folder structure
NotMyFault d3aaf7a
Move to Paper 1.18
NotMyFault 1f975ac
Update templates, address JEP deprecations and place a few TODOs
NotMyFault 6afde13
Drop Guava 21 enforcement
NotMyFault c697eb8
Merge branch 'main' into major/2.0.0/1.18
dordsor21 d6e3c33
Make 1.18 to be effectively in a usable state (#1452)
dordsor21 e9d97fc
Update version (checking) for semver
dordsor21 6350fe5
build: Fix release drafter base branch
NotMyFault 01ce0f9
Trigger GHPRB
NotMyFault d611001
tests: Add resource pack methods
NotMyFault 78aff4c
build: Update paperweight and add 1.17 again
NotMyFault 7453f12
chore: Lazily change build delimiter
NotMyFault c9dc1ed
Merge branch 'main' into major/2.0.0/1.18
NotMyFault aff3d8b
build: Deploy API snapshots for 2.0.0
NotMyFault 9ec829e
Update adapters jar
dordsor21 28f3bc6
More verbosely get block data and ensure biome layer isn't null
dordsor21 94b392d
refactor: Address a few `TODO 1.18`'s
NotMyFault a4cec49
fix: Fix `/fawe debugpaste`
NotMyFault 6b6c945
refactor! Remove deprecations marked for removal that are not present…
dordsor21 d98f626
Reverse a "debug" change to BukkitImplLoader
dordsor21 7780275
Fix parsing of build in FaweVersion
dordsor21 1715f35
refactor: Do prepared statements properly
NotMyFault 34f971c
Add classes with the correct minor version to the start of the adapte…
dordsor21 7da921e
refactor: Deprecate `IMP` initializors in favor of builders
NotMyFault ca5ad58
Fix WEManager (#1487)
Aurelien30000 28079e8
refactor: Also deprecated `IMP` for DBHandler
NotMyFault 3b24a8a
Merge branch 'main' into major/2.0.0/1.18
NotMyFault 0c8db1e
feat: Add a bunch of new types to the flora generator
NotMyFault 0180427
use spigot-compatible palette constructor
SirYwell 4ab140f
use spigot-compatible packet constructor
SirYwell a717df3
implement 1.18 regen
SirYwell 040a011
Merge branch 'main' into major/2.0.0/1.18
NotMyFault 0769578
return air instead of reserved on get blocks
SirYwell 596356a
refactor: Shift `FileAlreadyExistsException` catch to a higher level
NotMyFault f9ecb44
read the actual block from ZeroBitStorage
SirYwell f236934
Add get default version min/max world height to platform
dordsor21 f6319d3
Add methods to CLIPlatform
dordsor21 36857a5
Fix #1490
dordsor21 3ec1912
Fix tests
dordsor21 d193694
Don't force tick limiter enable/disable
dordsor21 c28a5ee
Merge branch 'main' into major/2.0.0/1.18
dordsor21 5d4a2a4
Use Math.floor instead of int cast 757bef1f7d2b16317ab3d18427ad221833…
Joo200 bca3a1b
More precise method names in MinecraftVersion
dordsor21 177d731
Add back statically-set reserved IDs for air blocks only, make it cle…
dordsor21 1a281ba
Remove mentions of NMS from compilation instruction
dordsor21 48e2953
Update log4j version, update jd links to use "latest"
dordsor21 f388592
Move to BinaryTags where appropriate in adapters
dordsor21 3c2394a
Add comments to changed code
dordsor21 0d79d08
Rename worldedit to fawe where appropriate
dordsor21 e2a1721
Use new language features
dordsor21 19de815
chore: Format our loggers properly
NotMyFault e5cbdec
Remove unneeded comments
dordsor21 ca5640e
Replace CachedChange class with record
dordsor21 3a31430
Remove/add some more comments
dordsor21 fd3619f
Merge branch 'major/2.0.0/1.18' of github.com:IntellectualSites/FastA…
dordsor21 867b28d
Remove remaining keywords frm CachedChanged. IJ doesn't warn?
dordsor21 8d565b9
Compress switch statements a bit using enhanced
dordsor21 f505828
More enhanced switches
dordsor21 9e8f0e7
Refactor: getVersionMin/MaxY -> versionMin/MaxY
dordsor21 52fa445
Throw, catch, and rethrow our own exception to make sure we're findin…
dordsor21 235d036
Don't wrap Exception thrown upon invalid schematic path inside a Runt…
dordsor21 122cba6
docs: Put `since` annotation on newly introduced API
NotMyFault aaad86c
docs: Drop clarified todos
NotMyFault 9faacb3
Warn user if using small-edit history setting with extended world hei…
dordsor21 f30ea96
Refactor: add javadoc to Clipboard#create and improve variables when …
dordsor21 0994ea1
Fix issue with offset/origin when pasting a clipboard via API without…
dordsor21 42d6466
build: Remove drop our maven repository
NotMyFault 7e96853
docs: Fix deprecation tag
NotMyFault 42dacfc
Fix incorrect toNative method in 1.17 adapter
dordsor21 b8399ab
refactor: Deprecate tick limiter API for public use
NotMyFault 30c2597
ci: dordsor does love rebasing here too
NotMyFault 631fd3c
docs: Document annotations
NotMyFault ef686af
Update upstream
NotMyFault f4658cc
docs: Document a few undocumented annotations
NotMyFault c27a34c
feat: Add worldedit.schematic.list.other permission and functionality…
Owen1212055 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,4 +1,4 @@ | ||
| daysUntilStale: 60 | ||
| daysUntilStale: 30 | ||
| daysUntilClose: 7 | ||
| only: issues | ||
| exemptLabels: | ||
|
|
||
This file contains hidden or 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,34 +1,47 @@ | ||
| name: "build" | ||
| name: build | ||
|
|
||
| on: ["pull_request", "push"] | ||
| on: [pull_request, push] | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: "ubuntu-latest" | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: "Checkout Repository" | ||
| uses: "actions/checkout@v2.3.4" | ||
| - name : "Validate Gradle Wrapper" | ||
| uses : "gradle/wrapper-validation-action@v1.0.4" | ||
| - name: "Grab SHA" | ||
| uses: "benjlevesque/short-sha@v1.2" | ||
| id: "short-sha" | ||
| - name: Checkout Repository | ||
| uses: actions/checkout@v2.4.0 | ||
| - name : Validate Gradle Wrapper | ||
| uses : gradle/wrapper-validation-action@v1.0.4 | ||
| - name: Setup Java | ||
| uses: actions/setup-java@v2.4.0 | ||
| with: | ||
| length: "7" | ||
| - name: "Echo SHA" | ||
| run: "echo $SHA" | ||
| distribution: temurin | ||
| cache: gradle | ||
| java-version: 17 | ||
| - name: Clean Build | ||
| run: ./gradlew clean build --no-daemon | ||
| - name: Determine release status | ||
| if: ${{ runner.os == 'Linux' }} | ||
| run: | | ||
| if [ "$(./gradlew properties | awk '/^version:/ { print $2; }' | grep '\-SNAPSHOT')" ]; then | ||
| echo "STATUS=snapshot" >> $GITHUB_ENV | ||
| else | ||
| echo "STATUS=release" >> $GITHUB_ENV | ||
| fi | ||
| - name: Publish Release | ||
| if: ${{ runner.os == 'Linux' && env.STATUS == 'release' && github.event_name == 'push' && github.ref == 'refs/heads/major/2.0.0/1.18'}} | ||
| run: ./gradlew publishToSonatype closeSonatypeStagingRepository | ||
| env: | ||
| SHA: "${{ steps.short-sha.outputs.sha }}" | ||
| - name: "Setup Java" | ||
| uses: "actions/setup-java@v2.3.1" | ||
| with: | ||
| distribution: "temurin" | ||
| cache: 'gradle' | ||
| java-version: "17" | ||
| - name: "Clean Build" | ||
| run: "./gradlew clean build --no-daemon" | ||
| ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME }} | ||
| ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }} | ||
| ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }} | ||
| ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }} | ||
| - name: Publish Snapshot | ||
| if: ${{ runner.os == 'Linux' && env.STATUS != 'release' && github.event_name == 'push' && github.ref == 'refs/heads/major/2.0.0/1.18' }} | ||
| run: ./gradlew publishToSonatype | ||
| env: | ||
| ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME }} | ||
| ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }} | ||
| - name: Archive Artifacts | ||
| uses: actions/upload-artifact@v2 | ||
| uses: actions/upload-artifact@v2.3.1 | ||
| with: | ||
| name: FastAsyncWorldEdit-Bukkit-1.17-${{ env.SHA }} | ||
| path: worldedit-bukkit/build/libs/FastAsyncWorldEdit-Bukkit-1.17-${{ env.SHA }}.jar | ||
| name: FastAsyncWorldEdit-Bukkit-SNAPSHOT | ||
| path: worldedit-bukkit/build/libs/FastAsyncWorldEdit-Bukkit-*.jar |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| name: Rebase Pull Request | ||
| on: | ||
| issue_comment: | ||
| types: [created] | ||
|
|
||
| jobs: | ||
| rebase: | ||
| name: Rebase | ||
| if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase') && github.event.comment.author_association == 'MEMBER' | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout Repository | ||
| uses: actions/checkout@v2.4.0 | ||
| with: | ||
| token: ${{ secrets.REBASE_TOKEN }} | ||
| fetch-depth: 0 | ||
| - name: Automatic Rebase | ||
| uses: cirrus-actions/rebase@1.5 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.REBASE_TOKEN }} |
This file contains hidden or 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,14 +1,14 @@ | ||
| name: "draft release" | ||
| name: draft release | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - "2.0.0" | ||
| - main | ||
|
|
||
| jobs: | ||
| update_release_draft: | ||
| runs-on: "ubuntu-latest" | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: "release-drafter/release-drafter@v5.15.0" | ||
| - uses: release-drafter/release-drafter@v5.15.0 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| :toc: | ||
| :toclevels: 2 | ||
|
|
||
| = Fawe annotations explained | ||
|
|
||
| If we have modified parts of the WorldEdit codebase, we considered annotating it with different styles of comments, which | ||
| are explained in this document. | ||
|
|
||
| == In-line annotations | ||
|
|
||
| [source,java] | ||
| ----------------- | ||
| public static Player adapt(com.sk89q.worldedit.entity.Player player) { | ||
| //FAWE start - Get player from PlayerProxy instead of BukkitPlayer if null | ||
| player = PlayerProxy.unwrap(player); | ||
| return player == null ? null : ((BukkitPlayer) player).getPlayer(); | ||
| //FAWE end | ||
| } | ||
| ----------------- | ||
| The `-sources` jar retains comments, if you add the FAWE API to your maven or gradle project, you can view differences between the projects with ease. | ||
| Behind the `//FAWE start - ` you can find a comment what has been changed and why it has been changed. | ||
|
|
||
| == Block annotations | ||
|
|
||
| [source,java] | ||
| ----------------- | ||
| //FAWE start | ||
| @Override | ||
| public void setPermission(String permission, boolean value) { | ||
| } | ||
| //FAWE end | ||
| ----------------- | ||
| Annotations can cover whole methods or go beyond the method and wrap around several added methods. | ||
|
|
||
| == Package annotations | ||
| Class additions are added under the `com.fastasyncworldedit` namespace, but sometimes classes need to be added in package private. | ||
| If that is done, you can find a `package-info.java` file within the package affected that outlines FAWE added classes: | ||
| [source,java] | ||
| ----------------- | ||
| /** | ||
| * The following classes are FAWE additions: | ||
| * | ||
| * @see com.sk89q.worldedit.world.block.BlockTypesCache | ||
| */ | ||
| package com.sk89q.worldedit.world.block; | ||
| ----------------- | ||
|
|
||
| == Undocumented annotations | ||
| Specific changes are not annotated: | ||
|
|
||
| * `com.fastasyncworldedit.core.configuration.Caption` in `com.sk89q.worldedit` packages have been changed from | ||
| `com.sk89q.worldedit.util.formatting.text.Text` to allow the usage of color codes for messages. | ||
|
|
||
| * Certain Log4J loggers have been adjusted to use the proper format of placeholders. |
This file contains hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.