public class RecipeBook
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
isFilteringCraftable |
protected boolean |
isGuiOpen |
protected java.util.BitSet |
newRecipes |
protected java.util.BitSet |
recipes |
Constructor and Description |
---|
RecipeBook() |
Modifier and Type | Method and Description |
---|---|
void |
copyFrom(RecipeBook that) |
protected static int |
getRecipeId(IRecipe recipe)
Deprecated.
|
boolean |
isFilteringCraftable() |
boolean |
isGuiOpen() |
boolean |
isNew(IRecipe recipe) |
boolean |
isUnlocked(IRecipe recipe) |
void |
lock(IRecipe recipe) |
void |
markNew(IRecipe recipe) |
void |
markSeen(IRecipe recipe) |
void |
setFilteringCraftable(boolean shouldFilter) |
void |
setGuiOpen(boolean open) |
void |
unlock(IRecipe recipe) |
protected final java.util.BitSet recipes
protected final java.util.BitSet newRecipes
protected boolean isGuiOpen
protected boolean isFilteringCraftable
public void copyFrom(RecipeBook that)
public void unlock(IRecipe recipe)
public boolean isUnlocked(@Nullable IRecipe recipe)
public void lock(IRecipe recipe)
@Deprecated protected static int getRecipeId(@Nullable IRecipe recipe)
public boolean isNew(IRecipe recipe)
public void markSeen(IRecipe recipe)
public void markNew(IRecipe recipe)
public boolean isGuiOpen()
public void setGuiOpen(boolean open)
public boolean isFilteringCraftable()
public void setFilteringCraftable(boolean shouldFilter)