Class CommonCardState

java.lang.Object
com.pixelmonmod.tcg.duel.state.CommonCardState
Direct Known Subclasses:
PokemonCardState, TrainerCardState

public class CommonCardState extends Object
Created by Hy on 5/10/2016.
  • Field Details

    • parameters

      public List<CommonCardState> parameters
    • data

      protected ImmutableCard data
    • overwriteEnergy

      protected Energy overwriteEnergy
      This will regard all energy attachments as this overwriteEnergy
  • Constructor Details

    • CommonCardState

      public CommonCardState(ImmutableCard data)
    • CommonCardState

      public CommonCardState(net.minecraft.network.FriendlyByteBuf buf)
  • Method Details

    • transform

      public void transform(ImmutableCard data, PokemonCardStatus status)
    • write

      public void write(net.minecraft.network.FriendlyByteBuf buf, boolean faceUp)
    • write

      protected void write(net.minecraft.network.FriendlyByteBuf buf, boolean faceUp, boolean writeParams)
      Parameters:
      buf -
      faceUp -
      writeParams - This is to prevent circular reference when parameters contains this card
    • getData

      public ImmutableCard getData()
    • setData

      public void setData(ImmutableCard data)
    • getParameters

      public List<CommonCardState> getParameters()
    • isEnergyEquivalence

      public boolean isEnergyEquivalence()
    • isNullOrEmpty

      protected static boolean isNullOrEmpty(List list)
    • getSetID

      public int getSetID()
    • setSetID

      public void setSetID(int setId)
    • getCardType

      public CardType getCardType()
    • setCardType

      public void setCardType(CardType cardType)
    • getPokemonID

      public int getPokemonID()
    • setPokemonID

      public void setPokemonID(int pokemonId)
    • getHP

      public int getHP()
    • setHP

      public void setHP(int hp)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getCode

      public String getCode()
    • setCode

      public void setCode(String code)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • getAbility

      public CardPower getAbility()
    • getMainEnergy

      public Energy getMainEnergy()
    • getSecondaryEnergy

      public Energy getSecondaryEnergy()
    • hasTransformation

      public boolean hasTransformation()
    • getTransformation

      public ImmutableCard getTransformation()
    • setOverwriteEnergy

      public void setOverwriteEnergy(Energy overwriteEnergy)
    • getRarity

      public CardRarity getRarity()
    • setRarity

      public void setRarity(CardRarity cardRarity)
    • getOverrideModelColor

      public org.joml.Vector3f getOverrideModelColor()
    • setOverrideModelColor

      public void setOverrideModelColor(org.joml.Vector3f overrideModelColor)
    • handleEndTurn

      public 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
      Parameters:
      attachTo - Pokemon card that this card attach to
      player -
      server -
    • getPokemonSprite

      public net.minecraft.resources.ResourceLocation getPokemonSprite()