Package com.pixelmonmod.tcg.api.card
Class ImmutableCard
java.lang.Object
com.pixelmonmod.tcg.api.card.ImmutableCard
-
Field Summary
-
Constructor Summary
ConstructorDescriptionImmutableCard
(String json, int id, int setId, CardType cardType, boolean isSpecial, int hp, Energy energy1, Energy energy2, int pokemonId, String code, String name, String description, int previousPokemonId, CardPower cardAbility, List<CardAttack> cardAttacks, Energy energyResistance, int resistanceValue, CardModifier resistanceCardModifier, Energy energyWeakness, int weaknessValue, CardModifier weaknessCardModifier, int retreatCost, CardRarity cardRarity, net.minecraft.resources.ResourceLocation customTexture, int customTextureX, int customTextureY, BaseTrainerEffect effect) -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableCard
faceDown()
getCode()
net.minecraft.resources.ResourceLocation
boolean
int
getHP()
int
getID()
int
int
net.minecraft.world.item.ItemStack
getItemStack
(int count) getJson()
getName()
int
int
int
int
int
getSetID()
net.minecraft.network.chat.Component
int
boolean
boolean
boolean
boolean
isHolo()
boolean
boolean
void
write
(net.minecraft.nbt.CompoundTag tag)
-
Field Details
-
FACE_DOWN_ID
Deprecated. -
FACE_DOWN_CODE
-
CARD_ID_NBT_KEY
Deprecated. -
CARD_CODE_NBT_KEY
-
IS_HOLO_NBT_KEY
-
-
Constructor Details
-
ImmutableCard
public ImmutableCard(String json, int id, int setId, CardType cardType, boolean isSpecial, int hp, Energy energy1, Energy energy2, int pokemonId, String code, String name, String description, int previousPokemonId, CardPower cardAbility, List<CardAttack> cardAttacks, Energy energyResistance, int resistanceValue, CardModifier resistanceCardModifier, Energy energyWeakness, int weaknessValue, CardModifier weaknessCardModifier, int retreatCost, CardRarity cardRarity, net.minecraft.resources.ResourceLocation customTexture, int customTextureX, int customTextureY, BaseTrainerEffect effect)
-
-
Method Details
-
faceDown
-
getRegistryValue
-
getJson
-
isHolo
public boolean isHolo() -
getID
public int getID() -
isFaceDown
public boolean isFaceDown() -
getSetID
public int getSetID() -
getCode
-
getHP
public int getHP() -
getCardType
-
isSpecial
public boolean isSpecial() -
getEffect
-
isPokemonCard
public boolean isPokemonCard() -
isEvolution
public boolean isEvolution() -
isCosmetic
public boolean isCosmetic() -
getMainEnergy
-
getSecondaryEnergy
-
getPokemonID
public int getPokemonID() -
getName
-
getTranslatedName
public net.minecraft.network.chat.Component getTranslatedName() -
getDescription
-
getPreviousEvolutionDexID
public int getPreviousEvolutionDexID() -
getAbility
-
getAttacks
-
getEnergyResistance
-
getResistanceValue
public int getResistanceValue() -
getResistanceModifier
-
getEnergyWeakness
-
getWeaknessValue
public int getWeaknessValue() -
getWeaknessModifier
-
getRetreatCost
public int getRetreatCost() -
getRarity
-
getHasCustomTex
public boolean getHasCustomTex() -
getCustomTexture
public net.minecraft.resources.ResourceLocation getCustomTexture() -
getImageXFromCard
public int getImageXFromCard() -
getImageYFromCard
public int getImageYFromCard() -
getItemStack
public net.minecraft.world.item.ItemStack getItemStack(int count) -
write
public void write(net.minecraft.nbt.CompoundTag tag)
-