Class ScheduleScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<ScheduleMenu>
com.simibubi.create.foundation.gui.menu.AbstractSimiContainerScreen<ScheduleMenu>
com.simibubi.create.content.trains.schedule.ScheduleScreen
- 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,net.minecraft.client.gui.screens.inventory.MenuAccess<ScheduleMenu>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.Screen.NarratableSearchResult -
Field Summary
Fields inherited from class com.simibubi.create.foundation.gui.menu.AbstractSimiContainerScreen
windowXOffset, windowYOffsetFields inherited from class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen
hoveredSlot, imageHeight, imageWidth, INVENTORY_LOCATION, inventoryLabelX, inventoryLabelY, isQuickCrafting, leftPos, menu, playerInventoryTitle, quickCraftSlots, SLOT_ITEM_BLIT_OFFSET, slotColor, titleLabelX, titleLabelY, topPosFields 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
ConstructorsConstructorDescriptionScheduleScreen(ScheduleMenu menu, net.minecraft.world.entity.player.Inventory inv, net.minecraft.network.chat.Component title) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaction(@Nullable net.minecraft.client.gui.GuiGraphics graphics, double mouseX, double mouseY, int click) protected voidList<net.minecraft.client.renderer.Rect2i> Used for moving JEI out of the way of extra things like block renders.net.minecraft.client.gui.FontgetFont()protected voidinit()booleankeyPressed(int pKeyCode, int pScanCode, int pModifiers) booleanmouseClicked(double pMouseX, double pMouseY, int pButton) booleanmouseScrolled(double pMouseX, double pMouseY, double pScrollX, double pScrollY) voidremoved()voidrender(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks) protected voidrenderBg(net.minecraft.client.gui.GuiGraphics graphics, float pPartialTick, int pMouseX, int pMouseY) protected voidrenderForeground(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks) protected intrenderInput(net.minecraft.client.gui.GuiGraphics graphics, net.createmod.catnip.data.Pair<net.minecraft.world.item.ItemStack, net.minecraft.network.chat.Component> pair, int x, int y, boolean clean, int minSize) protected voidrenderSchedule(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks) voidrenderScheduleConditions(net.minecraft.client.gui.GuiGraphics graphics, ScheduleEntry entry, int yOffset, int mouseX, int mouseY, float partialTicks, int cardHeight, int entryIndex) intrenderScheduleEntry(net.minecraft.client.gui.GuiGraphics graphics, ScheduleEntry entry, int yOffset, int mouseX, int mouseY, float partialTicks) protected voidstartEditing(IScheduleInput field, Consumer<Boolean> onClose, boolean allowDeletion) protected voidprotected voidMethods inherited from class com.simibubi.create.foundation.gui.menu.AbstractSimiContainerScreen
addRenderableWidgets, addRenderableWidgets, debugExtraAreas, debugWindowArea, getFocused, getLeftOfCentered, playUiSound, removeWidgets, removeWidgets, renderLabels, renderPlayerInventory, setWindowOffset, setWindowSizeMethods inherited from class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen
checkHotbarKeyPressed, clearDraggingState, getGuiLeft, getGuiTop, getMenu, getSlotColor, getSlotUnderMouse, getTooltipFromContainerItem, getXSize, getYSize, handleSlotStateChanged, hasClickedOutside, isHovering, isPauseScreen, mouseDragged, mouseReleased, onClose, renderBackground, renderSlot, renderSlotContents, renderSlotHighlight, renderSlotHighlight, renderSlotHighlight, renderTooltip, slotClicked, 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, removeWidget, 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, nextFocusPath, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMovedMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Constructor Details
-
ScheduleScreen
public ScheduleScreen(ScheduleMenu menu, net.minecraft.world.entity.player.Inventory inv, net.minecraft.network.chat.Component title)
-
-
Method Details
-
init
protected void init()- Overrides:
initin classAbstractSimiContainerScreen<ScheduleMenu>
-
startEditing
-
stopEditing
protected void stopEditing() -
updateEditorSubwidgets
-
containerTick
protected void containerTick()- Overrides:
containerTickin classAbstractSimiContainerScreen<ScheduleMenu>
-
render
public void render(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks) - Specified by:
renderin interfacenet.minecraft.client.gui.components.Renderable- Overrides:
renderin classAbstractSimiContainerScreen<ScheduleMenu>
-
renderSchedule
protected void renderSchedule(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks) -
renderScheduleEntry
public int renderScheduleEntry(net.minecraft.client.gui.GuiGraphics graphics, ScheduleEntry entry, int yOffset, int mouseX, int mouseY, float partialTicks) -
renderScheduleConditions
public void renderScheduleConditions(net.minecraft.client.gui.GuiGraphics graphics, ScheduleEntry entry, int yOffset, int mouseX, int mouseY, float partialTicks, int cardHeight, int entryIndex) -
renderInput
protected int renderInput(net.minecraft.client.gui.GuiGraphics graphics, net.createmod.catnip.data.Pair<net.minecraft.world.item.ItemStack, net.minecraft.network.chat.Component> pair, int x, int y, boolean clean, int minSize) -
action
public boolean action(@Nullable @Nullable net.minecraft.client.gui.GuiGraphics graphics, double mouseX, double mouseY, int click) -
mouseClicked
public boolean mouseClicked(double pMouseX, double pMouseY, int pButton) - Specified by:
mouseClickedin interfacenet.minecraft.client.gui.components.events.ContainerEventHandler- Specified by:
mouseClickedin interfacenet.minecraft.client.gui.components.events.GuiEventListener- Overrides:
mouseClickedin classAbstractSimiContainerScreen<ScheduleMenu>
-
keyPressed
public boolean keyPressed(int pKeyCode, int pScanCode, int pModifiers) - Specified by:
keyPressedin interfacenet.minecraft.client.gui.components.events.ContainerEventHandler- Specified by:
keyPressedin interfacenet.minecraft.client.gui.components.events.GuiEventListener- Overrides:
keyPressedin classAbstractSimiContainerScreen<ScheduleMenu>
-
mouseScrolled
public boolean mouseScrolled(double pMouseX, double pMouseY, double pScrollX, double pScrollY) -
renderForeground
protected void renderForeground(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks) - Overrides:
renderForegroundin classAbstractSimiContainerScreen<ScheduleMenu>
-
renderBg
protected void renderBg(net.minecraft.client.gui.GuiGraphics graphics, float pPartialTick, int pMouseX, int pMouseY) - Specified by:
renderBgin classnet.minecraft.client.gui.screens.inventory.AbstractContainerScreen<ScheduleMenu>
-
removed
public void removed()- Overrides:
removedin classnet.minecraft.client.gui.screens.inventory.AbstractContainerScreen<ScheduleMenu>
-
getExtraAreas
Description copied from class:AbstractSimiContainerScreenUsed for moving JEI out of the way of extra things like block renders.- Overrides:
getExtraAreasin classAbstractSimiContainerScreen<ScheduleMenu>- Returns:
- the space that the GUI takes up outside the normal rectangle defined
by
ContainerScreen.
-
getFont
public net.minecraft.client.gui.Font getFont()
-