Package net.minecraftforge.fml.network
Interface ICustomPacket<T extends IPacket<?>>
-
- All Known Implementing Classes:
CCustomPayloadLoginPacket
,CCustomPayloadPacket
,SCustomPayloadLoginPacket
,SCustomPayloadPlayPacket
public interface ICustomPacket<T extends IPacket<?>>
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ICustomPacket.Fields
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
getInternalData
default PacketBuffer getInternalData()
-
getName
default ResourceLocation getName()
-
getIndex
default int getIndex()
-
setData
default void setData(PacketBuffer buffer)
-
setName
default void setName(ResourceLocation channelName)
-
setIndex
default void setIndex(int index)
-
getDirection
default NetworkDirection getDirection()
-
getThis
default T getThis()
-
-