public interface ICustomPacket<T extends IPacket<?>>
Modifier and Type | Interface and Description |
---|---|
static class |
ICustomPacket.Fields |
Modifier and Type | Method and Description |
---|---|
default NetworkDirection |
getDirection() |
default int |
getIndex() |
default PacketBuffer |
getInternalData() |
default ResourceLocation |
getName() |
default T |
getThis() |
default void |
setData(PacketBuffer buffer) |
default void |
setIndex(int index) |
default void |
setName(ResourceLocation channelName) |
default PacketBuffer getInternalData()
default ResourceLocation getName()
default int getIndex()
default void setData(PacketBuffer buffer)
default void setName(ResourceLocation channelName)
default void setIndex(int index)
default NetworkDirection getDirection()
default T getThis()