Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-09-07 00:22:51 +02:00
[ci skip] Clarify how to compile the project
Dieser Commit ist enthalten in:
Ursprung
ceacd7b669
Commit
57451f6818
24
COMPILING.md
24
COMPILING.md
@ -4,36 +4,50 @@ Compiling
|
|||||||
You can compile FastAsyncWorldEdit as long as you have some version of Java greater than or equal to 8 installed. Gradle will download JDK 8 specifically if needed,
|
You can compile FastAsyncWorldEdit as long as you have some version of Java greater than or equal to 8 installed. Gradle will download JDK 8 specifically if needed,
|
||||||
but it needs some version of Java to bootstrap from.
|
but it needs some version of Java to bootstrap from.
|
||||||
|
|
||||||
The build process uses Gradle, which you do *not* need to download. FastAsyncWorldEdit is a multi-module project with two active modules:
|
Note that if you have JRE 8 installed, Gradle will currently attempt to use that to compile, which will not work. It is easiest to uninstall JRE 8 and replace it with JDK 8.
|
||||||
|
|
||||||
|
You can get the JDK 8 [here](https://adoptopenjdk.net/?variant=openjdk8&jvmVariant=hotspot).
|
||||||
|
|
||||||
|
The build process uses Gradle, which you do *not* need to download. FastAsyncWorldEdit is a multi-module project with three active modules:
|
||||||
|
|
||||||
* `worldedit-core` contains the FastAsyncWorldEdit API
|
* `worldedit-core` contains the FastAsyncWorldEdit API
|
||||||
* `worldedit-bukkit` is the Bukkit plugin
|
* `worldedit-bukkit` is the Bukkit plugin
|
||||||
|
* `worldedit-cli` is the command line interface
|
||||||
|
|
||||||
## To compile...
|
## To compile...
|
||||||
|
|
||||||
|
### NMS
|
||||||
|
FastAsyncWorldEdit uses NMS (net.minecraft.server) code in a variety of spots. NMS is not distributed via maven and therefore FastAsyncWorldEdit may not build without errors if you didn't install it into your local repository beforehand.
|
||||||
|
You can do that by either running Spigot's [BuildTools](https://www.spigotmc.org/wiki/buildtools/) targetting the versions needed or using Paper's paperclip with `java -Dpaperclip.install=true -jar paperclip.jar`.
|
||||||
|
|
||||||
### On Windows
|
### On Windows
|
||||||
|
|
||||||
1. Shift + right click the folder with FastAsyncWorldEdit's files and click "Open command prompt".
|
1. Shift + right click the folder with FastAsyncWorldEdit's files and click "Open command prompt".
|
||||||
2. `gradlew build`
|
2. `gradlew build -x test`
|
||||||
|
|
||||||
### On Linux, BSD, or Mac OS X
|
### On Linux, BSD, or Mac OS X
|
||||||
|
|
||||||
1. In your terminal, navigate to the folder with FastAsyncWorldEdit's files (`cd /folder/of/fawe/files`)
|
1. In your terminal, navigate to the folder with FastAsyncWorldEdit's files (`cd /folder/of/fawe/files`)
|
||||||
2. `./gradlew build`
|
2. `./gradlew build -x test`
|
||||||
|
|
||||||
## Then you will find...
|
## Then you will find...
|
||||||
|
|
||||||
You will find:
|
You will find:
|
||||||
|
|
||||||
* The core FastAsyncWorldEdit API in **worldedit-core/build/libs**
|
* The core FastAsyncWorldEdit API in **worldedit-core/build/libs**
|
||||||
* FastAsyncWorldEdit for Bukkit in **worldedit-bukkit/build/libs***
|
* FastAsyncWorldEdit for Bukkit in **worldedit-bukkit/build/libs**
|
||||||
|
* the CLI version in **worldedit-cli/build/libs**
|
||||||
|
|
||||||
If you want to use FastAsyncWorldEdit, use the `FastAsyncWorldEdit-1.16-#` version.
|
If you want to use FastAsyncWorldEdit, use the `FastAsyncWorldEdit-1.16-<commitHash>` version obtained in **worldedit-bukkit/build/libs**.
|
||||||
|
|
||||||
|
(The `-#` version includes FastAsyncWorldEdit + necessary libraries.)
|
||||||
|
|
||||||
## Other commands
|
## Other commands
|
||||||
|
|
||||||
* `gradlew idea` will generate an [IntelliJ IDEA](http://www.jetbrains.com/idea/) module for each folder.
|
* `gradlew idea` will generate an [IntelliJ IDEA](http://www.jetbrains.com/idea/) module for each folder.
|
||||||
|
|
||||||
|
* `gradlew build -x test` skips JUnit tests for compiling.
|
||||||
|
|
||||||
_Possibly broken_:
|
_Possibly broken_:
|
||||||
* `gradlew eclipse` will generate an [Eclipse](https://www.eclipse.org/downloads/) project for each folder.
|
* `gradlew eclipse` will generate an [Eclipse](https://www.eclipse.org/downloads/) project for each folder.
|
||||||
|
|
||||||
|
@ -31,6 +31,11 @@ ask that you make note of the following guidelines.
|
|||||||
complicated algorithms.
|
complicated algorithms.
|
||||||
|
|
||||||
|
|
||||||
|
Additional Notes
|
||||||
|
----------------
|
||||||
|
If you're submitting a feature, base your code on `main` and PR against the
|
||||||
|
`main` branch.
|
||||||
|
|
||||||
Checklist
|
Checklist
|
||||||
---------
|
---------
|
||||||
|
|
||||||
|
55
README.md
55
README.md
@ -1,10 +1,10 @@
|
|||||||
<p align="center">
|
<p align="center">
|
||||||
<img src="fawe-logo.png" width="300">
|
<img src="fawe-logo.png" width="150">
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
FAWE is a fork of WorldEdit that has huge speed and memory improvements and considerably more features
|
FastAsyncWorldEdit is a fork of WorldEdit that has huge speed and memory improvements and considerably more features
|
||||||
|
|
||||||
**A Minecraft Map Editor... that runs in-game!**
|
**A Minecraft Map Editor... that runs in-game!**
|
||||||
|
|
||||||
@ -12,61 +12,30 @@ FAWE is a fork of WorldEdit that has huge speed and memory improvements and cons
|
|||||||
* Use it in creative, survival in single player or on your server.
|
* Use it in creative, survival in single player or on your server.
|
||||||
* Use it on your Minecraft server to fix grieving and mistakes.
|
* Use it on your Minecraft server to fix grieving and mistakes.
|
||||||
|
|
||||||
Java Edition required. WorldEdit is compatible with Forge, Fabric, Bukkit, Spigot, Paper, and Sponge.
|
Java Edition required. FastAsyncWorldEdit is compatible with Bukkit, Spigot, Paper, and Tuinity.
|
||||||
|
|
||||||
## Download FastAsyncWorldEdit
|
## Download FastAsyncWorldEdit
|
||||||
### 1.15+
|
* Spigot: https://www.spigotmc.org/resources/fast-async-worldedit.13932/
|
||||||
* [Download](https://www.spigotmc.org/resources/fast-async-worldedit.13932/)
|
* Older, unsupported, versions: https://intellectualsites.github.io/download/fawe.html
|
||||||
* [Jenkins](https://ci.athion.net/job/FastAsyncWorldEdit-1.16/)
|
|
||||||
|
|
||||||
Looking builds for older versions? Download them [here](https://intellectualsites.github.io/download/).
|
|
||||||
|
|
||||||
## Links
|
## Links
|
||||||
|
|
||||||
* [Spigot Page](https://www.spigotmc.org/threads/fast-async-worldedit.100104/)
|
|
||||||
* [Discord](https://discord.gg/intellectualsites)
|
* [Discord](https://discord.gg/intellectualsites)
|
||||||
* [Wiki](https://wiki.intellectualsites.com/FastAsyncWorldEdit/index)
|
* [Wiki](https://wiki.intellectualsites.com/FastAsyncWorldEdit/index)
|
||||||
* [Report Issue](https://github.com/IntellectualSites/FastAsyncWorldEdit/issues)
|
* [Report Issue](https://github.com/IntellectualSites/FastAsyncWorldEdit/issues)
|
||||||
* [Crowdin](https://intellectualsites.crowdin.com/fastasyncworldedit)
|
* [Crowdin (Translations)](https://intellectualsites.crowdin.com/fastasyncworldedit)
|
||||||
* [JavaDocs](https://ci.athion.net/job/FastAsyncWorldEdit-1.16/javadoc/)
|
* [JavaDocs](https://ci.athion.net/job/FastAsyncWorldEdit-1.16/javadoc/)
|
||||||
|
|
||||||
Edit the Code
|
## Edit The Code
|
||||||
---------
|
|
||||||
|
|
||||||
Want to add new features to WorldEdit or fix bugs yourself? You can get the game running, with WorldEdit, from the code here, without any additional outside steps, by doing the following *four* things:
|
Want to add new features to FastAsyncWorldEdit or fix bugs yourself? You can get the game running, with FastAsyncWorldEdit, from the code here:
|
||||||
|
|
||||||
1. Download WorldEdit's source code and put it somewhere. We recommend you use something called Git if you already know how to use it, but [you can also just download a .zip file](https://github.com/EngineHub/WorldEdit/archive/master.zip). (If you plan on contributing the changes, you will need to figure out Git.)
|
For additional information about compiling FastAsyncWorldEdit, see [COMPILING.md](COMPILING.md).
|
||||||
2. Install any version of Java greater than or equal to 8.
|
|
||||||
* Note that if you do _not_ install JDK 8 exactly, Gradle will download it for you on first run. However, it is still required to have some form of Java installed for Gradle to start at all.
|
|
||||||
3. Open terminal / command prompt / bash and navigate to the directory where you put the source code.
|
|
||||||
4. Run **one** of these following commands:
|
|
||||||
* Mac OS X / Linux: `./gradlew :worldedit-fabric:runClient`
|
|
||||||
* Windows - Command Prompt: `gradlew :worldedit-fabric:runClient`
|
|
||||||
* Windows - PowerShell: `.\gradlew :worldedit-fabric:runClient`
|
|
||||||
|
|
||||||
🎉 That's it. 🎉 It takes a long time to actually transform WorldEdit into a mod. If it succeeds, **the Minecraft game will open and you can create a single player world with WorldEdit**.
|
## Submitting Your Changes
|
||||||
|
FastAsyncWorldEdit is open source (specifically licensed under GPL v3), so note that your contributions will also be open source. The best way to submit a change is to create a fork on GitHub, put your changes there, and then create a "pull request" on our FastAsyncWorldEdit repository.
|
||||||
|
|
||||||
---
|
Please read [CONTRIBUTING.md](CONTRIBUTING.md) for important guidelines to follow.
|
||||||
|
|
||||||
For additional information about compiling WorldEdit, see [COMPILING.md](COMPILING.md).
|
|
||||||
FAWE is a fork of WorldEdit that has huge speed and memory improvements and considerably more features
|
|
||||||
|
|
||||||
## Building
|
|
||||||
FAWE uses gradle to build
|
|
||||||
You can safely ignore `gradlew setupDecompWorkspace` if you are not planning to work on the forge side of FAWE.
|
|
||||||
|
|
||||||
```
|
|
||||||
$ gradlew setupDecompWorkspace
|
|
||||||
$ gradlew build
|
|
||||||
```
|
|
||||||
|
|
||||||
The jar is located in `worldedit-bukkit/build/libs/FastAsyncWorldEdit-1.16-###.jar`
|
|
||||||
|
|
||||||
## Contributing
|
|
||||||
Have an idea for an optimization, or a cool feature?
|
|
||||||
- We will accept most PR's
|
|
||||||
- Let us know what you've tested / what may need further testing
|
|
||||||
- If you need any help, create a ticket or discuss on [Discord](https://discord.gg/intellectualsites)
|
|
||||||
|
|
||||||
## YourKit
|
## YourKit
|
||||||
<a href="https://www.yourkit.com">
|
<a href="https://www.yourkit.com">
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren