Class AbstractTeachingGuiHandler<W extends net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<?>>

java.lang.Object
com.minecolonies.core.compatibility.jei.transfer.AbstractTeachingGuiHandler<W>
All Implemented Interfaces:
mezz.jei.api.gui.handlers.IGhostIngredientHandler<W>, mezz.jei.api.gui.handlers.IGuiContainerHandler<W>
Direct Known Subclasses:
BrewingCraftingGuiHandler, CraftingGuiHandler, FurnaceCraftingGuiHandler

public abstract class AbstractTeachingGuiHandler<W extends net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<?>> extends Object implements mezz.jei.api.gui.handlers.IGuiContainerHandler<W>, mezz.jei.api.gui.handlers.IGhostIngredientHandler<W>
Common base class for JEI teaching GUI extensions.
  • Constructor Details

  • Method Details

    • register

      public void register(@NotNull @NotNull mezz.jei.api.registration.IGuiHandlerRegistration registration)
    • getWindowClass

      @NotNull protected abstract @NotNull Class<W> getWindowClass()
    • isSupportedCraftingModule

      protected abstract boolean isSupportedCraftingModule(@NotNull @NotNull CraftingModuleView moduleView)
    • isSupportedSlot

      protected abstract boolean isSupportedSlot(@NotNull @NotNull net.minecraft.world.inventory.Slot slot)
    • updateServer

      protected abstract void updateServer(@NotNull W gui)
    • getRecipeCategory

      @Nullable protected @Nullable JobBasedRecipeCategory<?> getRecipeCategory(@NotNull @NotNull AbstractBuildingView view)
    • getTargetsTyped

      @NotNull public <I> @NotNull List<mezz.jei.api.gui.handlers.IGhostIngredientHandler.Target<I>> getTargetsTyped(@NotNull W gui, @NotNull @NotNull mezz.jei.api.ingredients.ITypedIngredient<I> ingredient, boolean doStart)
      Specified by:
      getTargetsTyped in interface mezz.jei.api.gui.handlers.IGhostIngredientHandler<W extends net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<?>>
    • onComplete

      public void onComplete()
      Specified by:
      onComplete in interface mezz.jei.api.gui.handlers.IGhostIngredientHandler<W extends net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<?>>