Class ComponentRenderEvent

java.lang.Object
de.ellpeck.rockbottom.api.event.Event
de.ellpeck.rockbottom.api.event.impl.ComponentRenderEvent

public final class ComponentRenderEvent extends Event
This event is fired when a GuiComponent renders using GuiComponent.render(IGameInstance, IAssetManager, IRenderer, int, int). Cancelling it will result in the component not being rendered.
  • Field Details

    • gui

      public final Gui gui
    • id

      public final int id
    • component

      public final GuiComponent component
  • Constructor Details

    • ComponentRenderEvent

      public ComponentRenderEvent(Gui gui, int id, GuiComponent component)