Class RegistrySuggestionDropDownWidget
java.lang.Object
com.portingdeadmods.researchd.client.screens.lib.widgets.DropDownWidget<net.minecraft.client.gui.layouts.LayoutElement>
com.portingdeadmods.researchd.client.screens.editor.widgets.dropdowns.RegistrySuggestionDropDownWidget
- All Implemented Interfaces:
net.minecraft.client.gui.components.events.GuiEventListener,net.minecraft.client.gui.components.TabOrderedElement
public class RegistrySuggestionDropDownWidget
extends DropDownWidget<net.minecraft.client.gui.layouts.LayoutElement>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.portingdeadmods.researchd.client.screens.lib.widgets.DropDownWidget
DropDownWidget.Option, DropDownWidget.OptionContext, DropDownWidget.StringOption -
Field Summary
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
ConstructorsConstructorDescriptionRegistrySuggestionDropDownWidget(net.minecraft.core.Registry<?> registry, int x, int y, Consumer<DropDownWidget.StringOption> setSuggestionFunction, Supplier<String> getInputFunction) -
Method Summary
Methods inherited from class com.portingdeadmods.researchd.client.screens.lib.widgets.DropDownWidget
addOption, close, getBackgroundTexture, isFocused, isHovered, isVisible, mouseClicked, open, optionClicked, playDownSound, rebuildOptions, render, setFocused, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
charTyped, getCurrentFocusPath, getRectangle, isMouseOver, keyPressed, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled, nextFocusPathMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Constructor Details
-
RegistrySuggestionDropDownWidget
public RegistrySuggestionDropDownWidget(net.minecraft.core.Registry<?> registry, int x, int y, Consumer<DropDownWidget.StringOption> setSuggestionFunction, Supplier<String> getInputFunction)
-
-
Method Details
-
setX
public void setX(int x) -
setY
public void setY(int y) -
render
public void render(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTicks) -
buildOptions
protected void buildOptions()- Specified by:
buildOptionsin classDropDownWidget<net.minecraft.client.gui.layouts.LayoutElement>
-