public class DefaultInformationCategory extends java.lang.Object implements RecipeCategory<DefaultInformationDisplay>
| Constructor and Description |
|---|
DefaultInformationCategory() |
| Modifier and Type | Method and Description |
|---|---|
@NotNull java.lang.String |
getCategoryName()
Gets the category name
|
int |
getDisplayHeight()
Gets the recipe display height
|
int |
getFixedRecipesPerPage()
Gets the fixed amount of recipes per page.
|
@NotNull net.minecraft.util.ResourceLocation |
getIdentifier()
Gets the identifier of the category, must be unique
|
@NotNull EntryStack |
getLogo()
Gets the renderer of the icon, allowing developers to render things other than items
|
@NotNull RecipeEntry |
getSimpleRenderer(DefaultInformationDisplay recipe)
Gets the recipe renderer for the category, used in
VillagerRecipeViewingScreen for rendering simple recipes |
protected static void |
innerBlit(net.minecraft.util.math.vector.Matrix4f matrix4f,
int xStart,
int xEnd,
int yStart,
int yEnd,
int z,
float uStart,
float uEnd,
float vStart,
float vEnd) |
@NotNull java.util.List<Widget> |
setupDisplay(DefaultInformationDisplay recipeDisplay,
me.shedaniel.math.Rectangle bounds)
Setup the widgets for displaying the recipe
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDisplayWidth, getMaximumRecipePerPageprotected static void innerBlit(net.minecraft.util.math.vector.Matrix4f matrix4f,
int xStart,
int xEnd,
int yStart,
int yEnd,
int z,
float uStart,
float uEnd,
float vStart,
float vEnd)
@NotNull public @NotNull net.minecraft.util.ResourceLocation getIdentifier()
RecipeCategorygetIdentifier in interface RecipeCategory<DefaultInformationDisplay>@NotNull public @NotNull java.lang.String getCategoryName()
RecipeCategorygetCategoryName in interface RecipeCategory<DefaultInformationDisplay>@NotNull public @NotNull RecipeEntry getSimpleRenderer(DefaultInformationDisplay recipe)
RecipeCategoryVillagerRecipeViewingScreen for rendering simple recipesgetSimpleRenderer in interface RecipeCategory<DefaultInformationDisplay>recipe - the recipe to render@NotNull public @NotNull EntryStack getLogo()
RecipeCategorygetLogo in interface RecipeCategory<DefaultInformationDisplay>@NotNull public @NotNull java.util.List<Widget> setupDisplay(DefaultInformationDisplay recipeDisplay, me.shedaniel.math.Rectangle bounds)
RecipeCategorysetupDisplay in interface RecipeCategory<DefaultInformationDisplay>recipeDisplay - the recipebounds - the bounds of the display, configurable with overriding the width, height methods.public int getDisplayHeight()
RecipeCategorygetDisplayHeight in interface RecipeCategory<DefaultInformationDisplay>public int getFixedRecipesPerPage()
RecipeCategorygetFixedRecipesPerPage in interface RecipeCategory<DefaultInformationDisplay>