Package com.simibubi.create
Enum Class 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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface net.minecraft.util.StringRepresentable
net.minecraft.util.StringRepresentable.EnumCodec<E extends Enum<E> & net.minecraft.util.StringRepresentable>, net.minecraft.util.StringRepresentable.StringRepresentableCodec<S extends net.minecraft.util.StringRepresentable> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Predicate<net.minecraft.world.item.crafting.RecipeHolder<?>> static final com.mojang.serialization.Codec<AllRecipeTypes> final net.minecraft.resources.ResourceLocationfinal Supplier<net.minecraft.world.item.crafting.RecipeSerializer<?>> Fields inherited from interface net.minecraft.util.StringRepresentable
PRE_BUILT_MAP_THRESHOLD -
Method Summary
Modifier and TypeMethodDescription<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) net.minecraft.resources.ResourceLocationgetId()@NotNull String<T extends net.minecraft.world.item.crafting.RecipeSerializer<?>>
T<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()<T extends ProcessingRecipe<?>>
com.mojang.serialization.MapCodec<T> static voidregister(net.neoforged.bus.api.IEventBus modEventBus) static booleanshouldIgnoreInAutomation(net.minecraft.world.item.crafting.RecipeHolder<?> recipe) static AllRecipeTypesReturns the enum constant of this class with the specified name.static AllRecipeTypes[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONVERSION
-
CRUSHING
-
CUTTING
-
MILLING
-
BASIN
-
MIXING
-
COMPACTING
-
PRESSING
-
SANDPAPER_POLISHING
-
SPLASHING
-
HAUNTING
-
DEPLOYING
-
FILLING
-
EMPTYING
-
ITEM_APPLICATION
-
MECHANICAL_CRAFTING
-
SEQUENCED_ASSEMBLY
-
TOOLBOX_DYEING
-
ITEM_COPYING
-
-
Field Details
-
CAN_BE_AUTOMATED
-
id
public final net.minecraft.resources.ResourceLocation id -
serializerSupplier
-
CODEC
-
-
Method Details
-
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
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 nameNullPointerException- 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:
getIdin interfaceIRecipeTypeInfo
-
getSerializer
public <T extends net.minecraft.world.item.crafting.RecipeSerializer<?>> T getSerializer()- Specified by:
getSerializerin interfaceIRecipeTypeInfo
-
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:
getTypein interfaceIRecipeTypeInfo
-
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
- Specified by:
getSerializedNamein interfacenet.minecraft.util.StringRepresentable
-
processingCodec
-