Class RecipeList
- java.lang.Object
-
- net.minecraft.client.gui.recipebook.RecipeList
-
public class RecipeList extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Set<IRecipe<?>>
craftable
private java.util.Set<IRecipe<?>>
fitsDimensions
private java.util.Set<IRecipe<?>>
known
private java.util.List<IRecipe<?>>
recipes
private boolean
singleResultItem
-
Constructor Summary
Constructors Constructor Description RecipeList(java.util.List<IRecipe<?>> p_i242062_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static boolean
allRecipesHaveSameResult(java.util.List<IRecipe<?>> p_243413_0_)
void
canCraft(RecipeItemHelper p_194210_1_, int p_194210_2_, int p_194210_3_, RecipeBook p_194210_4_)
java.util.List<IRecipe<?>>
getDisplayRecipes(boolean p_194207_1_)
java.util.List<IRecipe<?>>
getRecipes()
java.util.List<IRecipe<?>>
getRecipes(boolean p_194208_1_)
boolean
hasCraftable()
boolean
hasFitting()
boolean
hasKnownRecipes()
boolean
hasSingleResultItem()
boolean
isCraftable(IRecipe<?> p_194213_1_)
void
updateKnownRecipes(RecipeBook p_194214_1_)
-
-
-
Field Detail
-
recipes
private final java.util.List<IRecipe<?>> recipes
-
singleResultItem
private final boolean singleResultItem
-
craftable
private final java.util.Set<IRecipe<?>> craftable
-
fitsDimensions
private final java.util.Set<IRecipe<?>> fitsDimensions
-
known
private final java.util.Set<IRecipe<?>> known
-
-
Constructor Detail
-
RecipeList
public RecipeList(java.util.List<IRecipe<?>> p_i242062_1_)
-
-
Method Detail
-
allRecipesHaveSameResult
private static boolean allRecipesHaveSameResult(java.util.List<IRecipe<?>> p_243413_0_)
-
hasKnownRecipes
public boolean hasKnownRecipes()
-
updateKnownRecipes
public void updateKnownRecipes(RecipeBook p_194214_1_)
-
canCraft
public void canCraft(RecipeItemHelper p_194210_1_, int p_194210_2_, int p_194210_3_, RecipeBook p_194210_4_)
-
isCraftable
public boolean isCraftable(IRecipe<?> p_194213_1_)
-
hasCraftable
public boolean hasCraftable()
-
hasFitting
public boolean hasFitting()
-
getRecipes
public java.util.List<IRecipe<?>> getRecipes()
-
getRecipes
public java.util.List<IRecipe<?>> getRecipes(boolean p_194208_1_)
-
getDisplayRecipes
public java.util.List<IRecipe<?>> getDisplayRecipes(boolean p_194207_1_)
-
hasSingleResultItem
public boolean hasSingleResultItem()
-
-