@Environment(value=CLIENT) public class ClientRecipeBook extends RecipeBook
Modifier and Type | Field and Description |
---|---|
private RecipeManager |
manager |
private List<RecipeResultCollection> |
orderedResults |
private Map<RecipeBookGroup,List<RecipeResultCollection>> |
resultsByGroup |
blastFurnaceFilteringCraftable, blastFurnaceGuiOpen, filteringCraftable, furnaceFilteringCraftable, furnaceGuiOpen, guiOpen, recipes, smokerFilteringCraftable, smokerGuiOpen, toBeDisplayed
Constructor and Description |
---|
ClientRecipeBook(RecipeManager manager) |
Modifier and Type | Method and Description |
---|---|
private RecipeResultCollection |
addGroup(RecipeBookGroup group) |
private void |
addGroupResults(RecipeBookGroup group,
RecipeResultCollection results) |
private static RecipeBookGroup |
getGroupForRecipe(Recipe<?> recipe) |
static List<RecipeBookGroup> |
getGroups(AbstractRecipeScreenHandler<?> handler) |
List<RecipeResultCollection> |
getOrderedResults() |
List<RecipeResultCollection> |
getResultsForGroup(RecipeBookGroup category) |
void |
reload() |
add, add, contains, contains, copyFrom, display, display, isBlastFurnaceFilteringCraftable, isBlastFurnaceGuiOpen, isFilteringCraftable, isFilteringCraftable, isFurnaceFilteringCraftable, isFurnaceGuiOpen, isGuiOpen, isSmokerFilteringCraftable, isSmokerGuiOpen, onRecipeDisplayed, remove, remove, setBlastFurnaceFilteringCraftable, setBlastFurnaceGuiOpen, setFilteringCraftable, setFurnaceFilteringCraftable, setFurnaceGuiOpen, setGuiOpen, setSmokerFilteringCraftable, setSmokerGuiOpen, shouldDisplay
private final RecipeManager manager
private final Map<RecipeBookGroup,List<RecipeResultCollection>> resultsByGroup
private final List<RecipeResultCollection> orderedResults
public ClientRecipeBook(RecipeManager manager)
public void reload()
private RecipeResultCollection addGroup(RecipeBookGroup group)
private void addGroupResults(RecipeBookGroup group, RecipeResultCollection results)
private static RecipeBookGroup getGroupForRecipe(Recipe<?> recipe)
public static List<RecipeBookGroup> getGroups(AbstractRecipeScreenHandler<?> handler)
public List<RecipeResultCollection> getOrderedResults()
public List<RecipeResultCollection> getResultsForGroup(RecipeBookGroup category)