public interface IGhostIngredientHandler<T extends net.minecraft.client.gui.screen.Screen>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
IGhostIngredientHandler.Target<I> |
| Modifier and Type | Method and Description |
|---|---|
<I> java.util.List<IGhostIngredientHandler.Target<I>> |
getTargets(T gui,
I ingredient,
boolean doStart)
Called when a player wants to drag an ingredient on to your gui.
|
void |
onComplete()
Called when the player is done dragging an ingredient.
|
default boolean |
shouldHighlightTargets() |
<I> java.util.List<IGhostIngredientHandler.Target<I>> getTargets(T gui, I ingredient, boolean doStart)
void onComplete()
IGhostIngredientHandler.Target.accept(Object) was called before this.
Otherwise, the player failed to drag an ingredient to a IGhostIngredientHandler.Target.default boolean shouldHighlightTargets()