Enum Class AllRecipeTypes

java.lang.Object
java.lang.Enum<AllRecipeTypes>
com.simibubi.create.AllRecipeTypes
All Implemented Interfaces:
IRecipeTypeInfo, Serializable, Comparable<AllRecipeTypes>, Constable, net.minecraft.util.StringRepresentable

public enum AllRecipeTypes extends Enum<AllRecipeTypes> implements IRecipeTypeInfo, net.minecraft.util.StringRepresentable
  • Enum Constant Details

  • Field Details

    • CAN_BE_AUTOMATED

      public static final Predicate<net.minecraft.world.item.crafting.RecipeHolder<?>> CAN_BE_AUTOMATED
    • id

      public final net.minecraft.resources.ResourceLocation id
    • serializerSupplier

      public final Supplier<net.minecraft.world.item.crafting.RecipeSerializer<?>> serializerSupplier
    • CODEC

      public static final com.mojang.serialization.Codec<AllRecipeTypes> CODEC
  • Method Details

    • values

      public static AllRecipeTypes[] 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 AllRecipeTypes 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
    • register

      @Internal public static void register(net.neoforged.bus.api.IEventBus modEventBus)
    • getId

      public net.minecraft.resources.ResourceLocation getId()
      Specified by:
      getId in interface IRecipeTypeInfo
    • getSerializer

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

      public <I extends net.minecraft.world.item.crafting.RecipeInput, R extends net.minecraft.world.item.crafting.Recipe<I>> net.minecraft.world.item.crafting.RecipeType<R> getType()
      Specified by:
      getType in interface IRecipeTypeInfo
    • find

      public <I extends net.minecraft.world.item.crafting.RecipeInput, R extends net.minecraft.world.item.crafting.Recipe<I>> Optional<net.minecraft.world.item.crafting.RecipeHolder<R>> find(I inv, net.minecraft.world.level.Level world)
    • shouldIgnoreInAutomation

      public static boolean shouldIgnoreInAutomation(net.minecraft.world.item.crafting.RecipeHolder<?> recipe)
    • getSerializedName

      @NotNull public @NotNull String getSerializedName()
      Specified by:
      getSerializedName in interface net.minecraft.util.StringRepresentable