public class DefaultBeaconBaseCategory extends java.lang.Object implements RecipeCategory<DefaultBeaconBaseDisplay>
| Constructor and Description |
|---|
DefaultBeaconBaseCategory() |
| 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(DefaultBeaconBaseDisplay recipe)
Gets the recipe renderer for the category, used in
VillagerRecipeViewingScreen for rendering simple recipes |
@NotNull java.util.List<Widget> |
setupDisplay(DefaultBeaconBaseDisplay display,
me.shedaniel.math.Rectangle bounds)
Setup the widgets for displaying the recipe
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDisplayWidth, getMaximumRecipePerPage@NotNull public @NotNull net.minecraft.util.ResourceLocation getIdentifier()
RecipeCategorygetIdentifier in interface RecipeCategory<DefaultBeaconBaseDisplay>@NotNull public @NotNull java.lang.String getCategoryName()
RecipeCategorygetCategoryName in interface RecipeCategory<DefaultBeaconBaseDisplay>@NotNull public @NotNull EntryStack getLogo()
RecipeCategorygetLogo in interface RecipeCategory<DefaultBeaconBaseDisplay>@NotNull public @NotNull RecipeEntry getSimpleRenderer(DefaultBeaconBaseDisplay recipe)
RecipeCategoryVillagerRecipeViewingScreen for rendering simple recipesgetSimpleRenderer in interface RecipeCategory<DefaultBeaconBaseDisplay>recipe - the recipe to render@NotNull public @NotNull java.util.List<Widget> setupDisplay(DefaultBeaconBaseDisplay display, me.shedaniel.math.Rectangle bounds)
RecipeCategorysetupDisplay in interface RecipeCategory<DefaultBeaconBaseDisplay>display - the recipebounds - the bounds of the display, configurable with overriding the width, height methods.public int getDisplayHeight()
RecipeCategorygetDisplayHeight in interface RecipeCategory<DefaultBeaconBaseDisplay>public int getFixedRecipesPerPage()
RecipeCategorygetFixedRecipesPerPage in interface RecipeCategory<DefaultBeaconBaseDisplay>