@ApiStatus.Internal public class RecipeViewingScreen extends net.minecraft.client.gui.screen.Screen implements RecipeScreen
| Modifier and Type | Class and Description |
|---|---|
static class |
RecipeViewingScreen.WorkstationSlotWidget |
| Modifier and Type | Field and Description |
|---|---|
int |
categoryPages |
static net.minecraft.util.ResourceLocation |
CHEST_GUI_TEXTURE |
boolean |
choosePageActivated |
int |
page |
RecipeChoosePageWidget |
recipeChoosePageWidget |
| Constructor and Description |
|---|
RecipeViewingScreen(java.util.Map<RecipeCategory<?>,java.util.List<RecipeDisplay>> categoriesMap,
@Nullable net.minecraft.util.ResourceLocation category) |
| Modifier and Type | Method and Description |
|---|---|
void |
addIngredientStackToNotice(EntryStack stack) |
void |
addResultStackToNotice(EntryStack stack) |
boolean |
charTyped(char char_1,
int int_1) |
me.shedaniel.math.Rectangle |
getBounds() |
int |
getCategoryPage() |
net.minecraft.util.ResourceLocation |
getCurrentCategory() |
java.util.List<RecipeDisplay> |
getCurrentDisplayed() |
net.minecraft.client.gui.IGuiEventListener |
getFocused() |
int |
getPage() |
RecipeCategory<RecipeDisplay> |
getSelectedCategory() |
int |
getTotalPages(RecipeCategory<RecipeDisplay> category) |
java.util.List<Widget> |
getWidgets() |
@Nullable Panel |
getWorkingStationsBaseWidget() |
void |
init() |
boolean |
isPauseScreen() |
boolean |
keyPressed(int keyCode,
int scanCode,
int modifiers) |
boolean |
keyReleased(int keyCode,
int scanCode,
int modifiers) |
boolean |
mouseClicked(double mouseX,
double mouseY,
int button) |
boolean |
mouseDragged(double double_1,
double double_2,
int int_1,
double double_3,
double double_4) |
boolean |
mouseReleased(double mouseX,
double mouseY,
int button) |
boolean |
mouseScrolled(double mouseX,
double mouseY,
double amount) |
void |
recalculateCategoryPage() |
void |
render(com.mojang.blaze3d.matrix.MatrixStack matrices,
int mouseX,
int mouseY,
float delta) |
addButton, addWidget, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, onClose, onFilesDrop, removed, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderToolTip, resize, sendMessage, sendMessage, shouldCloseOnEsc, tick, wrapScreenErrorisDragging, setDragging, setFocusedblit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, innerBlit, setBlitOffset, vLineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final net.minecraft.util.ResourceLocation CHEST_GUI_TEXTURE
public int page
public int categoryPages
public boolean choosePageActivated
public RecipeChoosePageWidget recipeChoosePageWidget
public RecipeViewingScreen(java.util.Map<RecipeCategory<?>,java.util.List<RecipeDisplay>> categoriesMap, @Nullable @Nullable net.minecraft.util.ResourceLocation category)
@ApiStatus.Internal public void addIngredientStackToNotice(EntryStack stack)
addIngredientStackToNotice in interface RecipeScreen@ApiStatus.Internal public void addResultStackToNotice(EntryStack stack)
addResultStackToNotice in interface RecipeScreenpublic net.minecraft.util.ResourceLocation getCurrentCategory()
getCurrentCategory in interface RecipeScreenpublic void recalculateCategoryPage()
recalculateCategoryPage in interface RecipeScreen@Nullable public @Nullable Panel getWorkingStationsBaseWidget()
public boolean keyPressed(int keyCode,
int scanCode,
int modifiers)
keyPressed in interface net.minecraft.client.gui.IGuiEventListenerkeyPressed in interface net.minecraft.client.gui.INestedGuiEventHandlerkeyPressed in class net.minecraft.client.gui.screen.Screenpublic boolean isPauseScreen()
isPauseScreen in class net.minecraft.client.gui.screen.Screenpublic void init()
init in class net.minecraft.client.gui.screen.Screenpublic java.util.List<Widget> getWidgets()
public java.util.List<RecipeDisplay> getCurrentDisplayed()
public RecipeCategory<RecipeDisplay> getSelectedCategory()
public int getPage()
public int getCategoryPage()
public void render(com.mojang.blaze3d.matrix.MatrixStack matrices,
int mouseX,
int mouseY,
float delta)
render in interface net.minecraft.client.gui.IRenderablerender in class net.minecraft.client.gui.screen.Screenpublic boolean keyReleased(int keyCode,
int scanCode,
int modifiers)
keyReleased in interface net.minecraft.client.gui.IGuiEventListenerkeyReleased in interface net.minecraft.client.gui.INestedGuiEventHandlerpublic int getTotalPages(RecipeCategory<RecipeDisplay> category)
public me.shedaniel.math.Rectangle getBounds()
public boolean charTyped(char char_1,
int int_1)
charTyped in interface net.minecraft.client.gui.IGuiEventListenercharTyped in interface net.minecraft.client.gui.INestedGuiEventHandlerpublic boolean mouseDragged(double double_1,
double double_2,
int int_1,
double double_3,
double double_4)
mouseDragged in interface net.minecraft.client.gui.IGuiEventListenermouseDragged in interface net.minecraft.client.gui.INestedGuiEventHandlerpublic boolean mouseReleased(double mouseX,
double mouseY,
int button)
mouseReleased in interface net.minecraft.client.gui.IGuiEventListenermouseReleased in interface net.minecraft.client.gui.INestedGuiEventHandlerpublic boolean mouseScrolled(double mouseX,
double mouseY,
double amount)
mouseScrolled in interface net.minecraft.client.gui.IGuiEventListenermouseScrolled in interface net.minecraft.client.gui.INestedGuiEventHandlerpublic boolean mouseClicked(double mouseX,
double mouseY,
int button)
mouseClicked in interface net.minecraft.client.gui.IGuiEventListenermouseClicked in interface net.minecraft.client.gui.INestedGuiEventHandlerpublic net.minecraft.client.gui.IGuiEventListener getFocused()
getFocused in interface net.minecraft.client.gui.INestedGuiEventHandlergetFocused in class net.minecraft.client.gui.FocusableGui