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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface mezz.jei.api.gui.handlers.IGhostIngredientHandler
mezz.jei.api.gui.handlers.IGhostIngredientHandler.Target<I> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractTeachingGuiHandler(@NotNull List<JobBasedRecipeCategory<?>> categories) -
Method Summary
Modifier and TypeMethodDescriptionprotected @Nullable JobBasedRecipeCategory<?> getRecipeCategory(@NotNull AbstractBuildingView view) <I> @NotNull List<mezz.jei.api.gui.handlers.IGhostIngredientHandler.Target<I>> getTargetsTyped(W gui, @NotNull mezz.jei.api.ingredients.ITypedIngredient<I> ingredient, boolean doStart) protected abstract booleanisSupportedCraftingModule(@NotNull CraftingModuleView moduleView) protected abstract booleanisSupportedSlot(@NotNull net.minecraft.world.inventory.Slot slot) voidvoidregister(@NotNull mezz.jei.api.registration.IGuiHandlerRegistration registration) protected abstract voidupdateServer(W gui) Methods 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, getGuiClickableAreas, getGuiExtraAreas
-
Constructor Details
-
AbstractTeachingGuiHandler
-
-
Method Details
-
register
public void register(@NotNull @NotNull mezz.jei.api.registration.IGuiHandlerRegistration registration) -
getWindowClass
-
isSupportedCraftingModule
protected abstract boolean isSupportedCraftingModule(@NotNull @NotNull CraftingModuleView moduleView) -
isSupportedSlot
protected abstract boolean isSupportedSlot(@NotNull @NotNull net.minecraft.world.inventory.Slot slot) -
updateServer
-
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:
getTargetsTypedin interfacemezz.jei.api.gui.handlers.IGhostIngredientHandler<W extends net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<?>>
-
onComplete
public void onComplete()- Specified by:
onCompletein interfacemezz.jei.api.gui.handlers.IGhostIngredientHandler<W extends net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<?>>
-