public class NPCServerPacket extends AbstractPixelmonPacket
Constructor and Description |
---|
NPCServerPacket() |
NPCServerPacket(int npcID)
Initializes a packet with a Trainer ID.
|
NPCServerPacket(int npcID,
java.util.ArrayList<java.lang.String> pages)
Initializes a packet to change a chatting NPC's dialogue.
|
NPCServerPacket(int npcID,
BattleAIMode battleAI)
Initializes a packet the change a Trainer's battle AI mode.
|
NPCServerPacket(int npcID,
BattleRules battleRules)
Initializes a packet to change a Trainer's battle type.
|
NPCServerPacket(int npcID,
BossTier bm)
Initializes a packet to change a Trainer's boss mode.
|
NPCServerPacket(int npcID,
ClientNPCData npcData)
Initializes a packet to change an NPC's texture.
|
NPCServerPacket(int npcID,
EnumEncounterMode bm)
Initializes a packet to change a Trainer's encounter mode.
|
NPCServerPacket(int npcID,
EnumMegaItemsUnlocked mi)
Initializes a packet to change a Trainer's mega item.
|
NPCServerPacket(int npcID,
EnumNPCServerPacketType mode)
Initializes a packet to change an NPC.
|
NPCServerPacket(int npcID,
EnumNPCServerPacketType mode,
int textureIndex)
Initializes a packet to change an NPC's texture.
|
NPCServerPacket(int npcID,
EnumNPCServerPacketType mode,
java.lang.String data)
Initializes a packet to send a string.
|
NPCServerPacket(int npcID,
EnumOldGenMode og)
Initializes a packet to change a Trainer's old gen mode.
|
NPCServerPacket(int npcID,
EnumTrainerAI ai)
Initializes a packet to change a Trainer's AI.
|
NPCServerPacket(int npcID,
int modelIndex)
Initializes a packet to change the NPC's model.
|
NPCServerPacket(int npcID,
int engageDistance,
EnumNPCServerPacketType type)
Initializes a packet to change the NPC's engage distance
|
NPCServerPacket(int npcID,
PokemonSpecification offer,
PokemonSpecification exchange,
java.lang.String description)
Initializes a packet to change a trader's transaction.
|
NPCServerPacket(int npcID,
Species pokemon,
int pos)
Initializes a packet to add a Pokémon to the Trainer's party.
|
Modifier and Type | Method and Description |
---|---|
void |
decode(net.minecraft.network.PacketBuffer buffer)
Decodes the information from the buffer to the packet instance
|
void |
encode(net.minecraft.network.PacketBuffer buffer)
Encodes the buffer with the packet information
|
protected void |
handlePacket(net.minecraftforge.fml.network.NetworkEvent.Context context) |
handle, reply
public NPCServerPacket()
public NPCServerPacket(int npcID)
npcID
- The ID of the Trainer being edited.public NPCServerPacket(int npcID, EnumTrainerAI ai)
npcID
- The ID of the Trainer to edit.ai
- The new AI to set the Trainer to.public NPCServerPacket(int npcID, BattleAIMode battleAI)
npcID
- The ID of the Trainer to edit.battleAI
- The new battle AI mode to set the Trainer to.public NPCServerPacket(int npcID, BossTier bm)
npcID
- The ID of the Trainer to edit.bm
- The new boss mode to set the Trainer to.public NPCServerPacket(int npcID, EnumEncounterMode bm)
npcID
- The ID of the Trainer to edit.bm
- The new encounter mode to set the Trainer to.public NPCServerPacket(int npcID, EnumMegaItemsUnlocked mi)
npcID
- The ID of the Trainer to edit.mi
- The new mega item to set the Trainer to.public NPCServerPacket(int npcID, EnumOldGenMode og)
npcID
- The ID of the Trainer to edit.og
- The new old gen mode to set the Trainer to.public NPCServerPacket(int npcID, BattleRules battleRules)
npcID
- The ID of the Trainer to edit.battleRules
- The new battle rules.public NPCServerPacket(int npcID, int modelIndex)
npcID
- The ID of the NPC to edit.modelIndex
- The index of the model to set the NPC to.public NPCServerPacket(int npcID, EnumNPCServerPacketType mode, java.lang.String data)
npcID
- The ID of the NPC to edit.mode
- The type of packet.data
- The string data to send.public NPCServerPacket(int npcID, Species pokemon, int pos)
npcID
- The ID of the Trainer to edit.pokemon
- The Pokémon to add.pos
- The party position of the new Pokémon.public NPCServerPacket(int npcID, EnumNPCServerPacketType mode, int textureIndex)
npcID
- The ID of the NPC to edit.mode
- The type of packet.textureIndex
- The index of the new texture to set the NPC to.public NPCServerPacket(int npcID, EnumNPCServerPacketType mode)
npcID
- The ID of the NPC to edit.mode
- The type of packet.public NPCServerPacket(int npcID, ClientNPCData npcData)
npcID
- The ID of the NPC to edit.npcData
- Data for the texture to change the NPC to.public NPCServerPacket(int npcID, java.util.ArrayList<java.lang.String> pages)
npcID
- The ID of the chatting NPC to edit.pages
- The new dialogue of the chatting NPC.public NPCServerPacket(int npcID, PokemonSpecification offer, PokemonSpecification exchange, java.lang.String description)
npcID
- The ID of the trader to edit.offer
- The Pokémon offered by the trader.exchange
- The Pokémon requested by the trader.public NPCServerPacket(int npcID, int engageDistance, EnumNPCServerPacketType type)
npcID
- The ID of the NPC to edit.engageDistance
- The new engage distancetype
- The type of the packetpublic void encode(net.minecraft.network.PacketBuffer buffer)
PixelmonPacket
encode
in interface PixelmonPacket
encode
in class AbstractPixelmonPacket
buffer
- The buffer being encodedpublic void decode(net.minecraft.network.PacketBuffer buffer)
PixelmonPacket
decode
in interface PixelmonPacket
decode
in class AbstractPixelmonPacket
buffer
- The buffer being decodedprotected void handlePacket(net.minecraftforge.fml.network.NetworkEvent.Context context)
handlePacket
in class AbstractPixelmonPacket