Class RegistryVerifyEditBox
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.EditBox
com.portingdeadmods.researchd.client.screens.lib.widgets.BackgroundEditBox
com.portingdeadmods.researchd.client.screens.editor.widgets.RegistryVerifyEditBox
- All Implemented Interfaces:
EditBoxExtension,net.minecraft.client.gui.components.events.GuiEventListener,net.minecraft.client.gui.components.Renderable,net.minecraft.client.gui.components.TabOrderedElement,net.minecraft.client.gui.layouts.LayoutElement,net.minecraft.client.gui.narration.NarratableEntry,net.minecraft.client.gui.narration.NarrationSupplier,net.neoforged.neoforge.client.extensions.IAbstractWidgetExtension
- Direct Known Subclasses:
SuggestionRegistryVerifyEditBox
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
net.minecraft.client.gui.narration.NarratableEntry.NarrationPriority -
Field Summary
Fields inherited from class com.portingdeadmods.researchd.client.screens.lib.widgets.BackgroundEditBox
SPRITESFields inherited from class net.minecraft.client.gui.components.EditBox
BACKWARDS, DEFAULT_TEXT_COLOR, FORWARDSFields inherited from class net.minecraft.client.gui.components.AbstractWidget
active, alpha, height, isHovered, packedFGColor, UNSET_FG_COLOR, visible, widthFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
ConstructorsConstructorDescriptionRegistryVerifyEditBox(net.minecraft.client.gui.Font font, net.minecraft.client.gui.components.WidgetSprites sprites, @Nullable net.minecraft.core.Registry<?> registry, @Nullable Collection<net.minecraft.resources.ResourceLocation> ids, int width, int height, net.minecraft.network.chat.Component message) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.resources.ResourceLocationcreateId()static RegistryVerifyEditBoxforIds(Collection<net.minecraft.resources.ResourceLocation> ids, int width, int height) static RegistryVerifyEditBoxforRegistry(net.minecraft.core.Registry<?> registry, int width, int height) @Nullable Collection<net.minecraft.resources.ResourceLocation> getIds()<T> T@Nullable net.minecraft.core.Registry<?> booleanisValid()booleanisValid(net.minecraft.resources.ResourceLocation id) voidonValueChangedExtra(String newText) Methods inherited from class com.portingdeadmods.researchd.client.screens.lib.widgets.BackgroundEditBox
getSpritesMethods inherited from class net.minecraft.client.gui.components.EditBox
canConsumeInput, charTyped, createNarrationMessage, deleteChars, deleteCharsToPos, deleteWords, getCursorPosition, getHighlighted, getInnerWidth, getScreenX, getTextShadow, getValue, getWordPosition, insertText, isBordered, isVisible, keyPressed, moveCursor, moveCursorTo, moveCursorToEnd, moveCursorToStart, onClick, playDownSound, renderWidget, setBordered, setCanLoseFocus, setCursorPosition, setEditable, setFilter, setFocused, setFormatter, setHighlightPos, setHint, setMaxLength, setResponder, setSuggestion, setTextColor, setTextColorUneditable, setTextShadow, setValue, setVisible, updateWidgetNarrationMethods inherited from class net.minecraft.client.gui.components.AbstractWidget
clearFGColor, clicked, defaultButtonNarrationText, getBottom, getFGColor, getHeight, getMessage, getRectangle, getRight, getTabOrderGroup, getTooltip, getWidth, getX, getY, isActive, isFocused, isHovered, isHoveredOrFocused, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrationPriority, nextFocusPath, onDrag, onRelease, render, renderScrollingString, renderScrollingString, renderScrollingString, setAlpha, setFGColor, setHeight, setMessage, setRectangle, setSize, setTabOrderGroup, setTooltip, setTooltipDelay, setWidth, setX, setY, updateNarration, visitWidgets, wrapDefaultNarrationMessageMethods 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
getCurrentFocusPath, keyReleased, mouseMoved, mouseScrolledMethods inherited from interface net.neoforged.neoforge.client.extensions.IAbstractWidgetExtension
onClickMethods inherited from interface net.minecraft.client.gui.layouts.LayoutElement
setPositionMethods inherited from interface net.minecraft.client.gui.components.Renderable
render
-
Constructor Details
-
RegistryVerifyEditBox
public RegistryVerifyEditBox(net.minecraft.client.gui.Font font, net.minecraft.client.gui.components.WidgetSprites sprites, @Nullable @Nullable net.minecraft.core.Registry<?> registry, @Nullable @Nullable Collection<net.minecraft.resources.ResourceLocation> ids, int width, int height, net.minecraft.network.chat.Component message)
-
-
Method Details
-
forRegistry
public static RegistryVerifyEditBox forRegistry(net.minecraft.core.Registry<?> registry, int width, int height) -
forIds
public static RegistryVerifyEditBox forIds(Collection<net.minecraft.resources.ResourceLocation> ids, int width, int height) -
getRegistry
@Nullable public @Nullable net.minecraft.core.Registry<?> getRegistry() -
getIds
-
onValueChangedExtra
-
createId
public net.minecraft.resources.ResourceLocation createId() -
getObjectById
public <T> T getObjectById() -
isValid
public boolean isValid() -
isValid
public boolean isValid(net.minecraft.resources.ResourceLocation id)
-