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