Package emi.dev.emi.emi.screen
Class EmiScreenManager
java.lang.Object
emi.dev.emi.emi.screen.EmiScreenManager
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic EmiIngredientstatic SizedButtonWidgetstatic intstatic intstatic EmiPlayerInventorystatic ItemStackstatic EmiIngredientstatic EmiSearchWidgetstatic SizedButtonWidget -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddWidgets(GuiScreen screen) static voiddrawBackground(EmiDrawContext context, int mouseX, int mouseY, float delta) static voiddrawForeground(EmiDrawContext context, int mouseX, int mouseY, float delta) static voidstatic voidfocusSidebarType(SidebarType type) static voidstatic booleangenericInteraction(Function<EmiBind, Boolean> function) static @Nullable EmiScreenManager.SidebarPanelgetHoveredPanel(int mouseX, int mouseY) static @Nullable EmiScreenManager.ScreenSpacegetHoveredSpace(int mouseX, int mouseY) static EmiStackInteractiongetHoveredStack(int mouseX, int mouseY, boolean notClick) static EmiStackInteractiongetHoveredStack(int mouseX, int mouseY, boolean notClick, boolean ignoreLastHoveredCraftable) static @Nullable EmiScreenManager.SidebarPanelgetPanelFor(SidebarSide side) static @Nullable EmiScreenManager.SidebarPanelgetPanelFor(SidebarType type) static List<? extends EmiIngredient>static booleanstatic booleanstatic booleankeyPressed(int keyCode, int scanCode, int modifiers) static booleanmouseClicked(double mouseX, double mouseY, int button) static booleanmouseDragged(double mouseX, double mouseY, int button, double deltaX, double deltaY) static booleanmouseReleased(double mouseX, double mouseY, int button) static booleanmouseScrolled(double mouseX, double mouseY, double amount) static voidstatic voidrender(EmiDrawContext context, int mouseX, int mouseY, float delta) static voidrepopulatePanels(SidebarType type) static booleanstackInteraction(EmiStackInteraction stack, Function<EmiBind, Boolean> function) static voidtoggleSidebarType(SidebarType type) static voidtoggleVisibility(boolean notify)
-
Field Details
-
lastStackTooltipRendered
-
lastPlayerInventory
-
lastMouseX
public static int lastMouseX -
lastMouseY
public static int lastMouseY -
pressedStack
-
draggedStack
-
search
-
emi
-
tree
-
-
Constructor Details
-
EmiScreenManager
public EmiScreenManager()
-
-
Method Details
-
isDisabled
public static boolean isDisabled() -
recalculate
public static void recalculate() -
forceRecalculate
public static void forceRecalculate() -
focusSearchSidebarType
-
focusSidebarType
-
getPanelFor
-
getPanelFor
-
getHoveredPanel
@Nullable public static @Nullable EmiScreenManager.SidebarPanel getHoveredPanel(int mouseX, int mouseY) -
getHoveredSpace
@Nullable public static @Nullable EmiScreenManager.ScreenSpace getHoveredSpace(int mouseX, int mouseY) -
hasSidebarAvailable
-
repopulatePanels
-
getSearchPanel
-
toggleSidebarType
-
getSearchSource
-
getHoveredStack
-
getHoveredStack
public static EmiStackInteraction getHoveredStack(int mouseX, int mouseY, boolean notClick, boolean ignoreLastHoveredCraftable) -
drawBackground
-
render
-
drawForeground
-
addWidgets
-
mouseScrolled
public static boolean mouseScrolled(double mouseX, double mouseY, double amount) -
mouseClicked
public static boolean mouseClicked(double mouseX, double mouseY, int button) -
mouseReleased
public static boolean mouseReleased(double mouseX, double mouseY, int button) -
mouseDragged
public static boolean mouseDragged(double mouseX, double mouseY, int button, double deltaX, double deltaY) -
keyPressed
public static boolean keyPressed(int keyCode, int scanCode, int modifiers) -
genericInteraction
-
stackInteraction
public static boolean stackInteraction(EmiStackInteraction stack, Function<EmiBind, Boolean> function) -
toggleVisibility
public static void toggleVisibility(boolean notify)
-