Class DeployerRecipeSearchEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.simibubi.create.content.contraptions.components.deployer.DeployerRecipeSearchEvent

public class DeployerRecipeSearchEvent extends net.minecraftforge.eventbus.api.Event
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event

    net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    DeployerRecipeSearchEvent(DeployerTileEntity tileEntity, net.minecraftforge.items.wrapper.RecipeWrapper inventory)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addRecipe(Supplier<Optional<? extends net.minecraft.world.item.crafting.Recipe<? extends net.minecraft.world.Container>>> recipeSupplier, int priority)
     
    net.minecraftforge.items.wrapper.RecipeWrapper
     
    net.minecraft.world.item.crafting.Recipe<? extends net.minecraft.world.Container>
     
     
    boolean
     
    boolean
     

    Methods inherited from class net.minecraftforge.eventbus.api.Event

    getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCanceled, setCanceled, setPhase, setResult, setup

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DeployerRecipeSearchEvent

      public DeployerRecipeSearchEvent(DeployerTileEntity tileEntity, net.minecraftforge.items.wrapper.RecipeWrapper inventory)
  • Method Details

    • isCancelable

      public boolean isCancelable()
      Overrides:
      isCancelable in class net.minecraftforge.eventbus.api.Event
    • getTileEntity

      public DeployerTileEntity getTileEntity()
    • getInventory

      public net.minecraftforge.items.wrapper.RecipeWrapper getInventory()
    • shouldAddRecipeWithPriority

      public boolean shouldAddRecipeWithPriority(int priority)
    • getRecipe

      @Nullable public net.minecraft.world.item.crafting.Recipe<? extends net.minecraft.world.Container> getRecipe()
    • addRecipe

      public void addRecipe(Supplier<Optional<? extends net.minecraft.world.item.crafting.Recipe<? extends net.minecraft.world.Container>>> recipeSupplier, int priority)