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, 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
render(GuiGraphics graphics, int mouseX, int mouseY, float a)
method_25394(class_332 arg0, int arg1, int arg2, float arg3)
render(DrawContext arg0, int arg1, int arg2, float arg3)
protected void
renderSlots(GuiGraphics graphics, int mouseX, int mouseY)
method_64508(class_332 arg0, int arg1, int arg2)
drawSlots(DrawContext arg0, int arg1, int arg2)
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
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 boolean
isHovering(int left, int top, int w, int h, double xm, double ym)
method_2378(int arg0, int arg1, int arg2, int arg3, double arg4, double arg5)
isPointWithinBounds(int arg0, int arg1, int arg2, int arg3, double arg4, double arg5)
protected boolean
hasClickedOutside(double mx, double my, int xo, int yo)
method_2381(double arg0, double arg1, int arg2, int arg3)
isClickOutsideBounds(double arg0, double arg1, int arg2, int arg3)
protected void
slotClicked(Slot slot, int slotId, int buttonNum, ClickType clickType)
method_2383(class_1735 arg0, int arg1, int arg2, class_1713 arg3)
onMouseClick(Slot 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)