Package net.minecraft.recipe
Class PotatoRefinementRecipe
java.lang.Object
net.minecraft.recipe.PotatoRefinementRecipe
- Mappings:
Namespace Name official cyzintermediary net/minecraft/class_9542named net/minecraft/recipe/PotatoRefinementRecipe
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final Ingredientprivate final CookingRecipeCategory(package private) final floatprivate final String(package private) final Ingredientprotected final int(package private) final ItemStackprivate final RecipeType<?> Fields inherited from interface net.minecraft.recipe.Recipe
CODEC, PACKET_CODEC -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePotatoRefinementRecipe(String string, CookingRecipeCategory category, Ingredient ingredient, Ingredient bottleIngredient, ItemStack result, float experience, int refinementTime) PotatoRefinementRecipe(Ingredient ingredient, Ingredient bottleIngredient, ItemStack result, float experience, int refinementTime) -
Method Summary
Modifier and TypeMethodDescriptioncraft(Inventory inventory, RegistryWrapper.WrapperLookup lookup) Crafts this recipe.Returns an item rendered on the top left of the output preview on the recipe toast when a new recipe is unlocked.booleanfits(int width, int height) Returns whether this recipe will fit into the given grid size.intgetResult(RegistryWrapper.WrapperLookup registriesLookup) Returns a preview of the recipe's output.Returns the serializer associated with this recipe.RecipeType<?> getType()Returns the type of this recipe.booleanReturns whether this recipe matches the contents inside theinventoryin the givenworld.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.recipe.Recipe
getGroup, getIngredients, getRemainder, isEmpty, isIgnoredInRecipeBook, showNotification
-
Field Details
-
TYPE
- Mappings:
Namespace Name Mixin selector official bLcyz;b:Lczf;intermediary field_50719Lnet/minecraft/class_9542;field_50719:Lnet/minecraft/class_3956;named TYPELnet/minecraft/recipe/PotatoRefinementRecipe;TYPE:Lnet/minecraft/recipe/RecipeType;
-
field_50720
- Mappings:
Namespace Name Mixin selector official cLcyz;c:Ljava/lang/String;intermediary field_50720Lnet/minecraft/class_9542;field_50720:Ljava/lang/String;named field_50720Lnet/minecraft/recipe/PotatoRefinementRecipe;field_50720:Ljava/lang/String;
-
category
- Mappings:
Namespace Name Mixin selector official dLcyz;d:Lcyn;intermediary field_50721Lnet/minecraft/class_9542;field_50721:Lnet/minecraft/class_7709;named categoryLnet/minecraft/recipe/PotatoRefinementRecipe;category:Lnet/minecraft/recipe/book/CookingRecipeCategory;
-
ingredient
- Mappings:
Namespace Name Mixin selector official eLcyz;e:Lcyv;intermediary field_50722Lnet/minecraft/class_9542;field_50722:Lnet/minecraft/class_1856;named ingredientLnet/minecraft/recipe/PotatoRefinementRecipe;ingredient:Lnet/minecraft/recipe/Ingredient;
-
bottleIngredient
- Mappings:
Namespace Name Mixin selector official fLcyz;f:Lcyv;intermediary field_50723Lnet/minecraft/class_9542;field_50723:Lnet/minecraft/class_1856;named bottleIngredientLnet/minecraft/recipe/PotatoRefinementRecipe;bottleIngredient:Lnet/minecraft/recipe/Ingredient;
-
result
- Mappings:
Namespace Name Mixin selector official gLcyz;g:Lcuh;intermediary field_50724Lnet/minecraft/class_9542;field_50724:Lnet/minecraft/class_1799;named resultLnet/minecraft/recipe/PotatoRefinementRecipe;result:Lnet/minecraft/item/ItemStack;
-
experience
final float experience- Mappings:
Namespace Name Mixin selector official jLcyz;j:Fintermediary field_50725Lnet/minecraft/class_9542;field_50725:Fnamed experienceLnet/minecraft/recipe/PotatoRefinementRecipe;experience:F
-
refinementTime
protected final int refinementTime- Mappings:
Namespace Name Mixin selector official aLcyz;a:Iintermediary field_50718Lnet/minecraft/class_9542;field_50718:Inamed refinementTimeLnet/minecraft/recipe/PotatoRefinementRecipe;refinementTime:I
-
-
Constructor Details
-
PotatoRefinementRecipe
public PotatoRefinementRecipe(Ingredient ingredient, Ingredient bottleIngredient, ItemStack result, float experience, int refinementTime) - Mappings:
Namespace Name Mixin selector official <init>Lcyz;<init>(Lcyv;Lcyv;Lcuh;FI)Vintermediary <init>Lnet/minecraft/class_9542;<init>(Lnet/minecraft/class_1856;Lnet/minecraft/class_1856;Lnet/minecraft/class_1799;FI)Vnamed <init>Lnet/minecraft/recipe/PotatoRefinementRecipe;<init>(Lnet/minecraft/recipe/Ingredient;Lnet/minecraft/recipe/Ingredient;Lnet/minecraft/item/ItemStack;FI)V
-
PotatoRefinementRecipe
private PotatoRefinementRecipe(String string, CookingRecipeCategory category, Ingredient ingredient, Ingredient bottleIngredient, ItemStack result, float experience, int refinementTime) - Mappings:
Namespace Name Mixin selector official <init>Lcyz;<init>(Ljava/lang/String;Lcyn;Lcyv;Lcyv;Lcuh;FI)Vintermediary <init>Lnet/minecraft/class_9542;<init>(Ljava/lang/String;Lnet/minecraft/class_7709;Lnet/minecraft/class_1856;Lnet/minecraft/class_1856;Lnet/minecraft/class_1799;FI)Vnamed <init>Lnet/minecraft/recipe/PotatoRefinementRecipe;<init>(Ljava/lang/String;Lnet/minecraft/recipe/book/CookingRecipeCategory;Lnet/minecraft/recipe/Ingredient;Lnet/minecraft/recipe/Ingredient;Lnet/minecraft/item/ItemStack;FI)V
-
-
Method Details
-
matches
Returns whether this recipe matches the contents inside theinventoryin the givenworld.The
worldcurrently is only used by the map cloning recipe to prevent duplication of explorer maps.- Specified by:
matchesin interfaceRecipe<Inventory>- Parameters:
inventory- the input inventoryworld- the input world- Returns:
- whether this recipe matches the contents inside the
inventoryin the givenworld - Mappings:
Namespace Name Mixin selector official aLcza;a(Lbpt;Ldca;)Zintermediary method_8115Lnet/minecraft/class_1860;method_8115(Lnet/minecraft/class_1263;Lnet/minecraft/class_1937;)Znamed matchesLnet/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:
craftin interfaceRecipe<Inventory>- Parameters:
inventory- the input inventory- Returns:
- the resulting item stack
- Mappings:
Namespace Name Mixin selector official aLcza;a(Lbpt;Ljc$a;)Lcuh;intermediary method_8116Lnet/minecraft/class_1860;method_8116(Lnet/minecraft/class_1263;Lnet/minecraft/class_7225$class_7874;)Lnet/minecraft/class_1799;named craftLnet/minecraft/recipe/Recipe;craft(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Lnet/minecraft/item/ItemStack;
-
fits
public boolean fits(int width, int height) Returns whether this recipe will fit into the given grid size.This is currently only used by recipe book.
- Specified by:
fitsin interfaceRecipe<Inventory>- Parameters:
width- the width of the input inventoryheight- the height of the input inventory- Returns:
- whether this recipe will fit into the given grid size
- Mappings:
Namespace Name Mixin selector official aLcza;a(II)Zintermediary method_8113Lnet/minecraft/class_1860;method_8113(II)Znamed fitsLnet/minecraft/recipe/Recipe;fits(II)Z
-
getResult
Returns a preview of the recipe's output.The returned stack should not be modified. To obtain the actual output, call
Recipe.craft(Inventory, DynamicRegistryManager).- Specified by:
getResultin interfaceRecipe<Inventory>- Returns:
- a preview of the recipe's output
- Mappings:
Namespace Name Mixin selector official aLcza;a(Ljc$a;)Lcuh;intermediary method_8110Lnet/minecraft/class_1860;method_8110(Lnet/minecraft/class_7225$class_7874;)Lnet/minecraft/class_1799;named getResultLnet/minecraft/recipe/Recipe;getResult(Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Lnet/minecraft/item/ItemStack;
-
createIcon
Returns an item rendered on the top left of the output preview on the recipe toast when a new recipe is unlocked. This can be interpreted as a catalyst for the recipe.- Specified by:
createIconin interfaceRecipe<Inventory>- Returns:
- an item rendered on the top left of the output preview on the recipe toast when a new recipe is unlocked
- Mappings:
Namespace Name Mixin selector official gLcza;g()Lcuh;intermediary method_17447Lnet/minecraft/class_1860;method_17447()Lnet/minecraft/class_1799;named createIconLnet/minecraft/recipe/Recipe;createIcon()Lnet/minecraft/item/ItemStack;
-
getSerializer
Returns the serializer associated with this recipe.- Specified by:
getSerializerin interfaceRecipe<Inventory>- Returns:
- the serializer associated with this recipe
- Mappings:
Namespace Name Mixin selector official ao_Lcza;ao_()Lcze;intermediary method_8119Lnet/minecraft/class_1860;method_8119()Lnet/minecraft/class_1865;named getSerializerLnet/minecraft/recipe/Recipe;getSerializer()Lnet/minecraft/recipe/RecipeSerializer;
-
getType
Returns the type of this recipe.The
typein the recipe JSON format is the serializer instead.- Specified by:
getTypein interfaceRecipe<Inventory>- Returns:
- the type of this recipe
- Mappings:
Namespace Name Mixin selector official eLcza;e()Lczf;intermediary method_17716Lnet/minecraft/class_1860;method_17716()Lnet/minecraft/class_3956;named getTypeLnet/minecraft/recipe/Recipe;getType()Lnet/minecraft/recipe/RecipeType;
-
getRefinementTime
public int getRefinementTime()- Mappings:
Namespace Name Mixin selector official dLcyz;d()Iintermediary method_59069Lnet/minecraft/class_9542;method_59069()Inamed getRefinementTimeLnet/minecraft/recipe/PotatoRefinementRecipe;getRefinementTime()I
-