public class CommonCardState
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected ImmutableCard |
data |
protected Energy |
overwriteEnergy
This will regard all energy attachments as this overwriteEnergy
|
java.util.List<CommonCardState> |
parameters |
Constructor and Description |
---|
CommonCardState(ImmutableCard data) |
CommonCardState(net.minecraft.network.PacketBuffer buf) |
Modifier and Type | Method and Description |
---|---|
void |
bindPokemonSprite(net.minecraft.client.Minecraft mc) |
CardPower |
getAbility() |
CardType |
getCardType() |
java.lang.String |
getCode() |
ImmutableCard |
getData() |
java.lang.String |
getDescription() |
int |
getHP() |
Energy |
getMainEnergy() |
java.lang.String |
getName() |
net.minecraft.util.math.vector.Vector3f |
getOverrideModelColor() |
java.util.List<CommonCardState> |
getParameters() |
int |
getPokemonID() |
net.minecraft.util.ResourceLocation |
getPokemonSprite() |
CardRarity |
getRarity() |
Energy |
getSecondaryEnergy() |
int |
getSetID() |
ImmutableCard |
getTransformation() |
void |
handleEndTurn(PokemonCardState attachTo,
PlayerServerState player,
GameServerState server)
Clear all the parameters stored in the cards when the turns ends, unless the power effects state otherwise
|
boolean |
hasTransformation() |
boolean |
isEnergyEquivalence() |
protected static boolean |
isNullOrEmpty(java.util.List list) |
void |
setCardType(CardType cardType) |
void |
setCode(java.lang.String code) |
void |
setData(ImmutableCard data) |
void |
setDescription(java.lang.String description) |
void |
setHP(int hp) |
void |
setName(java.lang.String name) |
void |
setOverrideModelColor(net.minecraft.util.math.vector.Vector3f overrideModelColor) |
void |
setOverwriteEnergy(Energy overwriteEnergy) |
void |
setPokemonID(int pokemonId) |
void |
setRarity(CardRarity cardRarity) |
void |
setSetID(int setId) |
void |
transform(ImmutableCard data,
PokemonCardStatus status) |
void |
write(net.minecraft.network.PacketBuffer buf,
boolean faceUp) |
protected void |
write(net.minecraft.network.PacketBuffer buf,
boolean faceUp,
boolean writeParams) |
public java.util.List<CommonCardState> parameters
protected ImmutableCard data
protected Energy overwriteEnergy
public CommonCardState(ImmutableCard data)
public CommonCardState(net.minecraft.network.PacketBuffer buf)
public void transform(ImmutableCard data, PokemonCardStatus status)
public void write(net.minecraft.network.PacketBuffer buf, boolean faceUp)
protected void write(net.minecraft.network.PacketBuffer buf, boolean faceUp, boolean writeParams)
buf
- faceUp
- writeParams
- This is to prevent circular reference when parameters contains this cardpublic ImmutableCard getData()
public void setData(ImmutableCard data)
public java.util.List<CommonCardState> getParameters()
public boolean isEnergyEquivalence()
protected static boolean isNullOrEmpty(java.util.List list)
public int getSetID()
public void setSetID(int setId)
public CardType getCardType()
public void setCardType(CardType cardType)
public int getPokemonID()
public void setPokemonID(int pokemonId)
public int getHP()
public void setHP(int hp)
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getCode()
public void setCode(java.lang.String code)
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
public CardPower getAbility()
public Energy getMainEnergy()
public Energy getSecondaryEnergy()
public boolean hasTransformation()
public ImmutableCard getTransformation()
public void setOverwriteEnergy(Energy overwriteEnergy)
public CardRarity getRarity()
public void setRarity(CardRarity cardRarity)
public net.minecraft.util.math.vector.Vector3f getOverrideModelColor()
public void setOverrideModelColor(net.minecraft.util.math.vector.Vector3f overrideModelColor)
public void handleEndTurn(PokemonCardState attachTo, PlayerServerState player, GameServerState server)
attachTo
- Pokemon card that this card attach toplayer
- server
- public void bindPokemonSprite(net.minecraft.client.Minecraft mc)
public net.minecraft.util.ResourceLocation getPokemonSprite()