Package net.minecraftforge.network
Interface ICustomPacket<T extends Packet<?>>
- All Known Implementing Classes:
ClientboundCustomPayloadPacket
,ClientboundCustomQueryPacket
,ServerboundCustomPayloadPacket
,ServerboundCustomQueryAnswerPacket
public interface ICustomPacket<T extends Packet<?>>
-
Method Summary
Modifier and TypeMethodDescriptiondefault NetworkDirection
int
getIndex()
@Nullable FriendlyByteBuf
Returns a unsafe reference to this packet's internal data.getName()
default T
getThis()
-
Method Details
-
getInternalData
Returns a unsafe reference to this packet's internal data. Any modifications to this buffer will be reflected in the main buffer. -
getName
ResourceLocation getName() -
getIndex
int getIndex() -
getDirection
-
getThis
-