public abstract class GuiIngredientGroup<V,T extends GuiIngredient<V>> extends java.lang.Object implements IGuiIngredientGroup<V>
| Modifier and Type | Field and Description |
|---|---|
protected Focus |
focus |
protected java.util.Map<java.lang.Integer,T> |
guiIngredients |
| Constructor and Description |
|---|
GuiIngredientGroup() |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(net.minecraft.client.Minecraft minecraft,
int mouseX,
int mouseY) |
Focus |
getFocusUnderMouse(int mouseX,
int mouseY) |
java.util.Map<java.lang.Integer,T> |
getGuiIngredients() |
void |
set(int slotIndex,
java.util.Collection<V> values) |
void |
set(int slotIndex,
V value) |
void |
setFocus(Focus focus)
If focus is set and any of the guiIngredients contains focus
they will only display focus instead of rotating through all their values.
|
@Nonnull protected final java.util.Map<java.lang.Integer,T extends GuiIngredient<V>> guiIngredients
@Nonnull protected Focus focus
public void setFocus(@Nonnull
Focus focus)
public void set(int slotIndex,
@Nonnull
java.util.Collection<V> values)
set in interface IGuiIngredientGroup<V>public void set(int slotIndex,
@Nonnull
V value)
set in interface IGuiIngredientGroup<V>@Nonnull public java.util.Map<java.lang.Integer,T> getGuiIngredients()
@Nullable public Focus getFocusUnderMouse(int mouseX, int mouseY)
public void draw(@Nonnull
net.minecraft.client.Minecraft minecraft,
int mouseX,
int mouseY)