public class DuelLogCardParameters extends DuelLogParameters
Constructor and Description |
---|
DuelLogCardParameters(CommonCardState card) |
DuelLogCardParameters(net.minecraft.network.PacketBuffer buf)
This recover only parts of the CommonCardState information
|
Modifier and Type | Method and Description |
---|---|
CommonCardState |
getCard() |
void |
write(net.minecraft.network.PacketBuffer buf,
GamePhase gamePhase,
int itemPlayerIndex,
int receiverIndex,
boolean isMyTurn)
Write parameters into the buffer
|
public DuelLogCardParameters(CommonCardState card)
public DuelLogCardParameters(net.minecraft.network.PacketBuffer buf)
buf
- public void write(net.minecraft.network.PacketBuffer buf, GamePhase gamePhase, int itemPlayerIndex, int receiverIndex, boolean isMyTurn)
DuelLogParameters
write
in class DuelLogParameters
buf
- Byte buffergamePhase
- Current game phaseitemPlayerIndex
- The player index of the itemreceiverIndex
- The player index of the receiverisMyTurn
- Is receiver's turnpublic CommonCardState getCard()