Class DeployerRecipeSearchEvent
java.lang.Object
net.neoforged.bus.api.Event
com.simibubi.create.content.kinetics.deployer.DeployerRecipeSearchEvent
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
public class DeployerRecipeSearchEvent
extends net.neoforged.bus.api.Event
implements net.neoforged.bus.api.ICancellableEvent
-
Constructor Summary
ConstructorsConstructorDescriptionDeployerRecipeSearchEvent(DeployerBlockEntity blockEntity, net.neoforged.neoforge.items.wrapper.RecipeWrapper inventory) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRecipe(Supplier<Optional<? extends net.minecraft.world.item.crafting.RecipeHolder<? extends net.minecraft.world.item.crafting.Recipe<? extends net.minecraft.world.item.crafting.RecipeInput>>>> recipeSupplier, int priority) net.neoforged.neoforge.items.wrapper.RecipeWrapper@Nullable net.minecraft.world.item.crafting.RecipeHolder<? extends net.minecraft.world.item.crafting.Recipe<? extends net.minecraft.world.item.crafting.RecipeInput>> 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
-
DeployerRecipeSearchEvent
public DeployerRecipeSearchEvent(DeployerBlockEntity blockEntity, net.neoforged.neoforge.items.wrapper.RecipeWrapper inventory)
-
-
Method Details
-
getBlockEntity
-
getInventory
public net.neoforged.neoforge.items.wrapper.RecipeWrapper getInventory() -
shouldAddRecipeWithPriority
public boolean shouldAddRecipeWithPriority(int priority) -
getRecipe
@Nullable public @Nullable net.minecraft.world.item.crafting.RecipeHolder<? extends net.minecraft.world.item.crafting.Recipe<? extends net.minecraft.world.item.crafting.RecipeInput>> getRecipe() -
addRecipe
-