public class GuiInventorySearcher extends net.minecraft.client.gui.screen.inventory.ContainerScreen<ContainerInventorySearcher>
hoveredSlot, imageHeight, imageWidth, INVENTORY_LOCATION, inventoryLabelX, inventoryLabelY, isQuickCrafting, leftPos, menu, quickCraftSlots, slotColor, titleLabelX, titleLabelY, topPos| Constructor and Description |
|---|
GuiInventorySearcher(ContainerInventorySearcher container,
net.minecraft.entity.player.PlayerInventory inv,
net.minecraft.util.text.ITextComponent title) |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.util.math.BlockPos |
getBlockPos()
Special case for when the searched item is a position provider
|
net.minecraft.item.ItemStack |
getSearchStack() |
protected void |
init() |
void |
onClose() |
void |
render(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int par1,
int par2,
float par3) |
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 mouseX,
int mouseY) |
void |
setSearchStack(net.minecraft.item.ItemStack stack) |
void |
setStackPredicate(java.util.function.Predicate<net.minecraft.item.ItemStack> predicate) |
boolean |
shouldCloseOnEsc() |
protected void |
slotClicked(net.minecraft.inventory.container.Slot slot,
int slotId,
int mouseButton,
net.minecraft.inventory.container.ClickType clickType) |
void |
tick() |
checkHotbarKeyPressed, getGuiLeft, getGuiTop, getMenu, getSlotColor, getSlotUnderMouse, getXSize, getYSize, hasClickedOutside, isHovering, isPauseScreen, keyPressed, mouseClicked, mouseDragged, mouseReleased, 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 GuiInventorySearcher(ContainerInventorySearcher container, net.minecraft.entity.player.PlayerInventory inv, net.minecraft.util.text.ITextComponent title)
protected void init()
init in class net.minecraft.client.gui.screen.inventory.ContainerScreen<ContainerInventorySearcher>public boolean shouldCloseOnEsc()
shouldCloseOnEsc in class net.minecraft.client.gui.screen.Screenpublic void onClose()
onClose in class net.minecraft.client.gui.screen.inventory.ContainerScreen<ContainerInventorySearcher>public void setStackPredicate(java.util.function.Predicate<net.minecraft.item.ItemStack> predicate)
@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 clickType)
slotClicked in class net.minecraft.client.gui.screen.inventory.ContainerScreen<ContainerInventorySearcher>public void tick()
tick in interface net.minecraft.client.gui.screen.IScreentick in class net.minecraft.client.gui.screen.inventory.ContainerScreen<ContainerInventorySearcher>@Nonnull public net.minecraft.util.math.BlockPos getBlockPos()
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<ContainerInventorySearcher>protected void renderLabels(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int mouseX,
int mouseY)
renderLabels in class net.minecraft.client.gui.screen.inventory.ContainerScreen<ContainerInventorySearcher>public void render(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int par1,
int par2,
float par3)
render in interface net.minecraft.client.gui.IRenderablerender in class net.minecraft.client.gui.screen.inventory.ContainerScreen<ContainerInventorySearcher>