Class CardRenderingHelper

java.lang.Object
com.pixelmonmod.tcg.client.helper.CardRenderingHelper

public class CardRenderingHelper extends Object
  • Field Details

  • 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

      public static int getBackgroundColor(Energy e)
    • getForegroundColor

      public static int getForegroundColor(Energy e)
    • getCosmeticBackgroundTexture

      public static net.minecraft.resources.ResourceLocation getCosmeticBackgroundTexture(CommonCardState c)
    • getBackgroundTexture

      public static net.minecraft.resources.ResourceLocation getBackgroundTexture(CardType cardType, Energy energy, boolean isSpecial)
    • getAbilityTexture

      public static net.minecraft.resources.ResourceLocation getAbilityTexture(CardPower cardAbility)
    • calculateAttackDescriptionLines

      public static int[] calculateAttackDescriptionLines(PokemonAttackStatus[] attacks, boolean hasAbility, int maxWidth)
    • calculateTrainerDescriptionLines

      public static int calculateTrainerDescriptionLines(ImmutableCard effect, int maxWidth)