PayloadLib
0.0.3-SNAPSHOTEasier approach for Paper servers to send & handle custom payloads, highly optimized and powerful.
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.
Similar projects
Plugin →VeinMiner
Mine the whole vein on mining a single ore/block. Make the tedious mining experience to something satisfying and fun! FTB Ultimine alternative
99.3MSueta
Simple Voice Chat
A working voice chat in Minecraft!
76.8MSueta
Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
Chunky
Pre-generates chunks, quickly and efficiently
18.4MSueta
VeinMiner Enchantment
Veinminer Addon - Adds vineminer enchantment to enchanting tables. Only tools with the enchantment can veinmine
18MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta