Package hiiragi283.core.api.gui.element
Class HTItemSlotElement
-
- All Implemented Interfaces:
-
com.lowdragmc.lowdraglib2.configurator.IConfigurable,com.lowdragmc.lowdraglib2.gui.sync.bindings.IBindable,com.lowdragmc.lowdraglib2.gui.sync.bindings.IDataConsumer,com.lowdragmc.lowdraglib2.gui.sync.bindings.IDataSource,com.lowdragmc.lowdraglib2.gui.sync.bindings.IObservable,com.lowdragmc.lowdraglib2.registry.ILDLRegister,com.lowdragmc.lowdraglib2.syncdata.IPersistedSerializable,net.neoforged.neoforge.common.util.INBTSerializable
public final class HTItemSlotElement extends ItemSlotHiiragi Coreとそれを前提とするmodで使用されるItemSlotの拡張クラスです。
- Since:
0.7.0
Hiiragi Tsubasa
-
-
Field Summary
Fields Modifier and Type Field Description private BooleanisActiveprivate final ItemSlot.SlotStyleslotStyleprivate final FloatmarginLeftprivate final FloatmarginRightprivate final FloatcontentHeightprivate final StringconfigurableNameprivate final FloatmarginBottomprivate final BooleanisChildFocusedprivate final ComponentchatComponentprivate final List<UIElement>flattenChildrenprivate final FloatsizeHeightprivate final UIElementparentprivate BooleanisVisibleprivate Stringidprivate final Slotslotprivate final FloatpaddingYprivate ItemStackvalueprivate final BooleanisLDLRegisterprivate final LayoutStylelayoutStyleprivate final IntegersiblingIndexprivate final ModularUImodularUIprivate final FloatlayoutXprivate final FloatcontentXprivate final FloatmarginTopprivate final List<Style>stylesprivate final List<Component>debugInfoprivate final BooleanisFocusedprivate final BooleanisInternalUIprivate final FloatcontentWidthprivate final FloatlayoutYprivate final List<UIElement>childrenprivate final LayoutStylelayoutprivate final StringtranslateKeyprivate final ImmutableList<UIElement>structurePathprivate final FloatpaddingXprivate final IGuiTextureeditorIconprivate final ComponenteditorNameprivate final LDLRegisterregisterUIprivate BooleanisFocusableprivate final List<Component>fullTooltipTextsprivate final BasicStylestyleprivate final List<UIElement>editorVisibleChildrenprivate final FloatcontentYprivate final Optional<AutoRegistry.Holder<LDLRegister, UIElement, Supplier<UIElement>>>registryHolderOptionalprivate final Matrix4fworldToLocalPoseprivate final YogaNodelayoutNodeprivate final FloatpositionXprivate final List<UIElement>safeChildrenprivate final BooleanisSelfOrChildHoverprivate final AutoRegistry.LDLibRegister<UIElement, Supplier<UIElement>>registryprivate final Matrix4flocalToWorldPoseprivate final AutoRegistry.Holder<LDLRegister, UIElement, Supplier<UIElement>>registryHolderprivate final StyleBagstyleBagprivate final Set<String>classesprivate final FloatpositionYprivate final BooleanisDisplayedprivate final FloatpaddingWidthprivate final StringelementNameprivate final FloatpaddingHeightprivate final List<UIElement>sortedChildrenprivate final BooleanisHoverprivate final FloatsizeWidth
-
Constructor Summary
Constructors Constructor Description HTItemSlotElement()HTItemSlotElement(HTItemSlot slot, Consumer<ItemStack> stackSetter, Function2<HTItemResourceType, HTStorageAccess, Boolean> manualFilter)HTItemSlotElement(HTItemSlot.Basic slot)
-
Method Summary
Modifier and Type Method Description HTItemSlotElementxeiRecipeIngredient(IngredientIO io)HTItemSlotElementxeiRecipeSlot(IngredientIO io, Float chance)HTItemSlotElementslotStyle(Consumer<ItemSlot.SlotStyle> style)HTItemSlotElementsetItem(ItemStack item)HTItemSlotElementsetItem(ItemStack itemStack, Boolean notify)HTItemSlotElementsetValue(ItemStack value)HTItemSlotElementsetValue(ItemStack value, Boolean notify)-
Methods inherited from class com.lowdragmc.lowdraglib2.gui.ui.UIElement
adaptPositionToElement, adaptPositionToScreen, addChild, addChildAt, addChildren, addClass, addClasses, addEditorChild, addEventListener, addEventListener, addRPCEvent, addRPCEvent, addServerEventListener, addServerEventListener, addStyleRules, addSyncValue, addSyncValue, allChildrenStream, animation, animation, appendExtraAreas, blur, canAddEditorChild, clearAllChildren, clearAllExternalChildren, clearLayoutCache, clearPoseCache, clearSortedChildrenCache, clearStructurePathCache, copy, disabled, drawBackgroundAdditional, drawBackgroundOverlay, drawBackgroundTexture, drawContents, drawInBackground, drawInBackgroundInternal, focus, getBaubleServerEvent, getBubbleListeners, getCaptureListeners, getCaptureServerEvent, getChatComponent, getChildren, getClasses, getContentHeight, getContentWidth, getContentX, getContentY, getDebugInfo, getEditorIcon, getEditorName, getEditorVisibleChildren, getElementName, getFlattenChildren, getId, getLayout, getLayoutNode, getLayoutStyle, getLayoutX, getLayoutY, getLocalMouse, getLocalToWorldPose, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getModularUI, getPaddingHeight, getPaddingWidth, getPaddingX, getPaddingY, getParent, getPositionX, getPositionY, getRegisterUI, getRegistry, getRegistryHolder, getRegistryHolderOptional, getSafeChildren, getSiblingIndex, getSizeHeight, getSizeWidth, getSortedChildren, getStructurePath, getStyle, getStyleBag, getStyles, getTranslateKey, getWorldToLocalPose, hasChild, hasClass, hasEventListener, hasEventListener, hasParent, initEditorTemplate, initScreen, internalSetup, isActive, isAncestorOf, isChildFocused, isDisplayed, isFocusable, isFocused, isHover, isInternalUI, isLDLRegister, isMouseDown, isMouseOver, isMouseOver, isMouseOverContent, isMouseOverElement, isSelfOrChildHover, isVisible, layout, loadXml, lss, lss, markAsInternal, moveInlineAsDefault, node, onClassIdChanged, onStyleChanged, removeAllRules, removeChild, removeClass, removeEventListener, removeEventListener, removeRPCEvent, removeSelf, removeServerEventListener, removeServerEventListener, removeStyleRules, removeSyncValue, saveXml, screenTick, selfAndAllChildren, selfCall, sendEvent, sendEvent, serverTick, setActive, setDisplay, setDisplay, setEnforceFocus, setFocusable, setId, setOverflow, setOverflowVisible, setVisible, startDrag, stopInteractionEventsPropagation, style, transform -
Methods inherited from class com.lowdragmc.lowdraglib2.gui.ui.elements.ItemSlot
bind, bind, getFullTooltipTexts, getSlot, getSlotStyle, getValue, updateSlotPosition, xeiPhantom, xeiRecipeSlot -
Methods inherited from class com.lowdragmc.lowdraglib2.configurator.IConfigurable
buildConfigurator, createDirectConfigurator, getConfigurableName -
Methods inherited from class hiiragi283.core.api.gui.element.HTItemSlotElement
setValue -
Methods inherited from class com.lowdragmc.lowdraglib2.gui.sync.bindings.IBindable
bind, unbind -
Methods inherited from class com.lowdragmc.lowdraglib2.syncdata.IPersistedSerializable
afterDeserialize, afterSerialize, beforeDeserialize, beforeSerialize, deserializeAdditionalNBT, serializeAdditionalNBT -
Methods inherited from class com.lowdragmc.lowdraglib2.gui.ui.elements.BindableUIElement
bindDataSource, registerValueListener -
Methods inherited from class com.lowdragmc.lowdraglib2.gui.sync.bindings.IObservable
bindObserver, unbindObserver -
Methods inherited from class com.lowdragmc.lowdraglib2.gui.sync.bindings.IDataConsumer
bindDataSource, unbindDataSource -
Methods inherited from class com.lowdragmc.lowdraglib2.registry.ILDLRegister
getRegistryHolder, getRegistryHolderOptional, group, name, registryName -
Methods inherited from class net.neoforged.neoforge.common.util.INBTSerializable
deserializeNBT, serializeNBT -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
HTItemSlotElement
HTItemSlotElement()
-
HTItemSlotElement
HTItemSlotElement(HTItemSlot slot, Consumer<ItemStack> stackSetter, Function2<HTItemResourceType, HTStorageAccess, Boolean> manualFilter)
-
HTItemSlotElement
HTItemSlotElement(HTItemSlot.Basic slot)
-
-
Method Detail
-
xeiRecipeIngredient
HTItemSlotElement xeiRecipeIngredient(IngredientIO io)
-
xeiRecipeSlot
HTItemSlotElement xeiRecipeSlot(IngredientIO io, Float chance)
-
slotStyle
HTItemSlotElement slotStyle(Consumer<ItemSlot.SlotStyle> style)
-
setItem
HTItemSlotElement setItem(ItemStack item)
-
setItem
HTItemSlotElement setItem(ItemStack itemStack, Boolean notify)
-
setValue
HTItemSlotElement setValue(ItemStack value)
-
setValue
HTItemSlotElement setValue(ItemStack value, Boolean notify)
-
-
-
-