net.minecraft.client.gui.screen.ingame

public abstract class RecipeBookScreen<T extends AbstractRecipeScreenHandler>

extends HandledScreen<T> implements RecipeBookProvider

All mapped superinterfaces:

ParentElement, Element, Navigable, Drawable, RenderTickUpdatable, ScreenHandlerProvider, RecipeBookProvider

net.minecraft.client.gui.screens.inventory.AbstractRecipeBookScreen
net.minecraft.class_10260
net.minecraft.client.gui.screen.ingame.RecipeBookScreen

Field summary

Modifier and TypeField
private final RecipeBookWidget<?>
recipeBookComponent
field_54474
recipeBook
private boolean
widthTooNarrow
field_54475
narrow

Constructor summary

ModifierConstructor
public (T handler, RecipeBookWidget<?> recipeBook, PlayerInventory inventory, Text title)

Method summary

Modifier and TypeMethod
protected void
init()
method_25426()
init()
protected abstract ScreenPos
getRecipeBookButtonPosition()
method_64509()
getRecipeBookButtonPos()
private void
initButton()
method_64512()
addRecipeBook()
protected void
onRecipeBookButtonClick()
method_64510()
onRecipeBookToggled()
public void
extractRenderState(GuiGraphicsExtractor graphics)
method_25394(class_332 arg0)
render(DrawContext arg0)
protected void
extractSlots(GuiGraphicsExtractor graphics)
method_64508(class_332 arg0)
drawSlots(DrawContext arg0)
protected boolean
isBiggerResultSlot()
method_64511()
shouldAddPaddingToGhostResult()
public boolean
charTyped(CharacterEvent event)
method_25400(class_11905 arg0)
charTyped(CharInput arg0)
public boolean
keyPressed(KeyEvent event)
method_25404(class_11908 arg0)
keyPressed(KeyInput arg0)
public boolean
isInputCaptured()
method_1_7314()
shouldIgnoreFriendsKey()
public boolean
mouseClicked(MouseButtonEvent event, boolean doubleClick)
method_25402(class_11909 arg0, boolean arg1)
mouseClicked(Click arg0, boolean arg1)
public boolean
mouseDragged(MouseButtonEvent event, double dx, double dy)
method_25403(class_11909 arg0, double arg1, double arg2)
mouseDragged(Click arg0, double arg1, double arg2)
protected class_1_1961
getHoveredSlot()
method_64240()
getSlotAt()
protected boolean
hasClickedOutside(double mx, double my)
method_2381(double arg0, double arg1)
isClickOutsideBounds(double arg0, double arg1)
protected void
slotClicked(SlotWidget slotWidget, int slotId, int buttonNum, ContainerInput containerInput)
method_2383(class_1_1961 arg0, int arg1, int arg2, class_1713 arg3)
onSlotClick(class_1_1961 arg0, int arg1, int arg2, SlotActionType arg3)
public void
containerTick()
method_37432()
handledScreenTick()
public void
recipesUpdated()
method_16891()
refreshRecipeBook()
public void
fillGhostRecipe(RecipeDisplay display)
method_64862(class_10295 arg0)
onCraftFailed(RecipeDisplay arg0)
private void
lambda$initButton$0(Button arg0)
method_64513(class_4185 arg0)
method_64513(ButtonWidget button)