Class FirstTimeLuckyMillingRecipe

java.lang.Object
com.simibubi.create.content.processing.recipe.ProcessingRecipe<net.minecraftforge.items.wrapper.RecipeWrapper>
com.simibubi.create.content.kinetics.crusher.AbstractCrushingRecipe
com.simibubi.create.content.kinetics.millstone.MillingRecipe
com.petrolpark.recipe.advancedprocessing.firsttimelucky.FirstTimeLuckyMillingRecipe
All Implemented Interfaces:
IFirstTimeLuckyRecipe<com.simibubi.create.content.kinetics.millstone.MillingRecipe>, net.minecraft.world.item.crafting.Recipe<net.minecraftforge.items.wrapper.RecipeWrapper>

public class FirstTimeLuckyMillingRecipe extends com.simibubi.create.content.kinetics.millstone.MillingRecipe implements IFirstTimeLuckyRecipe<com.simibubi.create.content.kinetics.millstone.MillingRecipe>
Milling recipes which guarantee all chance outputs the first time they are done.
  • Field Summary

    Fields inherited from class com.simibubi.create.content.processing.recipe.ProcessingRecipe

    fluidIngredients, fluidResults, id, ingredients, processingDuration, requiredHeat, results
  • Constructor Summary

    Constructors
    Constructor
    Description
    FirstTimeLuckyMillingRecipe(com.simibubi.create.content.processing.recipe.ProcessingRecipeBuilder.ProcessingRecipeParams params)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.simibubi.create.content.kinetics.millstone.MillingRecipe
    Give a way for IFirstTimeLuckyRecipe to convert to the proper class for this Recipe.
    void
    setLuckyFirstTime(boolean lucky)
    Recipe-specific.
    boolean
    Recipe-specific.

    Methods inherited from class com.simibubi.create.content.kinetics.millstone.MillingRecipe

    getMaxOutputCount, matches

    Methods inherited from class com.simibubi.create.content.kinetics.crusher.AbstractCrushingRecipe

    canSpecifyDuration, getMaxInputCount

    Methods inherited from class com.simibubi.create.content.processing.recipe.ProcessingRecipe

    assemble, canCraftInDimensions, canRequireHeat, enforceNextResult, getFluidIngredients, getFluidResults, getGroup, getId, getIngredients, getMaxFluidInputCount, getMaxFluidOutputCount, getProcessingDuration, getRequiredHeat, getResultItem, getRollableResults, getRollableResultsAsItemStacks, getSerializer, getType, getTypeInfo, isSpecial, readAdditional, readAdditional, rollResults, rollResults, writeAdditional, writeAdditional

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface com.petrolpark.recipe.advancedprocessing.firsttimelucky.IFirstTimeLuckyRecipe

    rollLuckyResults

    Methods inherited from interface net.minecraft.world.item.crafting.Recipe

    getRemainingItems, getToastSymbol, isIncomplete, showNotification
  • Constructor Details

    • FirstTimeLuckyMillingRecipe

      public FirstTimeLuckyMillingRecipe(com.simibubi.create.content.processing.recipe.ProcessingRecipeBuilder.ProcessingRecipeParams params)
  • Method Details

    • getAsRecipe

      public com.simibubi.create.content.kinetics.millstone.MillingRecipe getAsRecipe()
      Description copied from interface: IFirstTimeLuckyRecipe
      Give a way for IFirstTimeLuckyRecipe to convert to the proper class for this Recipe.
      Specified by:
      getAsRecipe in interface IFirstTimeLuckyRecipe<com.simibubi.create.content.kinetics.millstone.MillingRecipe>
      Returns:
      Should almost always be just this
    • shouldBeLuckyFirstTime

      public boolean shouldBeLuckyFirstTime()
      Description copied from interface: IFirstTimeLuckyRecipe
      Recipe-specific. Should this recipe in particular guarantee chance rewards the first time?
      Specified by:
      shouldBeLuckyFirstTime in interface IFirstTimeLuckyRecipe<com.simibubi.create.content.kinetics.millstone.MillingRecipe>
    • setLuckyFirstTime

      public void setLuckyFirstTime(boolean lucky)
      Description copied from interface: IFirstTimeLuckyRecipe
      Recipe-specific. This is called by the recipe deserializer when it wants to mark this recipe as giving chance outputs the first time.
      Specified by:
      setLuckyFirstTime in interface IFirstTimeLuckyRecipe<com.simibubi.create.content.kinetics.millstone.MillingRecipe>