public class BattleRulesPlayerScreen extends BattleRulesBaseScreen
battleTypeButton, centerX, centerY, clauseListHeight, editButtons, editingEnabled, fullHealButton, importExportButton, raiseToCapButton, rectBottom, ruleLabels, rules, selectedClauses, teamPreviewButton, textFields, tierMenu, yChangedropDownManager, 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, setRulesaddDropDown, drawGuiContainerForegroundLayer, mouseClicked, mouseDragged, removeDropDownaddButton, 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, wrapScreenErrorgetFocused, isDragging, setDragging, setFocusedblit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPokemon, setPokemonpublic 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 BattleRulesBaseScreenpublic void changeState(EnumRulesGuiState state)
state - The new state of the GUI.public void tick()
tick in interface net.minecraft.client.gui.screen.IScreentick in class net.minecraft.client.gui.screen.Screenpublic void render(com.mojang.blaze3d.matrix.MatrixStack matrix,
int mouseX,
int mouseY,
float partialTicks)
render in interface net.minecraft.client.gui.IRenderablerender in class DropDownScreenprotected void drawGuiContainerBackgroundLayer(com.mojang.blaze3d.matrix.MatrixStack matrix,
float partialTicks,
int mouseX,
int mouseY)
drawGuiContainerBackgroundLayer in class DropDownScreenprotected int getBackgroundHeight()
BattleRulesBaseScreengetBackgroundHeight in class BattleRulesBaseScreenpublic void renderDirtBackground(int vOffset)
renderDirtBackground in class net.minecraft.client.gui.screen.Screenpublic boolean keyPressed(int keyCode,
int scanCode,
int modifiers)
keyPressed in interface net.minecraft.client.gui.IGuiEventListenerkeyPressed in interface net.minecraft.client.gui.INestedGuiEventHandlerkeyPressed in class net.minecraft.client.gui.screen.Screenpublic boolean mouseScrolled(double mouseX,
double mouseY,
double delta)
mouseScrolled in interface net.minecraft.client.gui.IGuiEventListenermouseScrolled in interface net.minecraft.client.gui.INestedGuiEventHandlermouseScrolled in class DropDownScreenpublic boolean mouseClickedUnderMenus(double x,
double y,
int mouseButton)
DropDownScreenmouseClickedUnderMenus in class BattleRulesBaseScreenx - 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 BattleRulesBaseScreenpublic void removed()
removed in class BattleRulesBaseScreenpublic boolean isPauseScreen()
isPauseScreen in class DropDownScreen