public class DefaultCraftingCategory extends java.lang.Object implements TransferRecipeCategory<DefaultCraftingDisplay>
| Constructor and Description |
|---|
DefaultCraftingCategory() |
| Modifier and Type | Method and Description |
|---|---|
@NotNull java.lang.String |
getCategoryName()
Gets the category name
|
@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
|
static int |
getSlotWithSize(DefaultCraftingDisplay recipeDisplay,
int num,
int craftingGridWidth) |
void |
renderRedSlots(com.mojang.blaze3d.matrix.MatrixStack matrices,
java.util.List<Widget> widgets,
me.shedaniel.math.Rectangle bounds,
DefaultCraftingDisplay display,
it.unimi.dsi.fastutil.ints.IntList redSlots) |
@NotNull java.util.List<Widget> |
setupDisplay(DefaultCraftingDisplay display,
me.shedaniel.math.Rectangle bounds)
Setup the widgets for displaying the recipe
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDisplayHeight, getDisplayWidth, getFixedRecipesPerPage, getMaximumRecipePerPage, getSimpleRendererpublic static int getSlotWithSize(DefaultCraftingDisplay recipeDisplay, int num, int craftingGridWidth)
@NotNull public @NotNull net.minecraft.util.ResourceLocation getIdentifier()
RecipeCategorygetIdentifier in interface RecipeCategory<DefaultCraftingDisplay>@NotNull public @NotNull EntryStack getLogo()
RecipeCategorygetLogo in interface RecipeCategory<DefaultCraftingDisplay>@NotNull public @NotNull java.lang.String getCategoryName()
RecipeCategorygetCategoryName in interface RecipeCategory<DefaultCraftingDisplay>@NotNull public @NotNull java.util.List<Widget> setupDisplay(DefaultCraftingDisplay display, me.shedaniel.math.Rectangle bounds)
RecipeCategorysetupDisplay in interface RecipeCategory<DefaultCraftingDisplay>display - the recipebounds - the bounds of the display, configurable with overriding the width, height methods.public void renderRedSlots(com.mojang.blaze3d.matrix.MatrixStack matrices,
java.util.List<Widget> widgets,
me.shedaniel.math.Rectangle bounds,
DefaultCraftingDisplay display,
it.unimi.dsi.fastutil.ints.IntList redSlots)
renderRedSlots in interface TransferRecipeCategory<DefaultCraftingDisplay>