public class DebugRecipe extends BlankRecipeWrapper
Constructor and Description |
---|
DebugRecipe() |
Modifier and Type | Method and Description |
---|---|
void |
drawInfo(net.minecraft.client.Minecraft minecraft,
int recipeWidth,
int recipeHeight,
int mouseX,
int mouseY)
Draw additional info about the recipe.
|
java.util.List<net.minecraftforge.fluids.FluidStack> |
getFluidInputs()
Return a list of recipe fluid inputs.
|
void |
getIngredients(IIngredients ingredients)
Gets all the recipe's ingredients by filling out an instance of
IIngredients . |
java.util.List<java.lang.String> |
getTooltipStrings(int mouseX,
int mouseY)
Get the tooltip for whatever's under the mouse.
|
boolean |
handleClick(net.minecraft.client.Minecraft minecraft,
int mouseX,
int mouseY,
int mouseButton)
Called when a player clicks the recipe.
|
drawAnimations, getFluidOutputs, getInputs, getOutputs
public void drawInfo(net.minecraft.client.Minecraft minecraft, int recipeWidth, int recipeHeight, int mouseX, int mouseY)
IRecipeWrapper
IRecipeWrapper.getTooltipStrings(int, int)
drawInfo
in interface IRecipeWrapper
drawInfo
in class BlankRecipeWrapper
mouseX
- the X position of the mouse, relative to the recipe.mouseY
- the Y position of the mouse, relative to the recipe.for a simple class for drawing things.
,
for useful functions.
public void getIngredients(IIngredients ingredients)
IRecipeWrapper
IIngredients
.public java.util.List<net.minecraftforge.fluids.FluidStack> getFluidInputs()
IRecipeWrapper
getFluidInputs
in interface IRecipeWrapper
getFluidInputs
in class BlankRecipeWrapper
@Nullable public java.util.List<java.lang.String> getTooltipStrings(int mouseX, int mouseY)
IRecipeWrapper
IGuiIngredientGroup.addTooltipCallback(ITooltipCallback)
To add tooltips for a recipe category, see IRecipeCategory.getTooltipStrings(int, int)
getTooltipStrings
in interface IRecipeWrapper
getTooltipStrings
in class BlankRecipeWrapper
mouseX
- the X position of the mouse, relative to the recipe.mouseY
- the Y position of the mouse, relative to the recipe.public boolean handleClick(net.minecraft.client.Minecraft minecraft, int mouseX, int mouseY, int mouseButton)
IRecipeWrapper
handleClick
in interface IRecipeWrapper
handleClick
in class BlankRecipeWrapper
mouseX
- the X position of the mouse, relative to the recipe.mouseY
- the Y position of the mouse, relative to the recipe.mouseButton
- the current mouse event button.