Enum Class CreateRecipeTypes

java.lang.Object
java.lang.Enum<CreateRecipeTypes>
com.petrolpark.compat.create.CreateRecipeTypes
All Implemented Interfaces:
IPetrolparkRecipeTypes, com.simibubi.create.foundation.recipe.IRecipeTypeInfo, Serializable, Comparable<CreateRecipeTypes>, Constable

public enum CreateRecipeTypes extends Enum<CreateRecipeTypes> implements IPetrolparkRecipeTypes, com.simibubi.create.foundation.recipe.IRecipeTypeInfo
  • Enum Constant Details

    • FIRST_TIME_LUCKY_MILLING

      public static final CreateRecipeTypes FIRST_TIME_LUCKY_MILLING
  • Method Details

    • values

      public static CreateRecipeTypes[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CreateRecipeTypes valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getId

      public net.minecraft.resources.ResourceLocation getId()
      Specified by:
      getId in interface IPetrolparkRecipeTypes
      Specified by:
      getId in interface com.simibubi.create.foundation.recipe.IRecipeTypeInfo
    • getSerializer

      public <T extends net.minecraft.world.item.crafting.RecipeSerializer<?>> T getSerializer()
      Specified by:
      getSerializer in interface IPetrolparkRecipeTypes
      Specified by:
      getSerializer in interface com.simibubi.create.foundation.recipe.IRecipeTypeInfo
    • getType

      public <T extends net.minecraft.world.item.crafting.RecipeType<?>> T getType()
      Specified by:
      getType in interface IPetrolparkRecipeTypes
      Specified by:
      getType in interface com.simibubi.create.foundation.recipe.IRecipeTypeInfo
    • find

      public <C extends net.minecraft.world.Container, T extends net.minecraft.world.item.crafting.Recipe<C>> Optional<T> find(C inv, net.minecraft.world.level.Level world)