java.lang.Object
net.neoforged.bus.api.Event
petrolpark.mc.library.compat.create.core.world.block.entity.press.PressingRecipeSearchEvent
All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent

public class PressingRecipeSearchEvent extends net.neoforged.bus.api.Event implements net.neoforged.bus.api.ICancellableEvent
  • Constructor Summary

    Constructors
    Constructor
    Description
    PressingRecipeSearchEvent(com.simibubi.create.content.kinetics.press.MechanicalPressBlockEntity blockEntity, net.minecraft.world.item.ItemStack stack)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addRecipe(Supplier<Optional<net.minecraft.world.item.crafting.RecipeHolder<com.simibubi.create.content.kinetics.press.PressingRecipe>>> recipeSupplier, int priority)
     
    com.simibubi.create.content.kinetics.press.MechanicalPressBlockEntity
     
    net.minecraft.world.item.crafting.RecipeHolder<com.simibubi.create.content.kinetics.press.PressingRecipe>
     
    net.minecraft.world.item.ItemStack
     
    boolean
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.neoforged.bus.api.ICancellableEvent

    isCanceled, setCanceled
  • Constructor Details

    • PressingRecipeSearchEvent

      public PressingRecipeSearchEvent(com.simibubi.create.content.kinetics.press.MechanicalPressBlockEntity blockEntity, net.minecraft.world.item.ItemStack stack)
  • Method Details

    • getBlockEntity

      public com.simibubi.create.content.kinetics.press.MechanicalPressBlockEntity getBlockEntity()
    • getStack

      public net.minecraft.world.item.ItemStack getStack()
    • shouldAddRecipeWithPriority

      public boolean shouldAddRecipeWithPriority(int priority)
    • getRecipe

      @Nullable public net.minecraft.world.item.crafting.RecipeHolder<com.simibubi.create.content.kinetics.press.PressingRecipe> getRecipe()
    • addRecipe

      public void addRecipe(Supplier<Optional<net.minecraft.world.item.crafting.RecipeHolder<com.simibubi.create.content.kinetics.press.PressingRecipe>>> recipeSupplier, int priority)