public class CardRenderingHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
MAX_TEXT_WIDTH |
static int |
TEXTURE_HEIGHT |
static int |
TEXTURE_WIDTH |
Constructor and Description |
---|
CardRenderingHelper() |
Modifier and Type | Method and Description |
---|---|
static int[] |
calculateAttackDescriptionLines(PokemonAttackStatus[] attacks,
boolean hasAbility,
int maxWidth) |
static int |
calculateTrainerDescriptionLines(ImmutableCard effect,
int maxWidth) |
static void |
drawCard(com.mojang.blaze3d.matrix.MatrixStack matrix,
CommonCardState card,
int w,
int h,
float z,
float alpha,
double rot,
PlayerClientMyState me,
PlayerClientOpponentState opp) |
static void |
drawCardBack(com.mojang.blaze3d.matrix.MatrixStack matrix,
int w,
int h,
float z,
CardBack cb) |
static void |
drawCardBack(com.mojang.blaze3d.matrix.MatrixStack matrix,
int w,
int h,
float z,
PlayerCommonState me) |
static net.minecraft.util.ResourceLocation |
getAbilityTexture(CardPower cardAbility) |
static int |
getBackgroundColor(Energy e) |
static net.minecraft.util.ResourceLocation |
getBackgroundTexture(CardType cardType,
Energy energy,
boolean isSpecial) |
static net.minecraft.util.ResourceLocation |
getCosmeticBackgroundTexture(CommonCardState c) |
static int |
getForegroundColor(Energy e) |
public static final int TEXTURE_WIDTH
public static final int TEXTURE_HEIGHT
public static final int MAX_TEXT_WIDTH
public static void drawCardBack(com.mojang.blaze3d.matrix.MatrixStack matrix, int w, int h, float z, PlayerCommonState me)
public static void drawCardBack(com.mojang.blaze3d.matrix.MatrixStack matrix, int w, int h, float z, CardBack cb)
public static void drawCard(com.mojang.blaze3d.matrix.MatrixStack matrix, CommonCardState card, int w, int h, float z, float alpha, double rot, PlayerClientMyState me, PlayerClientOpponentState opp)
public static int getBackgroundColor(Energy e)
public static int getForegroundColor(Energy e)
public static net.minecraft.util.ResourceLocation getCosmeticBackgroundTexture(CommonCardState c)
public static net.minecraft.util.ResourceLocation getBackgroundTexture(CardType cardType, Energy energy, boolean isSpecial)
public static net.minecraft.util.ResourceLocation getAbilityTexture(CardPower cardAbility)
public static int[] calculateAttackDescriptionLines(PokemonAttackStatus[] attacks, boolean hasAbility, int maxWidth)
public static int calculateTrainerDescriptionLines(ImmutableCard effect, int maxWidth)