public class CardSelector extends TCGScreenBase
Modifier and Type | Field and Description |
---|---|
protected static net.minecraft.util.ResourceLocation |
DISCARD |
protected static net.minecraft.util.ResourceLocation |
SELECT |
textFieldList, visible
Constructor and Description |
---|
CardSelector(TCGScreen parent,
BattleOwnedTileEntityController controller) |
Modifier and Type | Method and Description |
---|---|
protected void |
actionPerformed(net.minecraft.client.gui.widget.button.Button button) |
boolean |
charTyped(char key,
int code) |
CardSelectorState |
getData() |
CardSelectorPurpose |
getPurpose() |
java.util.List<CommonCardState> |
getSelectedCards() |
void |
init() |
void |
initialize() |
boolean |
mouseClicked(double mouseX,
double mouseY,
int mouseButton) |
void |
render(com.mojang.blaze3d.matrix.MatrixStack matrix,
int mouseX,
int mouseY,
float partialTicks) |
void |
set(CardSelectorPurpose purpose,
CardSelectorState data) |
void |
tick() |
drawEffectTooltip, drawHoveringText, drawRectWithBorder, getScaledHeight, getScaledWidth, isLeftMousePressed, isRightMousePressed, keyPressed, mouseReleased, onClose
addButton, addWidget, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, onFilesDrop, removed, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderToolTip, renderWrappedToolTip, resize, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenError
getFocused, isDragging, setDragging, setFocused
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected static final net.minecraft.util.ResourceLocation DISCARD
protected static final net.minecraft.util.ResourceLocation SELECT
public CardSelector(TCGScreen parent, BattleOwnedTileEntityController controller)
public void init()
init
in class TCGScreenBase
public void tick()
tick
in interface net.minecraft.client.gui.screen.IScreen
tick
in class TCGScreenBase
public void render(com.mojang.blaze3d.matrix.MatrixStack matrix, int mouseX, int mouseY, float partialTicks)
render
in interface net.minecraft.client.gui.IRenderable
render
in class TCGScreenBase
protected void actionPerformed(net.minecraft.client.gui.widget.button.Button button)
public boolean charTyped(char key, int code)
charTyped
in interface net.minecraft.client.gui.IGuiEventListener
charTyped
in interface net.minecraft.client.gui.INestedGuiEventHandler
charTyped
in class TCGScreenBase
public boolean mouseClicked(double mouseX, double mouseY, int mouseButton)
mouseClicked
in interface net.minecraft.client.gui.IGuiEventListener
mouseClicked
in interface net.minecraft.client.gui.INestedGuiEventHandler
mouseClicked
in class TCGScreenBase
public void set(CardSelectorPurpose purpose, CardSelectorState data)
public CardSelectorState getData()
public CardSelectorPurpose getPurpose()
public void initialize()
public java.util.List<CommonCardState> getSelectedCards()