Class AmadronAddTradeGhost
java.lang.Object
me.desht.pneumaticcraft.common.thirdparty.jei.ghost.AmadronAddTradeGhost
- All Implemented Interfaces:
mezz.jei.api.gui.handlers.IGhostIngredientHandler<AmadronAddTradeScreen>
public class AmadronAddTradeGhost
extends Object
implements mezz.jei.api.gui.handlers.IGhostIngredientHandler<AmadronAddTradeScreen>
-
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(AmadronAddTradeScreen 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
-
AmadronAddTradeGhost
public AmadronAddTradeGhost()
-
-
Method Details
-
getTargets
public <I> List<mezz.jei.api.gui.handlers.IGhostIngredientHandler.Target<I>> getTargets(AmadronAddTradeScreen 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<AmadronAddTradeScreen>
-
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<AmadronAddTradeScreen>
-