public class GuiIngredient<T> extends net.minecraft.client.gui.Gui implements IGuiIngredient<T>
| Constructor and Description |
|---|
GuiIngredient(IIngredientRenderer<T> ingredientRenderer,
IIngredientHelper<T> ingredientHelper,
int slotIndex,
boolean input,
int xPosition,
int yPosition,
int width,
int height,
int padding,
int itemCycleOffset) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
draw(net.minecraft.client.Minecraft minecraft) |
void |
drawHighlight(net.minecraft.client.Minecraft minecraft,
java.awt.Color color,
int xOffset,
int yOffset)
Offset is in screen coordinates, unlike the other draw methods
|
void |
drawHovered(net.minecraft.client.Minecraft minecraft,
int mouseX,
int mouseY) |
T |
get() |
java.util.List<T> |
getAll() |
boolean |
isInput() |
boolean |
isMouseOver(int mouseX,
int mouseY) |
void |
set(java.util.Collection<T> contained,
Focus focus) |
void |
set(T contained,
Focus focus) |
void |
setTooltipCallback(ITooltipCallback<T> tooltipCallback) |
public GuiIngredient(@Nonnull
IIngredientRenderer<T> ingredientRenderer,
@Nonnull
IIngredientHelper<T> ingredientHelper,
int slotIndex,
boolean input,
int xPosition,
int yPosition,
int width,
int height,
int padding,
int itemCycleOffset)
public void clear()
clear in interface IGuiIngredient<T>public boolean isMouseOver(int mouseX,
int mouseY)
isMouseOver in interface IGuiIngredient<T>@Nullable public T get()
get in interface IGuiIngredient<T>@Nonnull public java.util.List<T> getAll()
getAll in interface IGuiIngredient<T>public void set(@Nonnull
T contained,
@Nonnull
Focus focus)
set in interface IGuiIngredient<T>public void set(@Nonnull
java.util.Collection<T> contained,
@Nonnull
Focus focus)
set in interface IGuiIngredient<T>public void setTooltipCallback(@Nullable
ITooltipCallback<T> tooltipCallback)
public void draw(@Nonnull
net.minecraft.client.Minecraft minecraft)
draw in interface IGuiIngredient<T>public void drawHovered(@Nonnull
net.minecraft.client.Minecraft minecraft,
int mouseX,
int mouseY)
drawHovered in interface IGuiIngredient<T>public void drawHighlight(@Nonnull
net.minecraft.client.Minecraft minecraft,
java.awt.Color color,
int xOffset,
int yOffset)
IGuiIngredientdrawHighlight in interface IGuiIngredient<T>public boolean isInput()