| Package | Description |
|---|---|
| com.github.steveice10.packetlib.packet |
| Modifier and Type | Method and Description |
|---|---|
PacketFactory<T> |
PacketDefinition.getFactory()
Returns the
PacketFactory of the packet. |
| Modifier and Type | Method and Description |
|---|---|
<T extends Packet> |
PacketProtocol.register(int id,
Class<T> packet,
PacketFactory<T> factory)
Registers a packet to this protocol as both serverbound and clientbound.
|
<T extends Packet> |
PacketProtocol.registerClientbound(int id,
Class<T> packet,
PacketFactory<T> factory)
Registers a clientbound packet to this protocol.
|
<T extends Packet> |
PacketProtocol.registerServerbound(int id,
Class<T> packet,
PacketFactory<T> factory)
Registers a serverbound packet to this protocol.
|
| Constructor and Description |
|---|
PacketDefinition(int id,
Class<T> packetClass,
PacketFactory<T> factory) |
Copyright © 2021. All rights reserved.