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 NetworkDirectionintgetIndex()@Nullable FriendlyByteBufReturns a unsafe reference to this packet's internal data.getName()default TgetThis()
-
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
-