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
ConstructorsConstructorDescriptionDeployerRecipeSearchEvent(DeployerTileEntity tileEntity, net.minecraftforge.items.wrapper.RecipeWrapper inventory) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRecipe(Supplier<Optional<? extends net.minecraft.world.item.crafting.Recipe<? extends net.minecraft.world.Container>>> recipeSupplier, int priority) net.minecraftforge.items.wrapper.RecipeWrappernet.minecraft.world.item.crafting.Recipe<? extends net.minecraft.world.Container>booleanbooleanshouldAddRecipeWithPriority(int priority) Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCanceled, setCanceled, setPhase, setResult, setup
-
Constructor Details
-
DeployerRecipeSearchEvent
public DeployerRecipeSearchEvent(DeployerTileEntity tileEntity, net.minecraftforge.items.wrapper.RecipeWrapper inventory)
-
-
Method Details
-
isCancelable
public boolean isCancelable()- Overrides:
isCancelablein classnet.minecraftforge.eventbus.api.Event
-
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
-