Class ShaderEditor

java.lang.Object
foundry.veil.api.client.editor.SingleWindowEditor
foundry.veil.impl.client.editor.ShaderEditor
All Implemented Interfaces:
Editor, AutoCloseable, net.minecraft.server.packs.resources.PreparableReloadListener, net.minecraft.server.packs.resources.ResourceManagerReloadListener, org.lwjgl.system.NativeResource

@Internal public class ShaderEditor extends SingleWindowEditor implements net.minecraft.server.packs.resources.ResourceManagerReloadListener
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener

    net.minecraft.server.packs.resources.PreparableReloadListener.PreparationBarrier
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.network.chat.Component
     

    Fields inherited from class foundry.veil.api.client.editor.SingleWindowEditor

    open

    Fields inherited from interface foundry.veil.api.client.editor.Editor

    DEFAULT_GROUP, DEFERRED_GROUP, EXAMPLE_GROUP, INFO_GROUP, RENDERER_GROUP, RESOURCE_GROUP
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Frees any resources allocated by this editor before being destroyed.
    net.minecraft.network.chat.Component
     
    net.minecraft.network.chat.Component
     
    void
    Called when this editor is no longer open.
    void
    onResourceManagerReload(@NotNull net.minecraft.server.packs.resources.ResourceManager resourceManager)
     
    void
    Called when this editor is first opened.
    void
    Renders this editor to the screen.
    protected void
    Adds all components inside the window.

    Methods inherited from class foundry.veil.api.client.editor.SingleWindowEditor

    getWindowTitle

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface foundry.veil.api.client.editor.Editor

    isEnabled, isMenuBarEnabled, isOpen, renderLast, renderMenuBar

    Methods inherited from interface org.lwjgl.system.NativeResource

    close

    Methods inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener

    getName

    Methods inherited from interface net.minecraft.server.packs.resources.ResourceManagerReloadListener

    reload
  • Field Details

    • TITLE

      public static final net.minecraft.network.chat.Component TITLE
  • Constructor Details

    • ShaderEditor

      public ShaderEditor()
  • Method Details

    • getDisplayName

      public net.minecraft.network.chat.Component getDisplayName()
      Specified by:
      getDisplayName in interface Editor
      Returns:
      The visible display name of this editor
    • getGroup

      public net.minecraft.network.chat.Component getGroup()
      Specified by:
      getGroup in interface Editor
      Returns:
      The name of the tab group to put this editor in
    • renderComponents

      protected void renderComponents()
      Description copied from class: SingleWindowEditor
      Adds all components inside the window.
      Specified by:
      renderComponents in class SingleWindowEditor
    • render

      public void render()
      Description copied from interface: Editor
      Renders this editor to the screen.
      Specified by:
      render in interface Editor
      Overrides:
      render in class SingleWindowEditor
    • onShow

      public void onShow()
      Description copied from interface: Editor
      Called when this editor is first opened.
      Specified by:
      onShow in interface Editor
      Overrides:
      onShow in class SingleWindowEditor
    • onHide

      public void onHide()
      Description copied from interface: Editor
      Called when this editor is no longer open.
      Specified by:
      onHide in interface Editor
    • free

      public void free()
      Description copied from interface: Editor
      Frees any resources allocated by this editor before being destroyed.
      Specified by:
      free in interface Editor
      Specified by:
      free in interface org.lwjgl.system.NativeResource
    • onResourceManagerReload

      public void onResourceManagerReload(@NotNull @NotNull net.minecraft.server.packs.resources.ResourceManager resourceManager)
      Specified by:
      onResourceManagerReload in interface net.minecraft.server.packs.resources.ResourceManagerReloadListener