| Package | Description |
|---|---|
| com.github.steveice10.mc.protocol | |
| com.github.steveice10.mc.protocol.codec | |
| com.github.steveice10.packetlib.codec | |
| com.github.steveice10.packetlib.packet |
| Modifier and Type | Method and Description |
|---|---|
PacketDefinition<?,?> |
MinecraftProtocol.getClientboundDefinition(int id) |
PacketDefinition<?,?> |
MinecraftProtocol.getServerboundDefinition(int id) |
| Modifier and Type | Method and Description |
|---|---|
T |
MinecraftPacketSerializer.deserialize(io.netty.buffer.ByteBuf buf,
MinecraftCodecHelper helper,
PacketDefinition<T,MinecraftCodecHelper> definition) |
| Modifier and Type | Method and Description |
|---|---|
T |
PacketSerializer.deserialize(io.netty.buffer.ByteBuf buf,
H helper,
PacketDefinition<T,H> definition) |
| Modifier and Type | Method and Description |
|---|---|
PacketDefinition<?,?> |
PacketProtocol.getClientboundDefinition(int id)
Gets the clientbound packet definition for the given packet id.
|
PacketDefinition<?,?> |
PacketProtocol.getServerboundDefinition(int id)
Gets the serverbound packet definition for the given packet id.
|
| Modifier and Type | Method and Description |
|---|---|
BufferedPacket |
BufferedPacket.deserialize(io.netty.buffer.ByteBuf buf,
PacketCodecHelper helper,
PacketDefinition<BufferedPacket,PacketCodecHelper> definition) |
void |
PacketProtocol.register(PacketDefinition<? extends Packet,?> definition)
Registers a packet to this protocol as both serverbound and clientbound.
|
void |
PacketProtocol.registerClientbound(PacketDefinition<? extends Packet,?> definition)
Registers a clientbound packet to this protocol.
|
void |
PacketProtocol.registerServerbound(PacketDefinition<? extends Packet,?> definition)
Registers a serverbound packet to this protocol.
|
Copyright © 2023. All rights reserved.