Class CraftingScreen
java.lang.Object
net.minecraft.client.gui.GuiComponent
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,Widget,MenuAccess<CraftingMenu>,RecipeUpdateListener
public class CraftingScreen
extends AbstractContainerScreen<CraftingMenu>
implements RecipeUpdateListener
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ResourceLocationprivate static final ResourceLocationprivate final RecipeBookComponentprivate booleanFields inherited from class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen
hoveredSlot, 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.Screen
font, height, itemRenderer, minecraft, passEvents, renderables, title, widthFields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATIONFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
ConstructorsConstructorDescriptionCraftingScreen(CraftingMenu p_98448_, Inventory p_98449_, Component p_98450_) -
Method Summary
Modifier 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_) voidvoidremoved()voidprotected voidprotected voidslotClicked(Slot p_98469_, int p_98470_, int p_98471_, ClickType p_98472_) Methods inherited from class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen
checkHotbarKeyPressed, getGuiLeft, getGuiTop, getMenu, getSlotColor, getSlotUnderMouse, getXSize, getYSize, isPauseScreen, keyPressed, mouseDragged, mouseReleased, onClose, renderLabels, renderSlotHighlight, renderSlotHighlight, renderTooltip, tickMethods inherited from class net.minecraft.client.gui.screens.Screen
addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, children, clearWidgets, findNarratableWidget, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrationEnabled, onFilesDrop, removeWidget, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, fill, fillGradient, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLineMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
changeFocus, charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, mouseScrolled, setInitialFocusMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
-
Field Details
-
CRAFTING_TABLE_LOCATION
-
RECIPE_BUTTON_LOCATION
-
recipeBookComponent
-
widthTooNarrow
private boolean widthTooNarrow
-
-
Constructor Details
-
CraftingScreen
-
-
Method Details
-
init
protected void init()- Overrides:
initin classAbstractContainerScreen<CraftingMenu>
-
containerTick
public void containerTick()- Overrides:
containerTickin classAbstractContainerScreen<CraftingMenu>
-
render
- Specified by:
renderin interfaceWidget- Overrides:
renderin classAbstractContainerScreen<CraftingMenu>
-
renderBg
- Specified by:
renderBgin classAbstractContainerScreen<CraftingMenu>
-
isHovering
protected boolean isHovering(int p_98462_, int p_98463_, int p_98464_, int p_98465_, double p_98466_, double p_98467_) - Overrides:
isHoveringin classAbstractContainerScreen<CraftingMenu>
-
mouseClicked
public boolean mouseClicked(double p_98452_, double p_98453_, int p_98454_) - Specified by:
mouseClickedin interfaceContainerEventHandler- Specified by:
mouseClickedin interfaceGuiEventListener- Overrides:
mouseClickedin classAbstractContainerScreen<CraftingMenu>
-
hasClickedOutside
protected boolean hasClickedOutside(double p_98456_, double p_98457_, int p_98458_, int p_98459_, int p_98460_) - Overrides:
hasClickedOutsidein classAbstractContainerScreen<CraftingMenu>
-
slotClicked
- Overrides:
slotClickedin classAbstractContainerScreen<CraftingMenu>
-
recipesUpdated
public void recipesUpdated()- Specified by:
recipesUpdatedin interfaceRecipeUpdateListener
-
removed
public void removed()- Overrides:
removedin classAbstractContainerScreen<CraftingMenu>
-
getRecipeBookComponent
- Specified by:
getRecipeBookComponentin interfaceRecipeUpdateListener
-