Class ScreenOverlay

java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
com.simibubi.create.foundation.gui.widget.CompositeWidget
com.simibubi.create.foundation.gui.widget.ScreenOverlay
All Implemented Interfaces:
net.createmod.catnip.gui.TickableGuiEventListener, net.minecraft.client.gui.components.events.ContainerEventHandler, net.minecraft.client.gui.components.events.GuiEventListener, net.minecraft.client.gui.components.Renderable, net.minecraft.client.gui.components.TabOrderedElement, net.minecraft.client.gui.narration.NarratableEntry, net.minecraft.client.gui.narration.NarrationSupplier
Direct Known Subclasses:
ScheduleScreen.EditorSubWidgets

public class ScreenOverlay extends CompositeWidget
A set of widgets that are offset on the Z axis, allowing them to render above/below other "layers".
  • 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
    Modifier and Type
    Field
    Description
    final int
     

    Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener

    DOUBLE_CLICK_THRESHOLD_MS
  • Constructor Summary

    Constructors
    Constructor
    Description
    ScreenOverlay(int zOffset)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    render(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks)
     

    Methods inherited from class com.simibubi.create.foundation.gui.widget.CompositeWidget

    add, addRenderableOnly, children, clear, isMouseOver, mouseMoved, narrationPriority, remove, removeRenderableOnly, tick, updateNarration

    Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler

    getFocused, isDragging, setDragging, setFocused

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler

    charTyped, getChildAt, getCurrentFocusPath, isFocused, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocused

    Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener

    getRectangle

    Methods inherited from interface net.minecraft.client.gui.narration.NarratableEntry

    isActive

    Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement

    getTabOrderGroup
  • Field Details

    • zOffset

      public final int zOffset
  • Constructor Details

    • ScreenOverlay

      public ScreenOverlay(int zOffset)
  • Method Details

    • render

      public void render(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks)
      Specified by:
      render in interface net.minecraft.client.gui.components.Renderable
      Overrides:
      render in class CompositeWidget