Class CardRenderingHelper
java.lang.Object
com.pixelmonmod.tcg.client.helper.CardRenderingHelper
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int[]
calculateAttackDescriptionLines
(PokemonAttackStatus[] attacks, boolean hasAbility, int maxWidth) static int
calculateTrainerDescriptionLines
(ImmutableCard effect, int maxWidth) static void
drawCard
(net.minecraft.client.gui.GuiGraphics graphics, CommonCardState card, int w, int h, float z, float alpha, double rot, PlayerClientMyState me, PlayerClientOpponentState opp) static void
drawCardBack
(net.minecraft.client.gui.GuiGraphics graphics, int w, int h, float z, CardBack cb) static void
drawCardBack
(net.minecraft.client.gui.GuiGraphics graphics, int w, int h, float z, PlayerCommonState me) static net.minecraft.resources.ResourceLocation
getAbilityTexture
(CardPower cardAbility) static int
static net.minecraft.resources.ResourceLocation
getBackgroundTexture
(CardType cardType, Energy energy, boolean isSpecial) static net.minecraft.resources.ResourceLocation
static int
-
Field Details
-
TEXTURE_WIDTH
public static final int TEXTURE_WIDTH- See Also:
-
TEXTURE_HEIGHT
public static final int TEXTURE_HEIGHT- See Also:
-
MAX_TEXT_WIDTH
public static final int MAX_TEXT_WIDTH- See Also:
-
-
Constructor Details
-
CardRenderingHelper
public CardRenderingHelper()
-
-
Method Details
-
drawCardBack
public static void drawCardBack(net.minecraft.client.gui.GuiGraphics graphics, int w, int h, float z, PlayerCommonState me) -
drawCardBack
public static void drawCardBack(net.minecraft.client.gui.GuiGraphics graphics, int w, int h, float z, CardBack cb) -
drawCard
public static void drawCard(net.minecraft.client.gui.GuiGraphics graphics, CommonCardState card, int w, int h, float z, float alpha, double rot, PlayerClientMyState me, PlayerClientOpponentState opp) -
getBackgroundColor
-
getForegroundColor
-
getCosmeticBackgroundTexture
public static net.minecraft.resources.ResourceLocation getCosmeticBackgroundTexture(CommonCardState c) -
getBackgroundTexture
-
getAbilityTexture
-
calculateAttackDescriptionLines
public static int[] calculateAttackDescriptionLines(PokemonAttackStatus[] attacks, boolean hasAbility, int maxWidth) -
calculateTrainerDescriptionLines
-