PayloadLib
Easier approach for Paper servers to send & handle custom payloads, highly optimized and powerful.
Please refer to our GitHub Repository for more information.
Importing
To access the snapshot version of PayloadLib, please add this in your build.gradle:
repositories {
maven {
name = 'Central Portal Snapshots'
url = 'https://central.sonatype.com/repository/maven-snapshots/'
}
}
dependencies {
implementation 'top.nlrdev:payloadlib:0.0.2-SNAPSHOT'
// Optional dependency, providing ByteBuf
implementation 'io.netty:netty-buffer:4.2.14.Final'
}
Embedding this plugin within other plugin JARs is not recommended, as it can lead to various issues.
Supported Data Types
Primitive
| Primitive | Packaged | Array | Unsigned Implementation |
|---|---|---|---|
| boolean | Boolean | Unsupported | None |
| byte | Byte | byte[] | None |
| short | Short | Unsupported | top.nlrdev.payloadlib.types.UnsignedShort |
| char | Character | Unsupported | None |
| int | Integer | Unsupported | None |
| long | Long | Unsupported | None |
| float | Float | Unsupported | None |
| double | Double | Unsupported | None |
Non-Primitive
| Type | PayloadLib |
|---|---|
| String | Unchanged |
| UUID | Unchanged |
org.joml.Vector3f |
Unchanged |
org.joml.Quaternionf |
Unchanged |
| Minecraft (Official) | Minecraft (Yarn) | PayloadLib |
|---|---|---|
net.minecraft.resources.ResourceLocation |
net.minecraft.util.Identifier |
top.nlrdev.payloadlib.types.Identifier |
ByteBufCodecs#VAR_INT |
PacketCodecs#VAR_INT |
top.nlrdev.payloadlib.types.VarInt |
ByteBufCodecs#VAR_LONG |
PacketCodecs#VAR_LONG |
top.nlrdev.payloadlib.types.VarLong |
net.minecraft.world.phys.Vec3 |
net.minecraft.util.math.Vec3d |
org.joml.Vector3d |
net.minecraft.core.BlockPos |
net.minecraft.util.math.BlockPos |
top.nlrdev.payloadlib.types.BlockPos |
License
This mod is licensed under MIT License.
No gallery available for this project.
| Version | Minecraft | Loader | Download |
|---|---|---|---|
|
0.0.3-SNAPSHOT |
1.18.2, 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 26.1, 26.1.1, 26.1.2, 26.2
|
paper, purpur
|
Download |
|
0.0.2-SNAPSHOT+hotfix.1 |
1.18.2, 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 26.1, 26.1.1, 26.1.2
|
paper, purpur
|
Download |
|
0.0.2-SNAPSHOT |
1.18.2, 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 26.1, 26.1.1, 26.1.2
|
paper, purpur
|
Download |
|
0.0.1-SNAPSHOT |
1.20, 1.20.1, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.4, 1.21.5, 1.21.7
|
paper, purpur
|
Download |