public class RecipesGui extends net.minecraft.client.gui.screen.Screen implements IRecipesGui, IShowsRecipeFocuses, IRecipeLogicStateListener
Constructor and Description |
---|
RecipesGui(IRecipeManager recipeManager,
RecipeTransferManager recipeTransferManager,
IngredientManager ingredientManager,
IModIdHelper modIdHelper,
IClientConfig clientConfig) |
Modifier and Type | Method and Description |
---|---|
void |
back() |
boolean |
canSetFocusWithMouse() |
net.minecraft.client.renderer.Rectangle2d |
getArea() |
java.lang.Object |
getIngredientUnderMouse() |
IClickedIngredient<?> |
getIngredientUnderMouse(double mouseX,
double mouseY) |
int |
getRecipeCatalystExtraWidth() |
void |
init(net.minecraft.client.Minecraft minecraft,
int width,
int height) |
boolean |
isMouseOver(double mouseX,
double mouseY) |
boolean |
isOpen() |
boolean |
isPauseScreen() |
boolean |
keyPressed(int keyCode,
int scanCode,
int modifiers) |
boolean |
mouseClicked(double mouseX,
double mouseY,
int mouseButton) |
boolean |
mouseScrolled(double scrollX,
double scrollY,
double scrollDelta) |
void |
onClose() |
void |
onStateChange() |
void |
render(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int mouseX,
int mouseY,
float partialTicks) |
<V> void |
show(IFocus<V> focus)
Show recipes for an
IFocus . |
void |
showCategories(java.util.List<net.minecraft.util.ResourceLocation> recipeCategoryUids)
Show entire categories of recipes.
|
addButton, addWidget, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isPaste, isSelectAll, isValidCharacterForName, onFilesDrop, removed, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderToolTip, renderWrappedToolTip, resize, sendMessage, sendMessage, shouldCloseOnEsc, tick, wrapScreenError
getFocused, isDragging, setDragging, setFocused
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public RecipesGui(IRecipeManager recipeManager, RecipeTransferManager recipeTransferManager, IngredientManager ingredientManager, IModIdHelper modIdHelper, IClientConfig clientConfig)
public net.minecraft.client.renderer.Rectangle2d getArea()
public int getRecipeCatalystExtraWidth()
public boolean isPauseScreen()
isPauseScreen
in class net.minecraft.client.gui.screen.Screen
public void init(net.minecraft.client.Minecraft minecraft, int width, int height)
init
in class net.minecraft.client.gui.screen.Screen
public void render(com.mojang.blaze3d.matrix.MatrixStack matrixStack, int mouseX, int mouseY, float partialTicks)
render
in interface net.minecraft.client.gui.IRenderable
render
in class net.minecraft.client.gui.screen.Screen
public boolean isMouseOver(double mouseX, double mouseY)
isMouseOver
in interface net.minecraft.client.gui.IGuiEventListener
isMouseOver
in class net.minecraft.client.gui.screen.Screen
@Nullable public IClickedIngredient<?> getIngredientUnderMouse(double mouseX, double mouseY)
getIngredientUnderMouse
in interface IShowsRecipeFocuses
public boolean canSetFocusWithMouse()
canSetFocusWithMouse
in interface IShowsRecipeFocuses
public boolean mouseScrolled(double scrollX, double scrollY, double scrollDelta)
mouseScrolled
in interface net.minecraft.client.gui.IGuiEventListener
mouseScrolled
in interface net.minecraft.client.gui.INestedGuiEventHandler
public boolean mouseClicked(double mouseX, double mouseY, int mouseButton)
mouseClicked
in interface net.minecraft.client.gui.IGuiEventListener
mouseClicked
in interface net.minecraft.client.gui.INestedGuiEventHandler
public boolean keyPressed(int keyCode, int scanCode, int modifiers)
keyPressed
in interface net.minecraft.client.gui.IGuiEventListener
keyPressed
in interface net.minecraft.client.gui.INestedGuiEventHandler
keyPressed
in class net.minecraft.client.gui.screen.Screen
public boolean isOpen()
public void onClose()
onClose
in class net.minecraft.client.gui.screen.Screen
public <V> void show(IFocus<V> focus)
IRecipesGui
IFocus
.
Opens the IRecipesGui
if it is closed.show
in interface IRecipesGui
IRecipeManager.createFocus(IFocus.Mode, Object)
public void showCategories(java.util.List<net.minecraft.util.ResourceLocation> recipeCategoryUids)
IRecipesGui
showCategories
in interface IRecipesGui
recipeCategoryUids
- a list of categories to display, in order. Must not be empty.@Nullable public java.lang.Object getIngredientUnderMouse()
getIngredientUnderMouse
in interface IRecipesGui
public void back()
public void onStateChange()
onStateChange
in interface IRecipeLogicStateListener