Interface IFirstTimeLuckyRecipe<T extends com.simibubi.create.content.processing.recipe.ProcessingRecipe<?>>
- All Known Implementing Classes:
FirstTimeLuckyMillingRecipe
public interface IFirstTimeLuckyRecipe<T extends com.simibubi.create.content.processing.recipe.ProcessingRecipe<?>>
-
Method Summary
Modifier and TypeMethodDescriptionGive a way forIFirstTimeLuckyRecipeto convert to the proper class for this Recipe.default List<net.minecraft.world.item.ItemStack>rollLuckyResults(net.minecraft.world.entity.player.Player player) voidsetLuckyFirstTime(boolean lucky) Recipe-specific.booleanRecipe-specific.
-
Method Details
-
getAsRecipe
T getAsRecipe()Give a way forIFirstTimeLuckyRecipeto convert to the proper class for this Recipe.- Returns:
- Should almost always be just
this
-
shouldBeLuckyFirstTime
boolean shouldBeLuckyFirstTime()Recipe-specific. Should this recipe in particular guarantee chance rewards the first time? -
setLuckyFirstTime
void setLuckyFirstTime(boolean lucky) Recipe-specific. This is called by the recipe deserializer when it wants to mark this recipe as giving chance outputs the first time. -
rollLuckyResults
default List<net.minecraft.world.item.ItemStack> rollLuckyResults(net.minecraft.world.entity.player.Player player)
-