public class DuelLogAttackParameters extends DuelLogParameters
| Constructor and Description |
|---|
DuelLogAttackParameters(CardAttack cardAttack,
PokemonCardState attacker,
PokemonCardState attacking,
int damage,
java.util.List<org.apache.commons.lang3.tuple.Pair<CardCondition,java.lang.Integer>> conditions) |
DuelLogAttackParameters(net.minecraft.network.PacketBuffer buf)
This recover only parts of the PokemonCardState information
|
| Modifier and Type | Method and Description |
|---|---|
CardAttack |
getAttack() |
PokemonCardState |
getAttacker() |
PokemonCardState |
getAttacking() |
java.util.List<org.apache.commons.lang3.tuple.Pair<CardCondition,java.lang.Integer>> |
getConditions() |
int |
getDamage() |
void |
write(net.minecraft.network.PacketBuffer buf,
GamePhase gamePhase,
int itemPlayerIndex,
int receiverIndex,
boolean isMyTurn)
Write parameters into the buffer
|
public DuelLogAttackParameters(CardAttack cardAttack, PokemonCardState attacker, PokemonCardState attacking, int damage, java.util.List<org.apache.commons.lang3.tuple.Pair<CardCondition,java.lang.Integer>> conditions)
public DuelLogAttackParameters(net.minecraft.network.PacketBuffer buf)
buf - public void write(net.minecraft.network.PacketBuffer buf,
GamePhase gamePhase,
int itemPlayerIndex,
int receiverIndex,
boolean isMyTurn)
DuelLogParameterswrite in class DuelLogParametersbuf - Byte buffergamePhase - Current game phaseitemPlayerIndex - The player index of the itemreceiverIndex - The player index of the receiverisMyTurn - Is receiver's turnpublic CardAttack getAttack()
public PokemonCardState getAttacker()
public PokemonCardState getAttacking()
public int getDamage()
public java.util.List<org.apache.commons.lang3.tuple.Pair<CardCondition,java.lang.Integer>> getConditions()