Class PressingRecipeSearchEvent
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
ConstructorsConstructorDescriptionPressingRecipeSearchEvent(com.simibubi.create.content.kinetics.press.MechanicalPressBlockEntity blockEntity, net.minecraft.world.item.ItemStack stack) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRecipe(Supplier<Optional<net.minecraft.world.item.crafting.RecipeHolder<com.simibubi.create.content.kinetics.press.PressingRecipe>>> recipeSupplier, int priority) com.simibubi.create.content.kinetics.press.MechanicalPressBlockEntitynet.minecraft.world.item.crafting.RecipeHolder<com.simibubi.create.content.kinetics.press.PressingRecipe> net.minecraft.world.item.ItemStackgetStack()booleanshouldAddRecipeWithPriority(int priority) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-