Package com.pixelmonmod.tcg.network.data
Interface TCGPacket
- All Known Implementing Classes:
AbstractTCGPacket
,BattleSpectatorUpdatePacket
,CardBackSyncPacket
,CardSelectorToServerPacket
,CardSyncPacket
,CoinFlipAckPacket
,CoinSyncPacket
,CustomGUIChoiceToServerPacket
,EndGamePacket
,ForceEndBattlePacket
,GameStateSyncPacket
,GenericActionRequestPacket
,GenericGUIPacket
,OpenBinderPacket
,OpenPackGuiPacket
,OpenPackPacket
,PackSyncPacket
,PrizeSelectorToClientPacket
,PrizeSelectorToServerPacket
,RenderStatePreBattleSyncPacket
,RenderStateSyncPacket
,RetreatAndSwitchPacket
,RulebookUpdatePacket
,ShowOpponentCardPacket
,SwitchPacket
,SyncCardSetsPacket
,SyncCardsPacket
,SyncThemeDecksPacket
,TCGGuiClientPacket
,TrainerPlayedPacket
,UpdateServerCardRecordPacket
public interface TCGPacket
Interface that represents all packets going between the Pixelmon server instance and client
-
Method Summary
Modifier and TypeMethodDescriptionvoid
decode
(net.minecraft.network.FriendlyByteBuf buffer) Decodes the information from the buffer to the packet instancevoid
encode
(net.minecraft.network.FriendlyByteBuf buffer) Encodes the buffer with the packet informationvoid
handle
(net.minecraftforge.event.network.CustomPayloadEvent.Context context) Handles the packet being executed on the server or the client
-
Method Details
-
encode
void encode(net.minecraft.network.FriendlyByteBuf buffer) Encodes the buffer with the packet information- Parameters:
buffer
- The buffer being encoded
-
decode
void decode(net.minecraft.network.FriendlyByteBuf buffer) Decodes the information from the buffer to the packet instance- Parameters:
buffer
- The buffer being decoded
-
handle
void handle(net.minecraftforge.event.network.CustomPayloadEvent.Context context) Handles the packet being executed on the server or the client- Parameters:
context
- The network event context being supplied by Forge
-