public class BattleRulesPlayerScreen extends BattleRulesBaseScreen
battleTypeButton, centerX, centerY, clauseListHeight, editButtons, editingEnabled, fullHealButton, importExportButton, raiseToCapButton, rectBottom, ruleLabels, rules, selectedClauses, teamPreviewButton, textFields, tierMenu, yChange
dropDownManager, guiLeft, guiTop, xSize, ySize
Constructor and Description |
---|
BattleRulesPlayerScreen(int battleQueryID,
boolean isProposing)
Initializes a battle rules screen for player-vs.-player battles.
|
Modifier and Type | Method and Description |
---|---|
protected void |
actionPerformed(net.minecraft.client.gui.widget.button.Button button) |
void |
changeState(EnumRulesGuiState state)
Changes the state of the GUI.
|
protected void |
drawGuiContainerBackgroundLayer(com.mojang.blaze3d.matrix.MatrixStack matrix,
float partialTicks,
int mouseX,
int mouseY) |
protected int |
getBackgroundHeight()
Returns the height of the background rectangle.
|
void |
init() |
boolean |
isPauseScreen()
Returns true if this GUI should pause the game when it is displayed in single-player
|
boolean |
keyPressed(int keyCode,
int scanCode,
int modifiers) |
boolean |
mouseClickedUnderMenus(double x,
double y,
int mouseButton)
Handles mouse input when a drop-down menu is not clicked.
|
boolean |
mouseScrolled(double mouseX,
double mouseY,
double delta) |
void |
removed() |
void |
render(com.mojang.blaze3d.matrix.MatrixStack matrix,
int mouseX,
int mouseY,
float partialTicks) |
void |
renderDirtBackground(int vOffset) |
void |
tick() |
charTyped, dimScreen, disableMenus, drawBackgroundUnderMenus, getExportText, getScreen, highlightButtons, importText, registerRules, setRules
addDropDown, drawGuiContainerForegroundLayer, mouseClicked, mouseDragged, removeDropDown
addButton, addWidget, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, onClose, onFilesDrop, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, 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
getPokemon, setPokemon
public BattleRulesPlayerScreen(int battleQueryID, boolean isProposing)
battleQueryID
- The ID of the battle query that this GUI is representing.isProposing
- Whether the player is currently proposing a set of rules.public void init()
init
in class BattleRulesBaseScreen
public void changeState(EnumRulesGuiState state)
state
- The new state of the GUI.public void tick()
tick
in interface net.minecraft.client.gui.screen.IScreen
tick
in class net.minecraft.client.gui.screen.Screen
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 DropDownScreen
protected void drawGuiContainerBackgroundLayer(com.mojang.blaze3d.matrix.MatrixStack matrix, float partialTicks, int mouseX, int mouseY)
drawGuiContainerBackgroundLayer
in class DropDownScreen
protected int getBackgroundHeight()
BattleRulesBaseScreen
getBackgroundHeight
in class BattleRulesBaseScreen
public void renderDirtBackground(int vOffset)
renderDirtBackground
in class net.minecraft.client.gui.screen.Screen
public boolean keyPressed(int keyCode, int scanCode, int modifiers)
keyPressed
in interface net.minecraft.client.gui.IGuiEventListener
keyPressed
in interface net.minecraft.client.gui.INestedGuiEventHandler
keyPressed
in class net.minecraft.client.gui.screen.Screen
public boolean mouseScrolled(double mouseX, double mouseY, double delta)
mouseScrolled
in interface net.minecraft.client.gui.IGuiEventListener
mouseScrolled
in interface net.minecraft.client.gui.INestedGuiEventHandler
mouseScrolled
in class DropDownScreen
public boolean mouseClickedUnderMenus(double x, double y, int mouseButton)
DropDownScreen
mouseClickedUnderMenus
in class BattleRulesBaseScreen
x
- The x coordinate of the mouse.y
- The y coordinate of the mouse.mouseButton
- The index of the clicked button.protected void actionPerformed(net.minecraft.client.gui.widget.button.Button button)
actionPerformed
in class BattleRulesBaseScreen
public void removed()
removed
in class BattleRulesBaseScreen
public boolean isPauseScreen()
isPauseScreen
in class DropDownScreen