Class OverlayRecipeComponent
java.lang.Object
net.minecraft.client.gui.screens.recipebook.OverlayRecipeComponent
- All Implemented Interfaces:
GuiEventListener, Renderable, TabOrderedElement
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classclassprivate class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprivate RecipeCollectionprivate final booleanprivate booleanstatic final floatprivate @Nullable RecipeDisplayIdprivate static final intprivate static final intprivate static final Identifierprivate final @Nullable RecipeOverlayButtonCreatorNeo: Make it possible for modded recipe books to have custom recipe book overlays.private final List<OverlayRecipeComponent.OverlayRecipeButton> private final SlotSelectTimeprivate intprivate int -
Constructor Summary
ConstructorsConstructorDescriptionOverlayRecipeComponent(SlotSelectTime slotSelectTime, boolean isFurnaceMenu) OverlayRecipeComponent(SlotSelectTime slotSelectTime, boolean isFurnaceMenu, @Nullable RecipeOverlayButtonCreator overlayButtonCreator) -
Method Summary
Modifier and TypeMethodDescriptionvoidextractRenderState(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a) voidinit(RecipeCollection collection, ContextMap context, boolean isFiltering, int buttonX, int buttonY, int centerX, int centerY, float buttonWidth) booleanbooleanisMouseOver(double mouseX, double mouseY) booleanbooleanmouseClicked(MouseButtonEvent event, boolean doubleClick) voidsetFocused(boolean focused) voidsetVisible(boolean visible) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface GuiEventListener
capturesInput, charTyped, getBorderForArrowNavigation, getCurrentFocusPath, getRectangle, keyPressed, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled, nextFocusPath, preeditUpdated, shouldTakeFocusAfterInteractionMethods inherited from interface TabOrderedElement
getTabOrderGroup
-
Field Details
-
OVERLAY_RECIPE_SPRITE
-
MAX_ROW
private static final int MAX_ROW- See Also:
-
MAX_ROW_LARGE
private static final int MAX_ROW_LARGE- See Also:
-
ITEM_RENDER_SCALE
public static final float ITEM_RENDER_SCALE- See Also:
-
BUTTON_SIZE
public static final int BUTTON_SIZE- See Also:
-
recipeButtons
-
isVisible
private boolean isVisible -
x
private int x -
y
private int y -
collection
-
lastRecipeClicked
-
slotSelectTime
-
isFurnaceMenu
private final boolean isFurnaceMenu -
overlayButtonCreator
Neo: Make it possible for modded recipe books to have custom recipe book overlays.
-
-
Constructor Details
-
OverlayRecipeComponent
-
OverlayRecipeComponent
public OverlayRecipeComponent(SlotSelectTime slotSelectTime, boolean isFurnaceMenu, @Nullable RecipeOverlayButtonCreator overlayButtonCreator)
-
-
Method Details
-
init
public void init(RecipeCollection collection, ContextMap context, boolean isFiltering, int buttonX, int buttonY, int centerX, int centerY, float buttonWidth) -
getRecipeCollection
-
getLastRecipeClicked
-
mouseClicked
- Specified by:
mouseClickedin interfaceGuiEventListener
-
isMouseOver
public boolean isMouseOver(double mouseX, double mouseY) - Specified by:
isMouseOverin interfaceGuiEventListener
-
extractRenderState
- Specified by:
extractRenderStatein interfaceRenderable
-
setVisible
public void setVisible(boolean visible) -
isVisible
public boolean isVisible() -
setFocused
public void setFocused(boolean focused) - Specified by:
setFocusedin interfaceGuiEventListener
-
isFocused
public boolean isFocused()- Specified by:
isFocusedin interfaceGuiEventListener
-