Class CraftingScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<CraftingMenu>
net.minecraft.client.gui.screens.inventory.CraftingScreen
- All Implemented Interfaces:
- ContainerEventHandler,- GuiEventListener,- Renderable,- TabOrderedElement,- MenuAccess<CraftingMenu>,- RecipeUpdateListener
public class CraftingScreen
extends AbstractContainerScreen<CraftingMenu>
implements RecipeUpdateListener
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.client.gui.screens.ScreenScreen.NarratableSearchResult
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final ResourceLocationprivate final RecipeBookComponentprivate booleanFields inherited from class net.minecraft.client.gui.screens.inventory.AbstractContainerScreenhoveredSlot, imageHeight, imageWidth, INVENTORY_LOCATION, inventoryLabelX, inventoryLabelY, isQuickCrafting, leftPos, menu, playerInventoryTitle, quickCraftSlots, SLOT_ITEM_BLIT_OFFSET, slotColor, titleLabelX, titleLabelY, topPosFields inherited from class net.minecraft.client.gui.screens.ScreenBACKGROUND_LOCATION, font, height, minecraft, renderables, screenExecutor, title, widthFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListenerDOUBLE_CLICK_THRESHOLD_MS
- 
Constructor SummaryConstructorsConstructorDescriptionCraftingScreen(CraftingMenu p_98448_, Inventory p_98449_, Component p_98450_) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidprotected booleanhasClickedOutside(double p_98456_, double p_98457_, int p_98458_, int p_98459_, int p_98460_) protected voidinit()protected booleanisHovering(int p_98462_, int p_98463_, int p_98464_, int p_98465_, double p_98466_, double p_98467_) booleanmouseClicked(double p_98452_, double p_98453_, int p_98454_) voidvoidrender(GuiGraphics p_282508_, int p_98480_, int p_98481_, float p_98482_) protected voidrenderBg(GuiGraphics p_283540_, float p_282132_, int p_283078_, int p_283647_) protected voidslotClicked(Slot p_98469_, int p_98470_, int p_98471_, ClickType p_98472_) Methods inherited from class net.minecraft.client.gui.screens.inventory.AbstractContainerScreencheckHotbarKeyPressed, clearDraggingState, getGuiLeft, getGuiTop, getMenu, getSlotColor, getSlotUnderMouse, getTooltipFromContainerItem, getXSize, getYSize, handleSlotStateChanged, isPauseScreen, keyPressed, mouseDragged, mouseReleased, onClose, removed, renderBackground, renderLabels, renderSlot, renderSlotHighlight, renderSlotHighlight, renderTooltip, tickMethods inherited from class net.minecraft.client.gui.screens.Screenadded, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearFocus, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrationEnabled, onFilesDrop, rebuildWidgets, removeWidget, renderDirtBackground, renderTransparentBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandlergetFocused, isDragging, setDragging, setFocusedMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandlercharTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, magicalSpecialHackyFocus, mouseScrolled, nextFocusPath, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListenermouseMovedMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElementgetTabOrderGroup
- 
Field Details- 
CRAFTING_TABLE_LOCATION
- 
recipeBookComponent
- 
widthTooNarrowprivate boolean widthTooNarrow
 
- 
- 
Constructor Details- 
CraftingScreen
 
- 
- 
Method Details- 
initprotected void init()- Overrides:
- initin class- AbstractContainerScreen<CraftingMenu>
 
- 
containerTickpublic void containerTick()- Overrides:
- containerTickin class- AbstractContainerScreen<CraftingMenu>
 
- 
render- Specified by:
- renderin interface- Renderable
- Overrides:
- renderin class- AbstractContainerScreen<CraftingMenu>
 
- 
renderBg- Specified by:
- renderBgin class- AbstractContainerScreen<CraftingMenu>
 
- 
isHoveringprotected boolean isHovering(int p_98462_, int p_98463_, int p_98464_, int p_98465_, double p_98466_, double p_98467_) - Overrides:
- isHoveringin class- AbstractContainerScreen<CraftingMenu>
 
- 
mouseClickedpublic boolean mouseClicked(double p_98452_, double p_98453_, int p_98454_) - Specified by:
- mouseClickedin interface- ContainerEventHandler
- Specified by:
- mouseClickedin interface- GuiEventListener
- Overrides:
- mouseClickedin class- AbstractContainerScreen<CraftingMenu>
 
- 
hasClickedOutsideprotected boolean hasClickedOutside(double p_98456_, double p_98457_, int p_98458_, int p_98459_, int p_98460_) - Overrides:
- hasClickedOutsidein class- AbstractContainerScreen<CraftingMenu>
 
- 
slotClicked- Overrides:
- slotClickedin class- AbstractContainerScreen<CraftingMenu>
 
- 
recipesUpdatedpublic void recipesUpdated()- Specified by:
- recipesUpdatedin interface- RecipeUpdateListener
 
- 
getRecipeBookComponent- Specified by:
- getRecipeBookComponentin interface- RecipeUpdateListener
 
 
-