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 |
drawAnimations(net.minecraft.client.Minecraft minecraft)
Draw any animations like progress bars or flashy effects.
|
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.
|
void |
setRecipe(IRecipeLayout recipeLayout,
T recipeWrapper)
Deprecated.
|
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 void drawAnimations(net.minecraft.client.Minecraft minecraft)
IRecipeCategoryIRecipeCategory.drawExtras(Minecraft) but these can be disabled in the config.drawAnimations in interface IRecipeCategory<T extends IRecipeWrapper>for a simple class for drawing animated things.,
for useful functions.@Deprecated public void setRecipe(IRecipeLayout recipeLayout, T recipeWrapper)
IRecipeCategoryIRecipeLayout properties from the IRecipeWrapper.setRecipe in interface IRecipeCategory<T extends IRecipeWrapper>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.