-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1.20.5 & Velocity b379+ support (#149)
* Initial 1.20.5-rc1 support * Small cleanup * Unsigned command packet support * Generate mappings for 1.20.5-rc3 instead of 1.20.5-rc1 * Remove 1.20.5 mappings generation workaround Former-commit-id: dd04cee
- Loading branch information
1 parent
6595f42
commit c589cbe
Showing
39 changed files
with
933 additions
and
35 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -18,7 +18,7 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
distribution: adopt | ||
java-version: 17 | ||
java-version: 21 | ||
- name: Build LimboAPI | ||
run: ./gradlew build | ||
- name: Upload LimboAPI | ||
|
This file contains 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 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 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
17 changes: 17 additions & 0 deletions
17
api/src/main/java/net/elytrium/limboapi/api/protocol/item/ItemComponent.java
This file contains 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,17 @@ | ||
/* | ||
* Copyright (C) 2021 - 2024 Elytrium | ||
* | ||
* The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT License. For more details, | ||
* reference the LICENSE file in the api top-level directory. | ||
*/ | ||
|
||
package net.elytrium.limboapi.api.protocol.item; | ||
|
||
public interface ItemComponent<T> { | ||
|
||
String getName(); | ||
|
||
ItemComponent<T> setValue(T value); | ||
|
||
T getValue(); | ||
} |
26 changes: 26 additions & 0 deletions
26
api/src/main/java/net/elytrium/limboapi/api/protocol/item/ItemComponentMap.java
This file contains 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,26 @@ | ||
/* | ||
* Copyright (C) 2021 - 2024 Elytrium | ||
* | ||
* The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT License. For more details, | ||
* reference the LICENSE file in the api top-level directory. | ||
*/ | ||
|
||
package net.elytrium.limboapi.api.protocol.item; | ||
|
||
import com.velocitypowered.api.network.ProtocolVersion; | ||
import java.util.List; | ||
|
||
public interface ItemComponentMap { | ||
|
||
<T> ItemComponentMap add(ProtocolVersion version, String name, T value); | ||
|
||
ItemComponentMap remove(ProtocolVersion version, String name); | ||
|
||
List<ItemComponent> getAdded(); | ||
|
||
List<ItemComponent> getRemoved(); | ||
|
||
void read(ProtocolVersion version, Object buffer); | ||
|
||
void write(ProtocolVersion version, Object buffer); | ||
} |
This file contains 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 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 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 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 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 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 @@ | ||
{} |
This file contains 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 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 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.