public class GuiItemSearcher extends net.minecraft.client.gui.screen.inventory.ContainerScreen<ContainerItemSearcher>
| Modifier and Type | Class and Description |
|---|---|
class |
GuiItemSearcher.SearchEntry |
hoveredSlot, imageHeight, imageWidth, INVENTORY_LOCATION, inventoryLabelX, inventoryLabelY, isQuickCrafting, leftPos, menu, quickCraftSlots, slotColor, titleLabelX, titleLabelY, topPos| Constructor and Description |
|---|
GuiItemSearcher(ContainerItemSearcher container,
net.minecraft.entity.player.PlayerInventory playerInventory,
net.minecraft.util.text.ITextComponent displayString) |
| Modifier and Type | Method and Description |
|---|---|
net.minecraftforge.items.IItemHandlerModifiable |
getInventory() |
net.minecraft.item.ItemStack |
getSearchStack() |
void |
init()
Adds the buttons (and other controls) to the screen in question.
|
boolean |
keyPressed(int keyCode,
int scanCode,
int modifiers) |
boolean |
mouseClicked(double mouseX,
double mouseY,
int button) |
boolean |
mouseDragged(double mouseX,
double mouseY,
int button,
double dragX,
double dragY) |
boolean |
mouseReleased(double mouseX,
double mouseY,
int button) |
boolean |
mouseScrolled(double x,
double y,
double dir) |
void |
onClose() |
void |
render(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int x,
int y,
float partialTicks) |
protected void |
renderBg(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
float par1,
int par2,
int par3) |
protected void |
renderLabels(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int par1,
int par2) |
void |
setSearchStack(net.minecraft.item.ItemStack stack) |
boolean |
shouldCloseOnEsc() |
protected void |
slotClicked(net.minecraft.inventory.container.Slot slot,
int slotId,
int mouseButton,
net.minecraft.inventory.container.ClickType type) |
void |
tick() |
checkHotbarKeyPressed, getGuiLeft, getGuiTop, getMenu, getSlotColor, getSlotUnderMouse, getXSize, getYSize, hasClickedOutside, isHovering, isPauseScreen, removed, renderTooltipaddButton, 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, 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, waitpublic GuiItemSearcher(ContainerItemSearcher container, net.minecraft.entity.player.PlayerInventory playerInventory, net.minecraft.util.text.ITextComponent displayString)
public boolean shouldCloseOnEsc()
shouldCloseOnEsc in class net.minecraft.client.gui.screen.Screen@Nonnull public net.minecraft.item.ItemStack getSearchStack()
public void setSearchStack(@Nonnull
net.minecraft.item.ItemStack stack)
protected void slotClicked(net.minecraft.inventory.container.Slot slot,
int slotId,
int mouseButton,
net.minecraft.inventory.container.ClickType type)
slotClicked in class net.minecraft.client.gui.screen.inventory.ContainerScreen<ContainerItemSearcher>public void init()
init in class net.minecraft.client.gui.screen.inventory.ContainerScreen<ContainerItemSearcher>public void onClose()
onClose in class net.minecraft.client.gui.screen.inventory.ContainerScreen<ContainerItemSearcher>public void tick()
tick in interface net.minecraft.client.gui.screen.IScreentick in class net.minecraft.client.gui.screen.inventory.ContainerScreen<ContainerItemSearcher>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<ContainerItemSearcher>public boolean mouseScrolled(double x,
double y,
double dir)
public boolean mouseClicked(double mouseX,
double mouseY,
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<ContainerItemSearcher>public boolean mouseDragged(double mouseX,
double mouseY,
int button,
double dragX,
double dragY)
mouseDragged in interface net.minecraft.client.gui.IGuiEventListenermouseDragged in interface net.minecraft.client.gui.INestedGuiEventHandlermouseDragged in class net.minecraft.client.gui.screen.inventory.ContainerScreen<ContainerItemSearcher>public boolean mouseReleased(double mouseX,
double mouseY,
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<ContainerItemSearcher>public void render(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int x,
int y,
float partialTicks)
render in interface net.minecraft.client.gui.IRenderablerender in class net.minecraft.client.gui.screen.inventory.ContainerScreen<ContainerItemSearcher>protected void renderLabels(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int par1,
int par2)
renderLabels in class net.minecraft.client.gui.screen.inventory.ContainerScreen<ContainerItemSearcher>protected void renderBg(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
float par1,
int par2,
int par3)
renderBg in class net.minecraft.client.gui.screen.inventory.ContainerScreen<ContainerItemSearcher>public net.minecraftforge.items.IItemHandlerModifiable getInventory()