Package net.minecraft
Class class_8062
java.lang.Object
net.minecraft.class_8062
- All Implemented Interfaces:
class_8059
,Recipe<Inventory>
- Mappings:
Namespace Name official cij
intermediary net/minecraft/class_8062
named net/minecraft/class_8062
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Identifier
(package private) final Ingredient
(package private) final Ingredient
(package private) final Ingredient
-
Constructor Summary
ConstructorsConstructorDescriptionclass_8062
(Identifier identifier, Ingredient ingredient, Ingredient ingredient2, Ingredient ingredient3) -
Method Summary
Modifier and TypeMethodDescriptioncraft
(Inventory inventory, DynamicRegistryManager dynamicRegistryManager) Crafts this recipe.getId()
Returns the ID of this recipe.getOutput
(DynamicRegistryManager dynamicRegistryManager) Returns a preview of the recipe's output.Returns the serializer associated with this recipe.boolean
isEmpty()
Returns whether this recipe has no ingredient or has any empty ingredient.boolean
Returns whether this recipe matches the contents inside theinventory
in the givenworld
.boolean
method_48453
(ItemStack itemStack) boolean
method_48454
(ItemStack itemStack) private boolean
method_48458
(ItemStack itemStack, class_8054 class_8054) boolean
testAddition
(ItemStack itemStack) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.class_8059
createIcon, fits, getType
Methods inherited from interface net.minecraft.recipe.Recipe
getGroup, getIngredients, getRemainder, isIgnoredInRecipeBook
-
Field Details
-
field_42034
- Mappings:
Namespace Name Mixin selector official a
Lcij;a:Lacs;
intermediary field_42034
Lnet/minecraft/class_8062;field_42034:Lnet/minecraft/class_2960;
named field_42034
Lnet/minecraft/class_8062;field_42034:Lnet/minecraft/util/Identifier;
-
field_42035
- Mappings:
Namespace Name Mixin selector official b
Lcij;b:Lchq;
intermediary field_42035
Lnet/minecraft/class_8062;field_42035:Lnet/minecraft/class_1856;
named field_42035
Lnet/minecraft/class_8062;field_42035:Lnet/minecraft/recipe/Ingredient;
-
field_42036
- Mappings:
Namespace Name Mixin selector official c
Lcij;c:Lchq;
intermediary field_42036
Lnet/minecraft/class_8062;field_42036:Lnet/minecraft/class_1856;
named field_42036
Lnet/minecraft/class_8062;field_42036:Lnet/minecraft/recipe/Ingredient;
-
field_42037
- Mappings:
Namespace Name Mixin selector official d
Lcij;d:Lchq;
intermediary field_42037
Lnet/minecraft/class_8062;field_42037:Lnet/minecraft/class_1856;
named field_42037
Lnet/minecraft/class_8062;field_42037:Lnet/minecraft/recipe/Ingredient;
-
-
Constructor Details
-
class_8062
public class_8062(Identifier identifier, Ingredient ingredient, Ingredient ingredient2, Ingredient ingredient3)
-
-
Method Details
-
matches
Returns whether this recipe matches the contents inside theinventory
in the givenworld
.The
world
currently is only used by the map cloning recipe to prevent duplication of explorer maps.- Specified by:
matches
in interfaceRecipe<Inventory>
- Parameters:
inventory
- the input inventoryworld
- the input world- Returns:
- whether this recipe matches the contents inside the
inventory
in the givenworld
- Mappings:
Namespace Name Mixin selector official a
Lchu;a(Lbcz;Lcle;)Z
intermediary method_8115
Lnet/minecraft/class_1860;method_8115(Lnet/minecraft/class_1263;Lnet/minecraft/class_1937;)Z
named matches
Lnet/minecraft/recipe/Recipe;matches(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/world/World;)Z
-
craft
Crafts this recipe.This method does not perform side effects on the
inventory
.This method should return a new item stack on each call.
- Specified by:
craft
in interfaceRecipe<Inventory>
- Parameters:
inventory
- the input inventory- Returns:
- the resulting item stack
- Mappings:
Namespace Name Mixin selector official a
Lchu;a(Lbcz;Lhn;)Lcer;
intermediary method_8116
Lnet/minecraft/class_1860;method_8116(Lnet/minecraft/class_1263;Lnet/minecraft/class_5455;)Lnet/minecraft/class_1799;
named craft
Lnet/minecraft/recipe/Recipe;craft(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/registry/DynamicRegistryManager;)Lnet/minecraft/item/ItemStack;
-
getOutput
Returns a preview of the recipe's output.The returned stack should not be modified. To obtain the actual output, call
invalid @link
#craft(Inventory)
- Specified by:
getOutput
in interfaceRecipe<Inventory>
- Returns:
- a preview of the recipe's output
- Mappings:
Namespace Name Mixin selector official a
Lchu;a(Lhn;)Lcer;
intermediary method_8110
Lnet/minecraft/class_1860;method_8110(Lnet/minecraft/class_5455;)Lnet/minecraft/class_1799;
named getOutput
Lnet/minecraft/recipe/Recipe;getOutput(Lnet/minecraft/registry/DynamicRegistryManager;)Lnet/minecraft/item/ItemStack;
-
method_48458
- Mappings:
Namespace Name Mixin selector official a
Lcij;a(Lcer;Lcgu;)Z
intermediary method_48458
Lnet/minecraft/class_8062;method_48458(Lnet/minecraft/class_1799;Lnet/minecraft/class_8054;)Z
named method_48458
Lnet/minecraft/class_8062;method_48458(Lnet/minecraft/item/ItemStack;Lnet/minecraft/class_8054;)Z
-
method_48453
- Specified by:
method_48453
in interfaceclass_8059
- Mappings:
Namespace Name Mixin selector official a
Lcih;a(Lcer;)Z
intermediary method_48453
Lnet/minecraft/class_8059;method_48453(Lnet/minecraft/class_1799;)Z
named method_48453
Lnet/minecraft/class_8059;method_48453(Lnet/minecraft/item/ItemStack;)Z
-
method_48454
- Specified by:
method_48454
in interfaceclass_8059
- Mappings:
Namespace Name Mixin selector official b
Lcih;b(Lcer;)Z
intermediary method_48454
Lnet/minecraft/class_8059;method_48454(Lnet/minecraft/class_1799;)Z
named method_48454
Lnet/minecraft/class_8059;method_48454(Lnet/minecraft/item/ItemStack;)Z
-
testAddition
- Specified by:
testAddition
in interfaceclass_8059
- Mappings:
Namespace Name Mixin selector official c
Lcih;c(Lcer;)Z
intermediary method_30029
Lnet/minecraft/class_8059;method_30029(Lnet/minecraft/class_1799;)Z
named testAddition
Lnet/minecraft/class_8059;testAddition(Lnet/minecraft/item/ItemStack;)Z
-
getId
Returns the ID of this recipe.- Specified by:
getId
in interfaceRecipe<Inventory>
- Returns:
- the ID of this recipe
- Mappings:
Namespace Name Mixin selector official e
Lchu;e()Lacs;
intermediary method_8114
Lnet/minecraft/class_1860;method_8114()Lnet/minecraft/class_2960;
named getId
Lnet/minecraft/recipe/Recipe;getId()Lnet/minecraft/util/Identifier;
-
getSerializer
Returns the serializer associated with this recipe.- Specified by:
getSerializer
in interfaceRecipe<Inventory>
- Returns:
- the serializer associated with this recipe
- Mappings:
Namespace Name Mixin selector official Z_
Lchu;Z_()Lchw;
intermediary method_8119
Lnet/minecraft/class_1860;method_8119()Lnet/minecraft/class_1865;
named getSerializer
Lnet/minecraft/recipe/Recipe;getSerializer()Lnet/minecraft/recipe/RecipeSerializer;
-
isEmpty
public boolean isEmpty()Returns whether this recipe has no ingredient or has any empty ingredient. The recipe book uses this to ignore recipes for display.- Specified by:
isEmpty
in interfaceRecipe<Inventory>
- Returns:
- whether this recipe has no ingredient or has any empty ingredient
- Mappings:
Namespace Name Mixin selector official aa_
Lchu;aa_()Z
intermediary method_31584
Lnet/minecraft/class_1860;method_31584()Z
named isEmpty
Lnet/minecraft/recipe/Recipe;isEmpty()Z
-