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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <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.
    void
    Called 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, wait

    Methods 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.IGhostIngredientHandler
      Called 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:
      getTargets in interface mezz.jei.api.gui.handlers.IGhostIngredientHandler<AmadronAddTradeScreen>
    • onComplete

      public void onComplete()
      Description copied from interface: mezz.jei.api.gui.handlers.IGhostIngredientHandler
      Called 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 a IGhostIngredientHandler.Target.
      Specified by:
      onComplete in interface mezz.jei.api.gui.handlers.IGhostIngredientHandler<AmadronAddTradeScreen>