public class ShowTeamSelectPacket extends AbstractPixelmonPacket
| Modifier and Type | Field and Description |
|---|---|
boolean |
closeable |
java.lang.String[] |
disabled
Clause codes for Pokémon that cannot be selected for battle.
|
int |
npcID
The ID of the NPC that is being faced.
|
java.lang.String |
npcName
The localized name of the NPC that is being faced.
|
int |
opponentSize
The size of the opponent's team.
|
java.util.List<PokemonBase> |
opponentTeam
The opponent's team.
|
java.util.UUID |
opponentUUID |
protected BattleRules |
rules
The rules of the battle.
|
boolean |
showOpponentTeam |
int |
teamSelectID
The ID of the team selection manager for the team selection.
|
| Constructor and Description |
|---|
ShowTeamSelectPacket()
Empty constructor for packet registration.
|
ShowTeamSelectPacket(int teamSelectID,
java.lang.String[] disabled,
java.util.List<PokemonBase> opponentTeam,
int npcID,
java.lang.String npcName,
BattleRules rules,
boolean showRules,
boolean showOpponentTeam,
boolean closeable)
Initializes a team select packet.
|
ShowTeamSelectPacket(int teamSelectID,
java.lang.String[] disabled,
java.util.List<PokemonBase> opponentTeam,
java.util.UUID opponentUUID,
BattleRules rules,
boolean showRules,
boolean showOpponentTeam,
boolean closeable)
Initializes a team select packet.
|
| Modifier and Type | Method and Description |
|---|---|
void |
decode(net.minecraft.network.PacketBuffer buf)
Decodes the information from the buffer to the packet instance
|
void |
encode(net.minecraft.network.PacketBuffer buf)
Encodes the buffer with the packet information
|
void |
handlePacket(net.minecraftforge.fml.network.NetworkEvent.Context context) |
boolean |
isAllDisabled()
Checks if all Pokémon in the team cannot be used.
|
handle, replypublic int teamSelectID
public java.lang.String[] disabled
public java.util.List<PokemonBase> opponentTeam
public int opponentSize
public int npcID
public java.lang.String npcName
public java.util.UUID opponentUUID
public boolean showOpponentTeam
public boolean closeable
protected BattleRules rules
public ShowTeamSelectPacket()
public ShowTeamSelectPacket(int teamSelectID,
java.lang.String[] disabled,
java.util.List<PokemonBase> opponentTeam,
int npcID,
java.lang.String npcName,
BattleRules rules,
boolean showRules,
boolean showOpponentTeam,
boolean closeable)
teamSelectID - The ID of the team selection manager for the team selection.disabled - Clause codes for Pokémon that cannot be selected for battle.opponentTeam - The opponent's team.npcID - The ID of the NPC that is being faced.npcName - The localized name of the NPC that is being faced.rules - The rules of the battle.showRules - Whether to show the rules before displaying the team select screen.public ShowTeamSelectPacket(int teamSelectID,
java.lang.String[] disabled,
java.util.List<PokemonBase> opponentTeam,
java.util.UUID opponentUUID,
BattleRules rules,
boolean showRules,
boolean showOpponentTeam,
boolean closeable)
teamSelectID - The ID of the team selection manager for the team selection.disabled - Clause codes for Pokémon that cannot be selected for battle.opponentTeam - The opponent's team.opponentUUID - The UUID of the opponent player.rules - The rules of the battle.showRules - Whether to show the rules before displaying the team select screen.public boolean isAllDisabled()
public void encode(net.minecraft.network.PacketBuffer buf)
PixelmonPacketencode in interface PixelmonPacketencode in class AbstractPixelmonPacketbuf - The buffer being encodedpublic void decode(net.minecraft.network.PacketBuffer buf)
PixelmonPacketdecode in interface PixelmonPacketdecode in class AbstractPixelmonPacketbuf - The buffer being decodedpublic void handlePacket(net.minecraftforge.fml.network.NetworkEvent.Context context)
handlePacket in class AbstractPixelmonPacket