Class PcGuiScreen
-
- All Implemented Interfaces:
-
net.minecraft.client.gui.components.Renderable
,net.minecraft.client.gui.components.TabOrderedElement
,net.minecraft.client.gui.components.events.ContainerEventHandler
,net.minecraft.client.gui.components.events.GuiEventListener
,net.minecraft.client.gui.screens.inventory.MenuAccess
public final class PcGuiScreen extends AbstractContainerScreen<PcGuiMenu>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
PcGuiScreen.Companion
-
Field Summary
Fields Modifier and Type Field Description private EditBox
command
protected final Integer
imageWidth
protected final Integer
imageHeight
protected final Integer
titleLabelX
protected final Integer
titleLabelY
protected final Integer
inventoryLabelX
protected final Integer
inventoryLabelY
protected final PcGuiMenu
menu
protected final Component
playerInventoryTitle
protected final Slot
hoveredSlot
private final Slot
clickedSlot
private final Slot
snapbackEnd
private final Slot
quickdropSlot
private final Slot
lastClickSlot
protected final Integer
leftPos
protected final Integer
topPos
private final Boolean
isSplittingStack
private final ItemStack
draggingItem
private final Integer
snapbackStartX
private final Integer
snapbackStartY
private final Long
snapbackTime
private final ItemStack
snapbackItem
private final Long
quickdropTime
protected final Set<Slot>
quickCraftSlots
protected final Boolean
isQuickCrafting
private final Integer
quickCraftingType
private final Integer
quickCraftingButton
private final Boolean
skipNextRelease
private final Integer
quickCraftingRemainder
private final Long
lastClickTime
private final Integer
lastClickButton
private final Boolean
doubleclick
private final ItemStack
lastQuickMoved
protected final Integer
slotColor
protected final Component
title
private final List<GuiEventListener>
children
private final List<NarratableEntry>
narratables
protected final Minecraft
minecraft
private final Boolean
initialized
public final Integer
width
public final Integer
height
public final List<Renderable>
renderables
protected final Font
font
private final ScreenNarrationCollector
narrationState
private final Long
narrationSuppressTime
private final Long
nextNarrationTime
protected final CycleButton<NarratorStatus>
narratorButton
private final NarratableEntry
lastNarratable
private final Screen.DeferredTooltipRendering
deferredTooltipRendering
protected final Executor
screenExecutor
private GuiEventListener
focused
private Boolean
isDragging
public final static PcGuiScreen.Companion
Companion
-
Constructor Summary
Constructors Constructor Description PcGuiScreen(PcGuiMenu container, Inventory inventory, Component text)
-
Method Summary
Modifier and Type Method Description final EditBox
getCommand()
final Unit
setCommand(EditBox command)
Unit
render(GuiGraphics guiGraphics, Integer mouseX, Integer mouseY, Float partialTicks)
Unit
renderBg(GuiGraphics guiGraphics, Float partialTicks, Integer gx, Integer gy)
Boolean
keyPressed(Integer key, Integer b, Integer c)
Unit
resize(Minecraft minecraft, Integer width, Integer height)
Unit
renderLabels(GuiGraphics guiGraphics, Integer mouseX, Integer mouseY)
Unit
init()
-
Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocused
-
Methods inherited from class net.minecraft.client.gui.screens.Screen
addEventWidget, addRenderableOnly, addRenderableWidget, addWidget, added, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearFocus, clearTooltipForNextRenderPass, clearWidgets, createArrowEvent, createTabEvent, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getUsageNarration, handleComponentClicked, handleDelayedNarration, init, insertText, isMouseOver, isValidCharacterForName, onFilesDrop, rebuildWidgets, removeWidget, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderPanorama, renderTransparentBackground, renderWithTooltip, repositionElements, runNarration, scheduleNarration, setInitialFocus, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, shouldRunNarration, suppressNarration, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatus
-
Methods inherited from class net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Methods inherited from class net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
-
Methods inherited from class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen
checkHotbarKeyPressed, checkHotbarMouseClicked, clearDraggingState, containerTick, findSlot, getGuiLeft, getGuiTop, getMenu, getSlotColor, getSlotUnderMouse, getTooltipFromContainerItem, getXSize, getYSize, handleSlotStateChanged, hasClickedOutside, isHovering, isHovering, isPauseScreen, mouseClicked, mouseDragged, mouseReleased, onClose, recalculateQuickCraftRemaining, removed, renderBackground, renderFloatingItem, renderSlot, renderSlotContents, renderSlotHighlight, renderTooltip, slotClicked, tick
-
Methods inherited from class net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, handleArrowNavigation, handleTabNavigation, isFocused, keyReleased, mouseScrolled, nextFocusPath, nextFocusPathInDirection, nextFocusPathVaguelyInDirection, setFocused
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
PcGuiScreen
PcGuiScreen(PcGuiMenu container, Inventory inventory, Component text)
-
-
Method Detail
-
getCommand
final EditBox getCommand()
-
setCommand
final Unit setCommand(EditBox command)
-
keyPressed
Boolean keyPressed(Integer key, Integer b, Integer c)
-
renderLabels
Unit renderLabels(GuiGraphics guiGraphics, Integer mouseX, Integer mouseY)
-
-
-
-