9
0
mirror of https://github.com/LeavesMC/Leaves.git synced 2025-12-29 11:59:17 +00:00
MC_XiaoHei d857a89689 feat: refactor fakeplayer api(#593) (#594)
* feat: refactor fakeplayer api(#593)

* fix: fix custom bot action api, refactor

* Revert "fix: fix custom bot action api, refactor"

This reverts commit afefaec186.

* fix: fix custom bot action api, refactor

* fix: fix custom bot action api, refactor

* fix: fix null in actions reg

* refactor: refactor

* Revert "refactor: refactor"

This reverts commit 266026cdee.

* Revert "fix: fix null in actions reg"

This reverts commit 980862ba2e.

* fix: refactor, fix null issue

* fix: invert isAssignableFrom

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix: fix CraftRotationAction suggestions

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* wip: refactor again

* feat: refactor again

* fix: fix api error

* feat: convert sneak action to state action

* Some change, Zzzzz

* Wait, what?

* Some format

* Merge use_auto

* Revert stupid auto clean-up

* Revert stupid auto clean-up

* chore: add javadoc

* Stupid me

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: violetc <58360096+s-yh-china@users.noreply.github.com>
Co-authored-by: Lumine1909 <133463833+Lumine1909@users.noreply.github.com>
2025-07-13 22:31:53 +08:00
2025-07-04 17:55:19 -07:00
2021-10-30 19:42:38 +08:00
2025-02-14 23:55:46 +08:00
2025-07-04 17:29:23 -07:00
2021-10-30 19:42:38 +08:00
2025-06-05 18:41:51 +08:00
2021-10-30 19:42:38 +08:00
2025-02-14 23:55:46 +08:00
2025-07-04 17:37:38 -07:00
2025-07-02 20:40:33 -07:00
2025-07-04 17:29:23 -07:00
2025-06-05 18:41:51 +08:00
2025-06-05 18:41:51 +08:00
2025-06-05 18:41:51 +08:00
2025-07-02 20:40:33 -07:00

Leaves

Leaves CI Leaves Download Discord QQ

English | 中文

Fork of Paper aims at repairing broken vanilla properties.

You can see what we modify and fix at here

How To (Server Admins)

Leaves use the same leavesclip(paperclip fork) jar system that Paper uses.

You can download the latest build (1.21.x) of Leaves by going here

You can also build it yourself.

You can visit our documentation for more information.

How To (Plugin developers)

Leaves-API:

maven {
    name = "leavesmc-repo"
    url = "https://repo.leavesmc.org/snapshots/"
}

dependencies {
    compileOnly("org.leavesmc.leaves:leaves-api:1.21.5-R0.1-SNAPSHOT")
}

In order to use Leaves as a dependency you must build it yourself. Each time you want to update your dependency, you must re-build Leaves.

Leaves-Server:

dependencies {
    compileOnly("org.leavesmc.leaves:leaves:1.21.5-R0.1-SNAPSHOT")
}

Building

You need JDK 21 and good Internet conditions

Clone this repo, run ./gradlew applyAllPatches, then run ./gradlew createMojmapLeavesclipJar in your terminal.

You can find the jars in the leaves-server/build/libs directory.

Pull Requests

See Contributing

Special Thanks To:

JetBrains, creators of the IntelliJ IDEA, supports Leaves with one of their Open Source Licenses. Leaves recommend using IntelliJ IDEA as your IDE.

Languages
Java 99.7%
Shell 0.3%