public abstract class BlankRecipeWrapper extends java.lang.Object implements IRecipeWrapper
IRecipeWrapper
that does nothing, inherit from this to avoid implementing methods you don't need.Constructor and Description |
---|
BlankRecipeWrapper() |
Modifier and Type | Method and Description |
---|---|
void |
drawAnimations(net.minecraft.client.Minecraft minecraft,
int recipeWidth,
int recipeHeight)
Draw animations involving the recipe.
|
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()
Deprecated.
|
java.util.List<net.minecraftforge.fluids.FluidStack> |
getFluidOutputs()
Deprecated.
|
java.util.List |
getInputs()
Deprecated.
|
java.util.List |
getOutputs()
Deprecated.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getIngredients
@Deprecated public java.util.List getInputs()
IRecipeWrapper
getInputs
in interface IRecipeWrapper
@Deprecated public java.util.List getOutputs()
IRecipeWrapper
getOutputs
in interface IRecipeWrapper
@Deprecated public java.util.List<net.minecraftforge.fluids.FluidStack> getFluidInputs()
IRecipeWrapper
getFluidInputs
in interface IRecipeWrapper
@Deprecated public java.util.List<net.minecraftforge.fluids.FluidStack> getFluidOutputs()
IRecipeWrapper
getFluidOutputs
in interface IRecipeWrapper
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
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 drawAnimations(net.minecraft.client.Minecraft minecraft, int recipeWidth, int recipeHeight)
IRecipeWrapper
drawAnimations
in interface IRecipeWrapper
for a simple class for drawing animated things.
,
for useful functions.
@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
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
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.