@ApiStatus.Experimental @ApiStatus.Internal public class Menu extends WidgetWithBounds implements LateRenderable
| Modifier and Type | Field and Description |
|---|---|
me.shedaniel.math.Point |
menuStartPoint |
me.shedaniel.clothconfig2.forge.api.ScrollingContainer |
scrolling |
| Constructor and Description |
|---|
Menu(me.shedaniel.math.Point menuStartPoint,
java.util.Collection<MenuEntry> entries) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<MenuEntry> |
children() |
static Menu |
createSubsetsMenuFromRegistry(me.shedaniel.math.Point menuStartPoint) |
@NotNull me.shedaniel.math.Rectangle |
getBounds() |
me.shedaniel.math.Rectangle |
getInnerBounds() |
int |
getInnerHeight() |
int |
getMaxEntryWidth() |
boolean |
hasScrollBar() |
boolean |
mouseClicked(double mouseX,
double mouseY,
int button) |
boolean |
mouseDragged(double mouseX,
double mouseY,
int button,
double deltaX,
double deltaY) |
boolean |
mouseScrolled(double mouseX,
double mouseY,
double amount) |
void |
render(com.mojang.blaze3d.matrix.MatrixStack matrices,
int mouseX,
int mouseY,
float delta) |
containsMousecontainsMouse, containsMouse, getZ, isMouseOver, setZgetFocused, isDragging, setDragging, setFocusedblit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, innerBlit, setBlitOffset, vLineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic final me.shedaniel.math.Point menuStartPoint
public final me.shedaniel.clothconfig2.forge.api.ScrollingContainer scrolling
public Menu(me.shedaniel.math.Point menuStartPoint,
java.util.Collection<MenuEntry> entries)
public static Menu createSubsetsMenuFromRegistry(me.shedaniel.math.Point menuStartPoint)
@NotNull public @NotNull me.shedaniel.math.Rectangle getBounds()
getBounds in class WidgetWithBoundspublic me.shedaniel.math.Rectangle getInnerBounds()
public boolean hasScrollBar()
public int getInnerHeight()
public int getMaxEntryWidth()
public void render(com.mojang.blaze3d.matrix.MatrixStack matrices,
int mouseX,
int mouseY,
float delta)
render in interface net.minecraft.client.gui.IRenderablepublic boolean mouseClicked(double mouseX,
double mouseY,
int button)
mouseClicked in interface net.minecraft.client.gui.IGuiEventListenermouseClicked in interface net.minecraft.client.gui.INestedGuiEventHandlerpublic boolean mouseDragged(double mouseX,
double mouseY,
int button,
double deltaX,
double deltaY)
mouseDragged in interface net.minecraft.client.gui.IGuiEventListenermouseDragged in interface net.minecraft.client.gui.INestedGuiEventHandlerpublic boolean mouseScrolled(double mouseX,
double mouseY,
double amount)
mouseScrolled in interface net.minecraft.client.gui.IGuiEventListenermouseScrolled in interface net.minecraft.client.gui.INestedGuiEventHandlerpublic java.util.List<MenuEntry> children()
children in interface net.minecraft.client.gui.INestedGuiEventHandler