public class EntryPreviewWidget
extends com.supermartijn642.core.gui.widget.BaseWidget
| Constructor and Description |
|---|
EntryPreviewWidget(int x,
int y,
int width,
int height,
java.util.function.Supplier<net.minecraft.item.ItemStack> item,
java.util.function.Supplier<java.lang.Integer> previewMode) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addWidgets() |
net.minecraft.util.text.ITextComponent |
getNarrationMessage() |
boolean |
mousePressed(int mouseX,
int mouseY,
int button,
boolean hasBeenHandled) |
boolean |
mouseReleased(int mouseX,
int mouseY,
int button,
boolean hasBeenHandled) |
void |
render(int mouseX,
int mouseY) |
addWidget, charTyped, discard, getTooltips, height, initialize, isFocused, keyPressed, keyReleased, left, mouseScrolled, removeWidget, renderBackground, renderForeground, renderOverlay, renderTooltips, setFocused, top, update, widthpublic EntryPreviewWidget(int x,
int y,
int width,
int height,
java.util.function.Supplier<net.minecraft.item.ItemStack> item,
java.util.function.Supplier<java.lang.Integer> previewMode)
protected void addWidgets()
addWidgets in class com.supermartijn642.core.gui.widget.BaseWidgetpublic net.minecraft.util.text.ITextComponent getNarrationMessage()
public void render(int mouseX,
int mouseY)
render in interface com.supermartijn642.core.gui.widget.Widgetrender in class com.supermartijn642.core.gui.widget.BaseWidgetpublic boolean mousePressed(int mouseX,
int mouseY,
int button,
boolean hasBeenHandled)
mousePressed in interface com.supermartijn642.core.gui.widget.WidgetmousePressed in class com.supermartijn642.core.gui.widget.BaseWidgetpublic boolean mouseReleased(int mouseX,
int mouseY,
int button,
boolean hasBeenHandled)
mouseReleased in interface com.supermartijn642.core.gui.widget.WidgetmouseReleased in class com.supermartijn642.core.gui.widget.BaseWidget