Package foundry.veil.api.client.editor
Interface Editor
- All Superinterfaces:
AutoCloseable
,org.lwjgl.system.NativeResource
- All Known Implementing Classes:
DemoEditor
,DeviceInfoViewer
,FramebufferEditor
,LightEditor
,OpenCLEditor
,PostEditor
,ResourceManagerEditor
,ShaderEditor
,SingleWindowEditor
,TextureEditor
public interface Editor
extends org.lwjgl.system.NativeResource
A basic panel that can be toggled in the editor view.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final net.minecraft.network.chat.Component
static final net.minecraft.network.chat.Component
static final net.minecraft.network.chat.Component
static final net.minecraft.network.chat.Component
static final net.minecraft.network.chat.Component
static final net.minecraft.network.chat.Component
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
free()
Frees any resources allocated by this editor before being destroyed.net.minecraft.network.chat.Component
default net.minecraft.network.chat.Component
getGroup()
static net.minecraft.network.chat.Component
group
(net.minecraft.resources.ResourceLocation id) default boolean
default boolean
default boolean
isOpen()
default void
onHide()
Called when this editor is no longer open.default void
onShow()
Called when this editor is first opened.void
render()
Renders this editor to the screen.default void
Called just before the imgui state is drawn to the screendefault void
Renders elements into the menu bar.Methods inherited from interface org.lwjgl.system.NativeResource
close
-
Field Details
-
DEFAULT_GROUP
static final net.minecraft.network.chat.Component DEFAULT_GROUP -
EXAMPLE_GROUP
static final net.minecraft.network.chat.Component EXAMPLE_GROUP -
DEFERRED_GROUP
static final net.minecraft.network.chat.Component DEFERRED_GROUP -
RENDERER_GROUP
static final net.minecraft.network.chat.Component RENDERER_GROUP -
INFO_GROUP
static final net.minecraft.network.chat.Component INFO_GROUP -
RESOURCE_GROUP
static final net.minecraft.network.chat.Component RESOURCE_GROUP
-
-
Method Details
-
renderMenuBar
default void renderMenuBar()Renders elements into the menu bar. Only called ifisMenuBarEnabled()
istrue
. -
render
void render()Renders this editor to the screen. -
renderLast
default void renderLast()Called just before the imgui state is drawn to the screen -
getDisplayName
net.minecraft.network.chat.Component getDisplayName()- Returns:
- The visible display name of this editor
-
getGroup
default net.minecraft.network.chat.Component getGroup()- Returns:
- The name of the tab group to put this editor in
-
isEnabled
default boolean isEnabled()- Returns:
- Whether this editor should be selectable.
-
isMenuBarEnabled
default boolean isMenuBarEnabled()- Returns:
- Whether this editor should draw into the menu bar
-
onShow
default void onShow()Called when this editor is first opened. -
onHide
default void onHide()Called when this editor is no longer open. -
isOpen
default boolean isOpen()- Returns:
- Whether this editor is open
-
free
default void free()Frees any resources allocated by this editor before being destroyed.- Specified by:
free
in interfaceorg.lwjgl.system.NativeResource
-
group
static net.minecraft.network.chat.Component group(net.minecraft.resources.ResourceLocation id)
-