Class LogisticsFilterGhost<T extends AbstractLogisticsFrameEntity>
java.lang.Object
me.desht.pneumaticcraft.common.thirdparty.jei.ghost.LogisticsFilterGhost<T>
- All Implemented Interfaces:
mezz.jei.api.gui.handlers.IGhostIngredientHandler<AbstractLogisticsScreen<T>>
public class LogisticsFilterGhost<T extends AbstractLogisticsFrameEntity>
extends Object
implements mezz.jei.api.gui.handlers.IGhostIngredientHandler<AbstractLogisticsScreen<T>>
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescription<I> List<mezz.jei.api.gui.handlers.IGhostIngredientHandler.Target<I>>getTargets(AbstractLogisticsScreen<T> gui, I ingredient, boolean doStart) Called when a player wants to drag an ingredient on to your gui.voidCalled when the player is done dragging an ingredient.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
shouldHighlightTargets
-
Constructor Details
-
LogisticsFilterGhost
public LogisticsFilterGhost()
-
-
Method Details
-
getTargets
public <I> List<mezz.jei.api.gui.handlers.IGhostIngredientHandler.Target<I>> getTargets(AbstractLogisticsScreen<T> gui, I ingredient, boolean doStart) Description copied from interface:mezz.jei.api.gui.handlers.IGhostIngredientHandlerCalled when a player wants to drag an ingredient on to your gui. Return the targets that can accept the ingredient. This is called when a player hovers over an ingredient with doStart=false, and called again when they pick up the ingredient with doStart=true.- Specified by:
getTargetsin interfacemezz.jei.api.gui.handlers.IGhostIngredientHandler<T extends AbstractLogisticsFrameEntity>
-
onComplete
public void onComplete()Description copied from interface:mezz.jei.api.gui.handlers.IGhostIngredientHandlerCalled when the player is done dragging an ingredient. If the drag succeeded,IGhostIngredientHandler.Target.accept(Object)was called before this. Otherwise, the player failed to drag an ingredient to aIGhostIngredientHandler.Target.- Specified by:
onCompletein interfacemezz.jei.api.gui.handlers.IGhostIngredientHandler<T extends AbstractLogisticsFrameEntity>
-