public class ContainerScreenTerminalStorage extends org.cyclops.cyclopscore.client.gui.container.ContainerScreenExtended<ContainerTerminalStorage>
| Modifier and Type | Class and Description |
|---|---|
static class |
ContainerScreenTerminalStorage.DrawLayer
The layer to draw on.
|
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
terminalDragSplitting |
protected java.util.Set<net.minecraft.inventory.container.Slot> |
terminalDragSplittingSlots |
container, offsetX, offsetY, texturedragSplitting, dragSplittingSlots, guiLeft, guiTop, hoveredSlot, INVENTORY_BACKGROUND, playerInventory, playerInventoryTitleX, playerInventoryTitleY, slotColor, titleX, titleY, xSize, ySize| Constructor and Description |
|---|
ContainerScreenTerminalStorage(ContainerTerminalStorage container,
net.minecraft.entity.player.PlayerInventory inventory,
net.minecraft.util.text.ITextComponent title) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
balanceCraftingGrid() |
boolean |
charTyped(char keyCode,
int scanCode) |
protected void |
clearCraftingGrid(boolean toStorage) |
protected net.minecraft.util.ResourceLocation |
constructGuiTexture() |
protected void |
drawCurrentScreen(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int mouseX,
int mouseY,
float partialTicks) |
protected void |
drawGuiContainerBackgroundLayer(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
float f,
int mouseX,
int mouseY) |
protected void |
drawGuiContainerForegroundLayer(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int mouseX,
int mouseY) |
protected void |
drawTabContents(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
java.lang.String tabId,
int channel,
ContainerScreenTerminalStorage.DrawLayer layer,
float partialTick,
int x,
int y,
int mouseX,
int mouseY) |
protected void |
drawTabsBackground(com.mojang.blaze3d.matrix.MatrixStack matrixStack) |
protected void |
drawTabsForeground(int mouseX,
int mouseY) |
int |
getBaseXSize() |
int |
getBaseYSize() |
protected java.util.Optional<ITerminalStorageTabClient<?>> |
getClientTab(java.lang.String tab) |
protected java.util.Optional<ITerminalStorageTabCommon> |
getCommonTab(java.lang.String tab) |
ContainerTerminalStorage |
getContainer() |
org.cyclops.cyclopscore.client.gui.component.input.WidgetTextFieldExtended |
getFieldSearch() |
java.util.Optional<ITerminalStorageTabClient<?>> |
getSelectedClientTab() |
protected int |
getSelectedClientTabIndex() |
protected int |
getSelectedFirstRow() |
protected int |
getSlotRowLength() |
protected int |
getSlotsOffsetX() |
protected int |
getSlotsOffsetY() |
net.minecraft.inventory.container.Slot |
getSlotUnderMouse() |
protected int |
getSlotVisibleRows() |
int |
getStorageSlotIndexAtPosition(double mouseX,
double mouseY) |
protected java.util.Optional<ITerminalStorageTabClient<?>> |
getTabByIndex(int tabIndex) |
protected boolean |
handleKeyCodeFirst(int keyCode,
int scanCode) |
protected boolean |
handleKeyCodeLast(int keyCode,
int scanCode) |
void |
init() |
boolean |
keyPressed(int keyCode,
int scanCode,
int modifiers) |
boolean |
mouseClicked(double mouseX,
double mouseY,
int mouseButton) |
boolean |
mouseDragged(double mouseX,
double mouseY,
int mouseButton,
double mouseXPrev,
double mouseYPrev) |
boolean |
mouseReleased(double mouseX,
double mouseY,
int mouseButton) |
protected void |
playButtonClickSound() |
protected void |
setTabByIndex(int tabIndex) |
void |
tick() |
createServerPressable, drawTooltip, getGuiLeftTotal, getGuiTexture, getGuiTopTotal, getValueNotifiableType, isPointInRegion, isPointInRegion, isSlotSelected, onUpdate, refreshValues, rendercloseScreen, getGuiLeft, getGuiTop, getSlotColor, getXSize, getYSize, handleMouseClick, hasClickedOutside, isPauseScreen, itemStackMoved, onClose, renderHoveredTooltipaddButton, addListener, addPacks, func_243308_b, getEventListeners, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, renderBackground, renderBackground, renderComponentHoverEffect, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderToolTip, renderWrappedToolTip, resize, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenErrorgetListener, isDragging, setDragging, setListenerblit, blit, blit, blit, blit, blitBlackOutline, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected final java.util.Set<net.minecraft.inventory.container.Slot> terminalDragSplittingSlots
protected boolean terminalDragSplitting
public ContainerScreenTerminalStorage(ContainerTerminalStorage container, net.minecraft.entity.player.PlayerInventory inventory, net.minecraft.util.text.ITextComponent title)
public void init()
init in class org.cyclops.cyclopscore.client.gui.container.ContainerScreenExtended<ContainerTerminalStorage>public void tick()
tick in interface net.minecraft.client.gui.screen.IScreentick in class net.minecraft.client.gui.screen.inventory.ContainerScreen<ContainerTerminalStorage>protected net.minecraft.util.ResourceLocation constructGuiTexture()
constructGuiTexture in class org.cyclops.cyclopscore.client.gui.container.ContainerScreenExtended<ContainerTerminalStorage>public int getBaseXSize()
getBaseXSize in class org.cyclops.cyclopscore.client.gui.container.ContainerScreenExtended<ContainerTerminalStorage>public int getBaseYSize()
getBaseYSize in class org.cyclops.cyclopscore.client.gui.container.ContainerScreenExtended<ContainerTerminalStorage>protected void drawGuiContainerBackgroundLayer(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
float f,
int mouseX,
int mouseY)
drawGuiContainerBackgroundLayer in class org.cyclops.cyclopscore.client.gui.container.ContainerScreenExtended<ContainerTerminalStorage>protected void drawGuiContainerForegroundLayer(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int mouseX,
int mouseY)
drawGuiContainerForegroundLayer in class net.minecraft.client.gui.screen.inventory.ContainerScreen<ContainerTerminalStorage>protected void drawCurrentScreen(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int mouseX,
int mouseY,
float partialTicks)
drawCurrentScreen in class org.cyclops.cyclopscore.client.gui.container.ContainerScreenExtended<ContainerTerminalStorage>public ContainerTerminalStorage getContainer()
getContainer in interface net.minecraft.client.gui.IHasContainer<ContainerTerminalStorage>getContainer in class net.minecraft.client.gui.screen.inventory.ContainerScreen<ContainerTerminalStorage>protected java.util.Optional<ITerminalStorageTabClient<?>> getTabByIndex(int tabIndex)
protected void setTabByIndex(int tabIndex)
protected void playButtonClickSound()
public boolean mouseClicked(double mouseX,
double mouseY,
int mouseButton)
mouseClicked in interface net.minecraft.client.gui.IGuiEventListenermouseClicked in interface net.minecraft.client.gui.INestedGuiEventHandlermouseClicked in class net.minecraft.client.gui.screen.inventory.ContainerScreen<ContainerTerminalStorage>@Nullable public net.minecraft.inventory.container.Slot getSlotUnderMouse()
getSlotUnderMouse in class net.minecraft.client.gui.screen.inventory.ContainerScreen<ContainerTerminalStorage>public boolean mouseDragged(double mouseX,
double mouseY,
int mouseButton,
double mouseXPrev,
double mouseYPrev)
mouseDragged in interface net.minecraft.client.gui.IGuiEventListenermouseDragged in interface net.minecraft.client.gui.INestedGuiEventHandlermouseDragged in class net.minecraft.client.gui.screen.inventory.ContainerScreen<ContainerTerminalStorage>public boolean mouseReleased(double mouseX,
double mouseY,
int mouseButton)
mouseReleased in interface net.minecraft.client.gui.IGuiEventListenermouseReleased in interface net.minecraft.client.gui.INestedGuiEventHandlermouseReleased in class net.minecraft.client.gui.screen.inventory.ContainerScreen<ContainerTerminalStorage>protected boolean handleKeyCodeFirst(int keyCode,
int scanCode)
protected boolean handleKeyCodeLast(int keyCode,
int scanCode)
public boolean charTyped(char keyCode,
int scanCode)
public 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.inventory.ContainerScreen<ContainerTerminalStorage>protected void clearCraftingGrid(boolean toStorage)
protected void balanceCraftingGrid()
public int getStorageSlotIndexAtPosition(double mouseX,
double mouseY)
protected void drawTabsBackground(com.mojang.blaze3d.matrix.MatrixStack matrixStack)
protected int getSlotsOffsetX()
protected int getSlotsOffsetY()
protected int getSlotVisibleRows()
protected int getSlotRowLength()
protected int getSelectedFirstRow()
protected void drawTabContents(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
java.lang.String tabId,
int channel,
ContainerScreenTerminalStorage.DrawLayer layer,
float partialTick,
int x,
int y,
int mouseX,
int mouseY)
protected java.util.Optional<ITerminalStorageTabClient<?>> getClientTab(java.lang.String tab)
protected java.util.Optional<ITerminalStorageTabCommon> getCommonTab(java.lang.String tab)
public java.util.Optional<ITerminalStorageTabClient<?>> getSelectedClientTab()
protected int getSelectedClientTabIndex()
protected void drawTabsForeground(int mouseX,
int mouseY)
public org.cyclops.cyclopscore.client.gui.component.input.WidgetTextFieldExtended getFieldSearch()