Package hiiragi283.core.api.gui.element
Class HTFluidSlotElement
-
- 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 HTFluidSlotElement extends FluidSlotHiiragi Coreとそれを前提とするmodで使用されるFluidSlotの拡張クラスです。
- Since:
0.7.0
Hiiragi Tsubasa
-
-
Field Summary
Fields Modifier and Type Field Description private BooleanisActiveprivate final FluidSlot.SlotStyleslotStyleprivate final FloatmarginLeftprivate final FloatmarginRightprivate final FloatcontentHeightprivate final StringconfigurableNameprivate final FloatmarginBottomprivate final BooleanisChildFocusedprivate final ComponentchatComponentprivate final List<UIElement>flattenChildrenprivate final ComponentfluidAmountTextprivate final FloatsizeHeightprivate final UIElementparentprivate Integercapacityprivate BooleanisVisibleprivate FluidStackfluidprivate Stringidprivate final FloatpaddingYprivate FluidStackvalueprivate 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 BooleanisAllowClickDrainedprivate final List<Component>fullTooltipTextsprivate final BasicStylestyleprivate BooleanisAllowClickFilledprivate 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 FloatsizeWidthpublic final LabelamountLabel
-
Constructor Summary
Constructors Constructor Description HTFluidSlotElement()HTFluidSlotElement(HTFluidTank tank)HTFluidSlotElement(HTFluidHandler handler, Integer index)
-
Method Summary
Modifier and Type Method Description HTFluidSlotElementxeiRecipeIngredient(IngredientIO io)HTFluidSlotElementxeiRecipeSlot(IngredientIO io, Float chance)HTFluidSlotElementslotStyle(Consumer<FluidSlot.SlotStyle> style)HTFluidSlotElementsetFluid(FluidStack fluid)HTFluidSlotElementsetFluid(FluidStack fluid, Boolean notify)HTFluidSlotElementsetValue(FluidStack value)HTFluidSlotElementsetValue(FluidStack 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.FluidSlot
bind, getCapacity, getFluid, getFluidAmountText, getFullTooltipTexts, getSlotStyle, getValue, isAllowClickDrained, isAllowClickFilled, setAllowClickDrained, setAllowClickFilled, setCapacity, xeiPhantom, xeiRecipeSlot -
Methods inherited from class com.lowdragmc.lowdraglib2.configurator.IConfigurable
buildConfigurator, createDirectConfigurator, getConfigurableName -
Methods inherited from class hiiragi283.core.api.gui.element.HTFluidSlotElement
setFluid, 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
-
HTFluidSlotElement
HTFluidSlotElement()
-
HTFluidSlotElement
HTFluidSlotElement(HTFluidTank tank)
-
HTFluidSlotElement
HTFluidSlotElement(HTFluidHandler handler, Integer index)
-
-
Method Detail
-
xeiRecipeIngredient
HTFluidSlotElement xeiRecipeIngredient(IngredientIO io)
-
xeiRecipeSlot
HTFluidSlotElement xeiRecipeSlot(IngredientIO io, Float chance)
-
slotStyle
HTFluidSlotElement slotStyle(Consumer<FluidSlot.SlotStyle> style)
-
setFluid
HTFluidSlotElement setFluid(FluidStack fluid)
-
setFluid
HTFluidSlotElement setFluid(FluidStack fluid, Boolean notify)
-
setValue
HTFluidSlotElement setValue(FluidStack value)
-
setValue
HTFluidSlotElement setValue(FluidStack value, Boolean notify)
-
-
-
-