Package com.petrolpark.core.team
Class SelectTeamScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.createmod.catnip.gui.AbstractSimiScreen
com.petrolpark.core.team.SelectTeamScreen
- 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
public class SelectTeamScreen
extends net.createmod.catnip.gui.AbstractSimiScreen
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal BindTeamPacket.Factoryprotected static final intprotected static final intprotected ITeamprotected static final intprotected static final intprotected static final intprotected static final intFields inherited from class net.createmod.catnip.gui.AbstractSimiScreen
BACKGROUND_COLOR, guiLeft, guiTop, windowHeight, windowWidth, windowXOffset, windowYOffsetFields inherited from class net.minecraft.client.gui.screens.Screen
CUBE_MAP, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, PANORAMA, renderables, screenExecutor, title, widthFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
ConstructorsConstructorDescriptionSelectTeamScreen(net.minecraft.network.chat.Component title, List<ITeam> selectableTeams, BindTeamPacket.Factory packetFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected intprotected voidinit()booleanmouseClicked(double mouseX, double mouseY, int button) booleanmouseDragged(double mouseX, double mouseY, int button, double dragX, double dragY) booleanmouseScrolled(double mouseX, double mouseY, double scrollX, double scrollY) voidonClose()protected voidrenderWindow(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks) voidMethods inherited from class net.createmod.catnip.gui.AbstractSimiScreen
addRenderableWidgets, addRenderableWidgets, debugWindowArea, endFrame, getFocused, getRenderables, isPauseScreen, keyPressed, prepareFrame, removeWidgets, removeWidgets, render, renderWindowBackground, renderWindowForeground, setWindowOffset, setWindowSize, tickMethods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearFocus, clearTooltipForNextRenderPass, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, onFilesDrop, rebuildWidgets, removed, removeWidget, renderBackground, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatus, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
isDragging, setDragging, setFocusedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseReleased, nextFocusPath, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMovedMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
packetFactory
-
selectableTeams
-
selectedTeam
-
SELECTION_AREA_X
protected static final int SELECTION_AREA_X- See Also:
-
SELECTION_AREA_Y
protected static final int SELECTION_AREA_Y- See Also:
-
SELECTION_AREA_WIDTH
protected static final int SELECTION_AREA_WIDTH- See Also:
-
TEAM_BUTTON_HEIGHT
protected static final int TEAM_BUTTON_HEIGHT- See Also:
-
SCROLL_AREA_X
protected static final int SCROLL_AREA_X- See Also:
-
SCROLL_AREA_HEIGHT
protected static final int SCROLL_AREA_HEIGHT- See Also:
-
-
Constructor Details
-
SelectTeamScreen
public SelectTeamScreen(net.minecraft.network.chat.Component title, List<ITeam> selectableTeams, BindTeamPacket.Factory packetFactory)
-
-
Method Details
-
getSelectedTeam
-
sendTeamSelection
public void sendTeamSelection() -
init
protected void init()- Overrides:
initin classnet.createmod.catnip.gui.AbstractSimiScreen
-
renderWindow
protected void renderWindow(@Nonnull net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks) - Specified by:
renderWindowin classnet.createmod.catnip.gui.AbstractSimiScreen
-
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int button) -
mouseDragged
public boolean mouseDragged(double mouseX, double mouseY, int button, double dragX, double dragY) -
mouseScrolled
public boolean mouseScrolled(double mouseX, double mouseY, double scrollX, double scrollY) -
getOffscreenRows
protected int getOffscreenRows() -
onClose
public void onClose()- Overrides:
onClosein classnet.minecraft.client.gui.screens.Screen
-