Package net.minecraft.recipe
Interface RecipeType<T extends Recipe<?>>
- Type Parameters:
T- the common supertype of recipes within a recipe type
public interface RecipeType<T extends Recipe<?>>
The recipe type allows matching recipes more efficiently by only checking
recipes under a given type.
- Mappings:
Namespace Name official bxrintermediary net/minecraft/class_3956named net/minecraft/recipe/RecipeType
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RecipeType<BlastingRecipe>static final RecipeType<CampfireCookingRecipe>static final RecipeType<CraftingRecipe>static final RecipeType<SmeltingRecipe>static final RecipeType<SmithingRecipe>static final RecipeType<SmokingRecipe>static final RecipeType<StonecuttingRecipe> -
Method Summary
-
Field Details
-
CRAFTING
- Mappings:
Namespace Name Mixin selector official aLbxr;a:Lbxr;intermediary field_17545Lnet/minecraft/class_3956;field_17545:Lnet/minecraft/class_3956;named CRAFTINGLnet/minecraft/recipe/RecipeType;CRAFTING:Lnet/minecraft/recipe/RecipeType;
-
SMELTING
- Mappings:
Namespace Name Mixin selector official bLbxr;b:Lbxr;intermediary field_17546Lnet/minecraft/class_3956;field_17546:Lnet/minecraft/class_3956;named SMELTINGLnet/minecraft/recipe/RecipeType;SMELTING:Lnet/minecraft/recipe/RecipeType;
-
BLASTING
- Mappings:
Namespace Name Mixin selector official cLbxr;c:Lbxr;intermediary field_17547Lnet/minecraft/class_3956;field_17547:Lnet/minecraft/class_3956;named BLASTINGLnet/minecraft/recipe/RecipeType;BLASTING:Lnet/minecraft/recipe/RecipeType;
-
SMOKING
- Mappings:
Namespace Name Mixin selector official dLbxr;d:Lbxr;intermediary field_17548Lnet/minecraft/class_3956;field_17548:Lnet/minecraft/class_3956;named SMOKINGLnet/minecraft/recipe/RecipeType;SMOKING:Lnet/minecraft/recipe/RecipeType;
-
CAMPFIRE_COOKING
- Mappings:
Namespace Name Mixin selector official eLbxr;e:Lbxr;intermediary field_17549Lnet/minecraft/class_3956;field_17549:Lnet/minecraft/class_3956;named CAMPFIRE_COOKINGLnet/minecraft/recipe/RecipeType;CAMPFIRE_COOKING:Lnet/minecraft/recipe/RecipeType;
-
STONECUTTING
- Mappings:
Namespace Name Mixin selector official fLbxr;f:Lbxr;intermediary field_17641Lnet/minecraft/class_3956;field_17641:Lnet/minecraft/class_3956;named STONECUTTINGLnet/minecraft/recipe/RecipeType;STONECUTTING:Lnet/minecraft/recipe/RecipeType;
-
SMITHING
- Mappings:
Namespace Name Mixin selector official gLbxr;g:Lbxr;intermediary field_25388Lnet/minecraft/class_3956;field_25388:Lnet/minecraft/class_3956;named SMITHINGLnet/minecraft/recipe/RecipeType;SMITHING:Lnet/minecraft/recipe/RecipeType;
-
-
Method Details
-
register
- Mappings:
Namespace Name Mixin selector official aLbxr;a(Ljava/lang/String;)Lbxr;intermediary method_17726Lnet/minecraft/class_3956;method_17726(Ljava/lang/String;)Lnet/minecraft/class_3956;named registerLnet/minecraft/recipe/RecipeType;register(Ljava/lang/String;)Lnet/minecraft/recipe/RecipeType;
-
match
Returns the givenrecipeif it matches, otherwise empty.This utility method casts the
recipefromRecipe<C>toTconveniently.- Parameters:
recipe- the recipe to match and castworld- the input worldinventory- the input inventory- Returns:
- the given
recipeif it matches, otherwise empty - Mappings:
Namespace Name Mixin selector official aLbxr;a(Lbxo;Lcav;Lawa;)Ljava/util/Optional;intermediary method_17725Lnet/minecraft/class_3956;method_17725(Lnet/minecraft/class_1860;Lnet/minecraft/class_1937;Lnet/minecraft/class_1263;)Ljava/util/Optional;named matchLnet/minecraft/recipe/RecipeType;match(Lnet/minecraft/recipe/Recipe;Lnet/minecraft/world/World;Lnet/minecraft/inventory/Inventory;)Ljava/util/Optional;
-