Class GuiPseudoElementComponent


public final class GuiPseudoElementComponent extends ContainerComponent
Stable, runtime-owned retained box for BEFORE, AFTER, and MARKER.

The box is pointer-transparent and unfocusable. Application code may attach passive generated children after retrieving it from GuiComponent.pseudoElementBox(GuiPseudoElement).

  • Method Details

    • stableIdentity

      public long stableIdentity()
      Returns a stable identity retained across stylesheet revisions and frames.
      Returns:
      stable identity
    • originatingComponent

      public GuiComponent<?> originatingComponent()
      Returns the component that originates this generated box.
      Returns:
      originating component
    • pseudoElement

      public GuiPseudoElement pseudoElement()
      Returns the represented pseudo-element.
      Returns:
      pseudo-element
    • visible

      public boolean visible()
      Overrides:
      visible in class GuiComponent<ContainerComponent>
    • shouldRouteToChildren

      protected boolean shouldRouteToChildren(float mouseX, float mouseY)
      Overrides:
      shouldRouteToChildren in class GuiComponent<ContainerComponent>