Class TCGScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
com.pixelmonmod.tcg.client.gui.base.TCGScreenBase
com.pixelmonmod.tcg.client.gui.base.TCGScreenChattableBase
com.pixelmonmod.tcg.client.gui.duel.TCGScreen
- All Implemented Interfaces:
net.minecraft.client.gui.components.events.ContainerEventHandler
,net.minecraft.client.gui.components.events.GuiEventListener
,net.minecraft.client.gui.components.Renderable
,net.minecraft.client.gui.components.TabOrderedElement
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.Screen.NarratableSearchResult
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final String
static final String
double
static final int
static final int
float
float
float
Fields inherited from class com.pixelmonmod.tcg.client.gui.base.TCGScreenChattableBase
chatOpen, inputField
Fields inherited from class com.pixelmonmod.tcg.client.gui.base.TCGScreenBase
debug, textFieldList, visible
Fields inherited from class net.minecraft.client.gui.screens.Screen
BACKGROUND_LOCATION, children, font, height, minecraft, renderables, screenExecutor, title, width
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
ConstructorDescriptionTCGScreen
(BattleOwnedTileEntityController controller, int playerIndex, boolean isSpectating) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
actionPerformed
(net.minecraft.client.gui.components.Button button) void
init()
boolean
boolean
mouseClicked
(double mouseX, double mouseY, int mouseButton) boolean
mouseReleased
(double mouseX, double mouseY, int state) void
onClose()
void
render
(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks) void
resize
(net.minecraft.client.Minecraft p_231152_1_, int p_231152_2_, int p_231152_3_) void
tick()
Methods inherited from class com.pixelmonmod.tcg.client.gui.base.TCGScreenChattableBase
calculateChatboxHeight, calculateChatboxWidth, charTyped, chatClosed, chatOpened, completePlayerName, getChatHeight, getChatScale, getChatWidth, getLineCount, getSentHistory, keyPressed, renderTransparentBackground, sendMessage
Methods inherited from class com.pixelmonmod.tcg.client.gui.base.TCGScreenBase
drawEffectTooltip, drawHoveringText, drawRectWithBorder, drawRectWithBorder, getScaledHeight, getScaledWidth, isLeftMousePressed, isRightMousePressed, renderBackground
Methods inherited from class net.minecraft.client.gui.screens.Screen
added, addEventWidget, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearFocus, clearWidgets, confirmLink, createArrowEvent, createTabEvent, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrationEnabled, onFilesDrop, openLink, rebuildWidgets, removed, removeWidget, renderDirtBackground, renderWithTooltip, repositionElements, runNarration, scheduleNarration, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, shouldRunNarration, suppressNarration, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenError
Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocused
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
getChildAt, getCurrentFocusPath, isFocused, keyReleased, magicalSpecialHackyFocus, mouseDragged, mouseScrolled, nextFocusPath, setFocused
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
GUI_PEEK_ID
- See Also:
-
GUI_OPTIONAL_ID
- See Also:
-
INSPECTING_CARD_Z_LEVEL
public static final int INSPECTING_CARD_Z_LEVEL- See Also:
-
INSPECTING_CARD_TOOLTIP_Z_LEVEL
public static final int INSPECTING_CARD_TOOLTIP_Z_LEVEL- See Also:
-
ABOVE_INSPECTING_CARD_Z_LEVEL
public static final int ABOVE_INSPECTING_CARD_Z_LEVEL- See Also:
-
controller
-
guiScaling
public double guiScaling -
scaledWidth
public float scaledWidth -
scaledHeight
public float scaledHeight -
scaledFactor
public float scaledFactor
-
-
Constructor Details
-
TCGScreen
-
-
Method Details
-
getInspectingCard
-
init
public void init()- Overrides:
init
in classTCGScreenChattableBase
-
onClose
public void onClose()- Overrides:
onClose
in classTCGScreenChattableBase
-
tick
public void tick()- Overrides:
tick
in classTCGScreenChattableBase
-
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int mouseButton) - Specified by:
mouseClicked
in interfacenet.minecraft.client.gui.components.events.ContainerEventHandler
- Specified by:
mouseClicked
in interfacenet.minecraft.client.gui.components.events.GuiEventListener
- Overrides:
mouseClicked
in classTCGScreenChattableBase
-
mouseReleased
public boolean mouseReleased(double mouseX, double mouseY, int state) - Specified by:
mouseReleased
in interfacenet.minecraft.client.gui.components.events.ContainerEventHandler
- Specified by:
mouseReleased
in interfacenet.minecraft.client.gui.components.events.GuiEventListener
- Overrides:
mouseReleased
in classTCGScreenBase
-
render
public void render(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks) - Specified by:
render
in interfacenet.minecraft.client.gui.components.Renderable
- Overrides:
render
in classTCGScreenChattableBase
-
actionPerformed
protected void actionPerformed(net.minecraft.client.gui.components.Button button) -
isPauseScreen
public boolean isPauseScreen()- Overrides:
isPauseScreen
in classnet.minecraft.client.gui.screens.Screen
-
resize
public void resize(net.minecraft.client.Minecraft p_231152_1_, int p_231152_2_, int p_231152_3_) - Overrides:
resize
in classnet.minecraft.client.gui.screens.Screen
-