Package foundry.veil.api.client.editor
Interface Inspector
- All Superinterfaces:
AutoCloseable,org.lwjgl.system.NativeResource
- All Known Implementing Classes:
DemoInspector,DeviceInfoViewer,FramebufferInspector,LightInspector,PipelineStatisticsViewer,PostInspector,ResourceManagerInspector,ShaderInspector,SingleWindowInspector,TextureInspector
public interface Inspector
extends org.lwjgl.system.NativeResource
A basic panel that can be toggled in the editor view.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.network.chat.Componentstatic final net.minecraft.network.chat.Componentstatic final net.minecraft.network.chat.Componentstatic final net.minecraft.network.chat.Componentstatic final net.minecraft.network.chat.Component -
Method Summary
Modifier and TypeMethodDescriptiondefault voidfree()Frees any resources allocated by this editor before being destroyed.net.minecraft.network.chat.Componentdefault net.minecraft.network.chat.ComponentgetGroup()static net.minecraft.network.chat.Componentgroup(net.minecraft.resources.ResourceLocation id) default booleandefault booleandefault booleanisOpen()default voidonHide()Called when this editor is no longer open.default voidonShow()Called when this editor is first opened.voidrender()Renders this editor to the screen.default voidCalled just before the imgui state is drawn to the screendefault voidRenders 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 -
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:
freein interfaceorg.lwjgl.system.NativeResource
-
group
static net.minecraft.network.chat.Component group(net.minecraft.resources.ResourceLocation id)
-