public class RecipeBook extends Object
Modifier and Type | Field and Description |
---|---|
private RecipeBookOptions |
options |
protected Set<Identifier> |
recipes |
protected Set<Identifier> |
toBeDisplayed |
Constructor and Description |
---|
RecipeBook() |
Modifier and Type | Method and Description |
---|---|
protected void |
add(Identifier id) |
void |
add(Recipe<?> recipe) |
boolean |
contains(Identifier id) |
boolean |
contains(Recipe<?> recipe) |
void |
copyFrom(RecipeBook book) |
protected void |
display(Identifier id) |
void |
display(Recipe<?> recipe) |
RecipeBookOptions |
getOptions() |
boolean |
isFilteringCraftable(AbstractRecipeScreenHandler<?> handler) |
boolean |
isFilteringCraftable(RecipeBookCategory category) |
boolean |
isGuiOpen(RecipeBookCategory category) |
void |
onRecipeDisplayed(Recipe<?> recipe) |
protected void |
remove(Identifier id) |
void |
remove(Recipe<?> recipe) |
void |
setCategoryOptions(RecipeBookCategory category,
boolean guiOpen,
boolean filteringCraftable) |
void |
setFilteringCraftable(RecipeBookCategory category,
boolean filteringCraftable) |
void |
setGuiOpen(RecipeBookCategory category,
boolean open) |
void |
setOptions(RecipeBookOptions options) |
boolean |
shouldDisplay(Recipe<?> recipe) |
protected final Set<Identifier> recipes
protected final Set<Identifier> toBeDisplayed
private final RecipeBookOptions options
public void copyFrom(RecipeBook book)
public void add(Recipe<?> recipe)
protected void add(Identifier id)
public boolean contains(Identifier id)
@Environment(value=CLIENT) public void remove(Recipe<?> recipe)
protected void remove(Identifier id)
@Environment(value=CLIENT) public boolean shouldDisplay(Recipe<?> recipe)
public void onRecipeDisplayed(Recipe<?> recipe)
public void display(Recipe<?> recipe)
protected void display(Identifier id)
@Environment(value=CLIENT) public boolean isGuiOpen(RecipeBookCategory category)
@Environment(value=CLIENT) public void setGuiOpen(RecipeBookCategory category, boolean open)
@Environment(value=CLIENT) public boolean isFilteringCraftable(AbstractRecipeScreenHandler<?> handler)
@Environment(value=CLIENT) public boolean isFilteringCraftable(RecipeBookCategory category)
@Environment(value=CLIENT) public void setFilteringCraftable(RecipeBookCategory category, boolean filteringCraftable)
public void setOptions(RecipeBookOptions options)
public RecipeBookOptions getOptions()
public void setCategoryOptions(RecipeBookCategory category, boolean guiOpen, boolean filteringCraftable)