Class CraftingGuiHandler
java.lang.Object
com.minecolonies.core.compatibility.jei.transfer.AbstractTeachingGuiHandler<WindowCrafting>
com.minecolonies.core.compatibility.jei.transfer.CraftingGuiHandler
- All Implemented Interfaces:
mezz.jei.api.gui.handlers.IGhostIngredientHandler<WindowCrafting>,mezz.jei.api.gui.handlers.IGuiContainerHandler<WindowCrafting>
Implements a "show recipes" button on the crafting teaching window, and allows you to drag
individual ingredients directly from JEI to the teaching grid without using cheat mode.
-
Nested Class Summary
Nested classes/interfaces inherited from interface mezz.jei.api.gui.handlers.IGhostIngredientHandler
mezz.jei.api.gui.handlers.IGhostIngredientHandler.Target<I extends Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull Collection<mezz.jei.api.gui.handlers.IGuiClickableArea>getGuiClickableAreas(@NotNull WindowCrafting containerScreen, double mouseX, double mouseY) protected @NotNull Class<WindowCrafting>protected booleanisSupportedCraftingModule(@NotNull CraftingModuleView moduleView) protected booleanisSupportedSlot(@NotNull net.minecraft.world.inventory.Slot slot) protected voidupdateServer(@NotNull WindowCrafting gui) Methods inherited from class com.minecolonies.core.compatibility.jei.transfer.AbstractTeachingGuiHandler
getRecipeCategory, getTargetsTyped, onComplete, registerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface mezz.jei.api.gui.handlers.IGhostIngredientHandler
shouldHighlightTargetsMethods inherited from interface mezz.jei.api.gui.handlers.IGuiContainerHandler
getClickableIngredientUnderMouse, getGuiExtraAreas
-
Constructor Details
-
CraftingGuiHandler
-
-
Method Details
-
getWindowClass
- Specified by:
getWindowClassin classAbstractTeachingGuiHandler<WindowCrafting>
-
getGuiClickableAreas
@NotNull public @NotNull Collection<mezz.jei.api.gui.handlers.IGuiClickableArea> getGuiClickableAreas(@NotNull @NotNull WindowCrafting containerScreen, double mouseX, double mouseY) -
isSupportedCraftingModule
- Specified by:
isSupportedCraftingModulein classAbstractTeachingGuiHandler<WindowCrafting>
-
isSupportedSlot
protected boolean isSupportedSlot(@NotNull @NotNull net.minecraft.world.inventory.Slot slot) - Specified by:
isSupportedSlotin classAbstractTeachingGuiHandler<WindowCrafting>
-
updateServer
- Specified by:
updateServerin classAbstractTeachingGuiHandler<WindowCrafting>
-