@ParametersAreNonnullByDefault
public abstract class AbstractSimiContainerScreen<T extends net.minecraft.inventory.container.Container>
extends net.minecraft.client.gui.screen.inventory.ContainerScreen<T>
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<net.minecraft.client.gui.widget.Widget> |
widgets |
protected int |
windowXOffset |
protected int |
windowYOffset |
hoveredSlot, imageHeight, imageWidth, inventory, INVENTORY_LOCATION, inventoryLabelX, inventoryLabelY, isQuickCrafting, leftPos, menu, quickCraftSlots, slotColor, titleLabelX, titleLabelY, topPos| Constructor and Description |
|---|
AbstractSimiContainerScreen(T container,
net.minecraft.entity.player.PlayerInventory inv,
net.minecraft.util.text.ITextComponent title) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
charTyped(char character,
int code) |
protected void |
debugExtraAreas(com.mojang.blaze3d.matrix.MatrixStack matrixStack)
Deprecated.
|
protected void |
debugWindowArea(com.mojang.blaze3d.matrix.MatrixStack matrixStack)
Deprecated.
|
java.util.List<net.minecraft.client.renderer.Rectangle2d> |
getExtraAreas()
Used for moving JEI out of the way of extra things like Flexcrate renders.
|
double |
getItemCountTextScale() |
int |
getLeftOfCentered(int textureWidth) |
protected void |
init() |
boolean |
keyPressed(int code,
int p_keyPressed_2_,
int p_keyPressed_3_) |
boolean |
mouseClicked(double x,
double y,
int button) |
boolean |
mouseReleased(double x,
double y,
int button) |
boolean |
mouseScrolled(double mouseX,
double mouseY,
double delta) |
void |
render(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int mouseX,
int mouseY,
float partialTicks) |
protected void |
renderBg(com.mojang.blaze3d.matrix.MatrixStack p_230450_1_,
float p_230450_2_,
int p_230450_3_,
int p_230450_4_) |
protected void |
renderItemOverlayIntoGUI(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
net.minecraft.client.gui.FontRenderer fr,
net.minecraft.item.ItemStack stack,
int xPosition,
int yPosition,
java.lang.String text,
int textColor)
Deprecated.
|
protected void |
renderLabels(com.mojang.blaze3d.matrix.MatrixStack p_230451_1_,
int p_230451_2_,
int p_230451_3_) |
void |
renderPlayerInventory(com.mojang.blaze3d.matrix.MatrixStack ms,
int x,
int y) |
protected abstract void |
renderWindow(com.mojang.blaze3d.matrix.MatrixStack ms,
int mouseX,
int mouseY,
float partialTicks) |
protected void |
renderWindowForeground(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int mouseX,
int mouseY,
float partialTicks) |
protected void |
setWindowOffset(int xOffset,
int yOffset) |
protected void |
setWindowSize(int width,
int height) |
checkHotbarKeyPressed, getGuiLeft, getGuiTop, getMenu, getSlotColor, getSlotUnderMouse, getXSize, getYSize, hasClickedOutside, isHovering, isPauseScreen, mouseDragged, onClose, removed, renderTooltip, slotClicked, tickaddButton, addWidget, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, onFilesDrop, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderDirtBackground, 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, waitprotected java.util.List<net.minecraft.client.gui.widget.Widget> widgets
protected int windowXOffset
protected int windowYOffset
public AbstractSimiContainerScreen(T container, net.minecraft.entity.player.PlayerInventory inv, net.minecraft.util.text.ITextComponent title)
protected void setWindowSize(int width,
int height)
protected void setWindowOffset(int xOffset,
int yOffset)
protected void init()
init in class net.minecraft.client.gui.screen.inventory.ContainerScreen<T extends net.minecraft.inventory.container.Container>protected void renderLabels(com.mojang.blaze3d.matrix.MatrixStack p_230451_1_,
int p_230451_2_,
int p_230451_3_)
renderLabels in class net.minecraft.client.gui.screen.inventory.ContainerScreen<T extends net.minecraft.inventory.container.Container>public void render(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int mouseX,
int mouseY,
float partialTicks)
render in interface net.minecraft.client.gui.IRenderablerender in class net.minecraft.client.gui.screen.inventory.ContainerScreen<T extends net.minecraft.inventory.container.Container>public boolean mouseClicked(double x,
double y,
int button)
mouseClicked in interface net.minecraft.client.gui.IGuiEventListenermouseClicked in interface net.minecraft.client.gui.INestedGuiEventHandlermouseClicked in class net.minecraft.client.gui.screen.inventory.ContainerScreen<T extends net.minecraft.inventory.container.Container>public boolean keyPressed(int code,
int p_keyPressed_2_,
int p_keyPressed_3_)
keyPressed in interface net.minecraft.client.gui.IGuiEventListenerkeyPressed in interface net.minecraft.client.gui.INestedGuiEventHandlerkeyPressed in class net.minecraft.client.gui.screen.inventory.ContainerScreen<T extends net.minecraft.inventory.container.Container>public boolean charTyped(char character,
int code)
public boolean mouseScrolled(double mouseX,
double mouseY,
double delta)
public boolean mouseReleased(double x,
double y,
int button)
mouseReleased in interface net.minecraft.client.gui.IGuiEventListenermouseReleased in interface net.minecraft.client.gui.INestedGuiEventHandlermouseReleased in class net.minecraft.client.gui.screen.inventory.ContainerScreen<T extends net.minecraft.inventory.container.Container>protected abstract void renderWindow(com.mojang.blaze3d.matrix.MatrixStack ms,
int mouseX,
int mouseY,
float partialTicks)
protected void renderBg(com.mojang.blaze3d.matrix.MatrixStack p_230450_1_,
float p_230450_2_,
int p_230450_3_,
int p_230450_4_)
renderBg in class net.minecraft.client.gui.screen.inventory.ContainerScreen<T extends net.minecraft.inventory.container.Container>protected void renderWindowForeground(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int mouseX,
int mouseY,
float partialTicks)
public double getItemCountTextScale()
public int getLeftOfCentered(int textureWidth)
public void renderPlayerInventory(com.mojang.blaze3d.matrix.MatrixStack ms,
int x,
int y)
public java.util.List<net.minecraft.client.renderer.Rectangle2d> getExtraAreas()
This screen class must be bound to a SlotMover instance for this method to work.
ContainerScreen.@Deprecated
protected void renderItemOverlayIntoGUI(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
net.minecraft.client.gui.FontRenderer fr,
net.minecraft.item.ItemStack stack,
int xPosition,
int yPosition,
@Nullable
java.lang.String text,
int textColor)
@Deprecated protected void debugWindowArea(com.mojang.blaze3d.matrix.MatrixStack matrixStack)
@Deprecated protected void debugExtraAreas(com.mojang.blaze3d.matrix.MatrixStack matrixStack)