public class DebugRecipeCategory extends BlankRecipeCategory<DebugRecipe>
| Modifier and Type | Field and Description |
|---|---|
static int |
recipeHeight |
static int |
recipeWidth |
| Constructor and Description |
|---|
DebugRecipeCategory(IGuiHelper guiHelper) |
| 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 |
getBackground()
Returns the drawable background for a single recipe in this category.
|
java.lang.String |
getTitle()
Returns the localized name for this recipe type.
|
java.util.List<java.lang.String> |
getTooltipStrings(int mouseX,
int mouseY)
Get the tooltip for whatever's under the mouse.
|
java.lang.String |
getUid()
Returns a unique ID for this recipe category.
|
void |
setRecipe(IRecipeLayout recipeLayout,
DebugRecipe recipeWrapper,
IIngredients ingredients)
|
drawAnimations, getIcon, setRecipepublic static final int recipeWidth
public static final int recipeHeight
public DebugRecipeCategory(IGuiHelper guiHelper)
public java.lang.String getUid()
IRecipeCategorypublic java.lang.String getTitle()
IRecipeCategorypublic IDrawable getBackground()
IRecipeCategorypublic void drawExtras(net.minecraft.client.Minecraft minecraft)
IRecipeCategorydrawExtras in interface IRecipeCategory<DebugRecipe>drawExtras in class BlankRecipeCategory<DebugRecipe>for a simple class for drawing things.,
for useful functions.public void setRecipe(IRecipeLayout recipeLayout, DebugRecipe recipeWrapper, IIngredients ingredients)
IRecipeCategoryrecipeLayout - the layout that needs its properties set.recipeWrapper - the recipeWrapper, for extra information.ingredients - the ingredients, already set by the recipeWrapperpublic 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<DebugRecipe>getTooltipStrings in class BlankRecipeCategory<DebugRecipe>mouseX - the X position of the mouse, relative to the recipe.mouseY - the Y position of the mouse, relative to the recipe.