public abstract class BlankRecipeCategory<T extends IRecipeWrapper> extends java.lang.Object implements IRecipeCategory<T>
IRecipeCategory that does nothing, inherit from this to avoid implementing methods you don't need.| Constructor and Description |
|---|
BlankRecipeCategory() |
| Modifier and Type | Method and Description |
|---|---|
void |
drawExtras(net.minecraft.client.Minecraft minecraft)
Draw any extra elements that might be necessary, icons or extra slots.
|
IDrawable |
getIcon()
Optional icon for the category tab.
|
java.util.List<java.lang.String> |
getTooltipStrings(int mouseX,
int mouseY)
Get the tooltip for whatever's under the mouse.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBackground, getTitle, getUid, setRecipe@Nullable public IDrawable getIcon()
IRecipeCategoryIModRegistry.addRecipeCategoryCraftingItem(ItemStack, String...)getIcon in interface IRecipeCategory<T extends IRecipeWrapper>public void drawExtras(net.minecraft.client.Minecraft minecraft)
IRecipeCategorydrawExtras in interface IRecipeCategory<T extends IRecipeWrapper>for a simple class for drawing things.,
for useful functions.public java.util.List<java.lang.String> getTooltipStrings(int mouseX,
int mouseY)
IRecipeCategoryIGuiIngredientGroup.addTooltipCallback(ITooltipCallback)
To add tooltips for a recipe wrapper, see IRecipeWrapper.getTooltipStrings(int, int)getTooltipStrings in interface IRecipeCategory<T extends IRecipeWrapper>mouseX - the X position of the mouse, relative to the recipe.mouseY - the Y position of the mouse, relative to the recipe.